nielsdeblaauw/query-monitor-twig-profile

Displays Twig profiler output in Query Monitor

Installs: 1 582

Dependents: 0

Suggesters: 0

Security: 0

Stars: 29

Watchers: 2

Forks: 4

Open Issues: 10

Type:wordpress-plugin


README

CI WordPress Plugin Version Query Monitor

Query Monitor Twig profile is available in the WordPress plugin repository.

Displays Twig profiler output in Query Monitor.

Automatically works with Timber.

Screenshot showing the Twig Profile panel for Query Monitor Screenshot showing the Twig Profile panel for Query Monitor (dark mode)

Description

Find out which pages are slow, and why! Immediately see profiling information from Twig in your Query Monitor toolbar.

Automatically integrates with Timber.

  • Support for dark mode.
  • Clickable links to profiled templates in your preferred editor.
  • Downloadable blackfire.io profiles.
  • History mode. Save profiles so you can see the impact of your changes.

Installation

  1. Install the plugin
  2. Activate it
  3. Check the 'Twig profile' tab in Query Monitor
  4. Optimize your site

Frequently Asked Questions

Can I use it with other frameworks that use Twig?

Definitely. Just add a Twig profiler extension to your Twig instance and submit it to the collector.

if ( function_exists( 'NdB\QM_Twig_Profile\collect' ) ) {
	$twig = \NdB\QM_Twig_Profile\collect( $twig );
}

Development

Test the GitHub Actions workflow with act:

See the documentation for the setup-php action

./bin/act pull_request -P ubuntu-latest=shivammathur/node:latest