Display wordpress page loading time and number of queries

November 16, 2008 · Print This Article

Do you ever asked yourself how long it took for your page to load, or how many sql queries were executed?

If yes, here is a simple code to insert on your template.

Nothing hard here.

Simply paste the following code on your footer.php file:

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

The get_num_queries() function returns the number of executed query during your page loading.

Your choice for site templates and wordpress themes


One Response to “Display wordpress page loading time and number of queries”

  1. Show number of queries and page load time - WP-Snippet.com on April 15th, 2017 6:13 pm

Got something to say?

You must be logged in to post a comment.