UsageDD

Description

UsageDD allows administrators to monitor the resource usage of their WordPress installation. It will add a line at the bottom of each page, only visible to administrators, that displays the number of MySQL queries, the amount of memory used by the page’s code, and if your server supports it, the “time to first byte” (TTFB) and the time required to generate the full page.

You can use the display to determine if your site has too many plugins loaded, if your theme is too “heavy”, or if something is wrong on your server. The plugin itself uses virtually no resources and should be compatible with every theme and plugin.

If you are using PHP 5.4+ and a compatible webserver (most are compatible), UsageDD will display the TTFB and the CPU time required to output the entire page. TTFB is used by Google for page-ranking purposes, and it will be the first of the two times displayed.

Installation

Install UsageDD as you would any other plugin. UsageDD has some configuration options that are documented in the usagedd.php file. There are no admin option panels or language files — those would require resources, and UsageDD was designed to have as little impact as possible on your resource usage.

FAQ

Installation Instructions

Install UsageDD as you would any other plugin. UsageDD has some configuration options that are documented in the usagedd.php file. There are no admin option panels or language files — those would require resources, and UsageDD was designed to have as little impact as possible on your resource usage.

What do the numbers mean?

The number of queries (for example, “27 Q”) will give you an idea of whether you are having MySQL problems. The number of queries should ideally be under 50. You may start to see slowdowns if the number is above 75. If it is above 150, you have an issue with your theme and/or plugins on that specific page which should be addressed.

The execution time numbers (for example, “0.012s | 0.034s”) are explained in the description. The TTFB number should be under 0.2 seconds; a larger number could result in reduced Google page ranks for your site. If the second number is more than one second larger than the first (TTFB) number, your theme is “heavy” and might require some optimization.

The memory usage (for example, “18.32 MB”) will give you an idea of how large your site’s code is. This number should be under 50 megabytes (MB), and ideally should be under 32 MB. This number can be dramatically reduced by using an opcode cache such as Zend OPcache.

How accurate are the numbers?

The execution times and number of queries are 100% accurate. The memory usage is slightly lower than the actual number due to the limitations imposed on WordPress plugins.

Please note that the execution time numbers reported by UsageDD may be different than what are reported from your browser or from external sites. Google Pagespeed removes network latency (also known as “ping” time) from its reported TTFB number, so it will be almost exactly the number reported by UsageDD. The numbers you see from other sites like Pingdom and GTMetrix, or from the Network tab in your browser’s Dev Tools, will be higher than the numbers reported by UsageDD because they include the network latency.

Contributors & Developers

“UsageDD” is open source software. The following people have contributed to this plugin.

Contributors

Translate “UsageDD” into your language.

Interested in development?

Browse the code or subscribe to the development log by RSS.

Changelog

1.3

Much more detailed documentation. Usage display now compatible with the theme customizer.

1.2

More improvements to page usage display.

1.1

Page usage display now compatible with virtually all themes. Much improved AJAX usage display.

1.0

First publicly-available version.