Output the number of WordPress Database Queries


The number of database queries a webpage makes to load the page have an effect on the page load time. You can use the following piece of code in the footer of your theme to find out how many database queries a page is making or WordPress query outputs and the time it takes to complete.

<?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.
%d bloggers like this: