Display Performance Statistics Of WordPress Website

Add Tool

Display Performance Statistics Of WordPress


Display Performance Statistics Of WordPress

I know Everyone is familiar with the following information. It is Performance Statistics of WordPress Pages <!-- 57 queries in 0.533 seconds --> These statistics are usually seen in the footer area of individual pages and serve as a general indicator of performance. The “queries” refer to the number of times WordPress requested information from the database, while the number of seconds indicates the amount of time required for Apache to generate the page. This information is generated by including the following code in your footer.php template file (or wherever you would like):

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

This simple WordPress snippets will display queries information of your database. If you don’t like to display Performance Statistics for WordPress Pages with the entire world, you can limit its display to logged-in administrators only. To Display Performance Statistics for WordPress Pages simply add the below snippets in your footer.php file or where you want to display.

<?php if (current_user_can('level_10')) {
    echo get_num_queries() . ' queries in ' . timer_stop(3) . ' seconds';
} ?>

Here, level_10 is administration or admin's level. Source: Digging into WordPress


Tags: statistics database, WordPress, Database, Statistics, Display Performance, WordPress speed, WordPress Performance, Languages, performance, Php, Programming, Snippets, Statistics, theme development, WordPress, wp snippets
Payza

About Masum Billah

Display Performance Statistics Of WordPress 1stWebSuite website seo tool is a free website ranking tool site provides a lot of on page and off page seo useful tools for you. On this site, we have a large number of website ranking tools


SIGN UP TO GET UPDATE TO YOUR INBOX




Discuss about: Display Performance Statistics Of WordPress Website


adf.ly