Get number of MySQL queries and php load time of your theme in WordPress, by adding this last in your footer.php-file. Don’t forget to add the constant WP_ENV to your functions.php to make sure it stays in the development environment.
1 2 3 4 |
if(WP_ENV == 'development'){ // define('WP_ENV', 'development'); in wp-config.php echo get_num_queries(); ?> queries took <?php timer_stop(1); ?> seconds to load.<?php } |