How To Show Number of Queries and Page Load Time in WordPress

Views: 24

Simply paste the following code anywhere you like in your theme files (such as footer.php).

<?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.

And refresh the page. You will see the number of queries and the execution time.

Source : WP Beginner

Author:

Leave a Reply