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