Statistics usually seen at the footer showing the number of queries of information from the database, with number of seconds required for apache to generate the page.

Example :

<!-- 33 queries in 0.333 seconds -->

How to show:

1. Paste the following code to the location where you want the data to show:

<!-- <?php echo get_num_queries(); ?> queries in <?php timer_stop(3); ?> seconds -->

OR

2. If you only want logged-in admins to see :

<?php if (current_user_can('level_10')) {

	echo '<!-- ' . get_num_queries() . ' queries in ' . timer_stop(3) . ' seconds -->';

} ?>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s