Query Monitor Twig profile is available in the WordPress plugin repository.
Displays Twig profiler output in Query Monitor.
Automatically works with Timber.
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.
- Install the plugin
- Activate it
- Check the 'Twig profile' tab in Query Monitor
- Optimize your site
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 );
}
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