query-monitor-twig-profile

Displays Twig profiler output in Query Monitor

MIT License

Downloads
1.5K
Stars
28
Committers
4

Query monitor Twig profile

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

Displays Twig profiler output in Query Monitor.

Automatically works with Timber.

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