Show Number of Database Queries and Page Load Time in WordPress

Add the following code to the end of your footer.php (or anywhere you like) and refresh the page to see the number of queries and the execution time.

<?php echo  get_num_queries (). ' Queries in ' . timer_stop (1). ' ! Seconds' ; ?>