This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

TPC! Memory Usage

Description

TPC! Memory Usage allows WordPress administrators to view the current and peak memory usage of the application. This is extremely helpful when testing new plugins, or if there are a lot of modifications, plugins, or large language files. As of version 0.4, administrators now have the ability to view detailed system information about their web server, MySQL, PHP, and WordPress software. (Requires PHP5)

Need help or have a suggestion? Join the discussion on TPC! Memory Usage!

A strategic dashboard widget will provide a snapshot which includes the following information:

  • Current memory usage
  • Current peak memory usage
  • Logging for all-time highest memory usage
  • File logging for memory usage at checkpoints, when usage exceeds set threshold, both, or none.
  • Ability to add custom checkpoints (checkpoint – a WordPress core, language or plugin action at which memory usage is measured)
  • Send e-mail notification if memory usage reaches threshold setting
  • Customize permissions to show certain users the memory usage widget and display mechanisms
  • View PHP and WordPress memory limit (defined in wp-settings.php)
  • View PHP version, User Agent tag, server software information

A detailed system information page allows you to keep a close watch on:

  • Server, host, and client information
  • PHP information
  • MySQL uptime, version, and more
  • Common and advanced WordPress settings
  • Completes basic security check to help prevent attacks

Screenshots

  • The default dashboard widget with the lower information panel extended
  • The Security Check located within the System Overview

Installation

  1. Download TPC! Memory Usage.
  2. Upload all files into /wp-content/plugins/tpc-memory-usage/.
  3. Activate the plugin using the WordPress plugin administration panel.
  4. In the left-hand navigation menu, an item entitled Memory Usage should appear.
  5. Customize your TPC! Memory Usage installation by adding checkpoints, and using the on-screen options.
  6. If you choose to enable file logging, you must make sure that /wp-content/plugins/tpc-memory-usage/logs/tpcmem.log is writable on the server.

FAQ

Why do I keep getting messages saying my memory limit has been exceeded?

This is actually a feature of TPC! Memory Usage that you can adjust or turn off at will. TPC! Memory Usage will send notifications if the memory usage of PHP exceeds the preset amount (defaults to 32MB). You can change this under Notifications on the Settings page.

What is a checkpoint?

A checkpoint is any WordPress action (also known as a hook) at which memory usage is measured. A list of WordPress actions can be found at https://codex.wordpress.org/Plugin_API/Action_Reference. Most plugins also use their own actions, and a checkpoint can be created using those as well.

Why can’t I see the memory usage within the HTML on the pages/posts?

This can happen for either one of two reasons. First, make sure that this feature has been enabled and you are looking in the correct place. A quick search for ‘Memory Usage’ (w/o the quotes) may help you find the data; however, if this doesn’t work you will have to make sure that the wp_head() or wp_footer() functions or actions are called within the theme you are using. Some themes do not include out-of-the-box support, so you may have to add the wp_head() or wp_footer() functions to the theme templates yourself.

Reviews

Handy tool

I have this on all my blogs, and have had for years. Initially I installed it because my site was failing because of too much memory usage, but it also provides lots of information about your installation and software versions. I also appreciate the security evaluation. There are batter dedicated security tools, but this is a nice starting point.

Floods your inbox

As other users have stated, this plugin floods your inbox with hundreds of warning emails.
These warnings are generated whenever your WP uses anything more than the default 32 MB memory limit, no matter if you’ve set the limit higher.

Very useful for troubleshooting memory issues

I was getting a lot of memory errors (especially in the wp admin console) on my site Goringe Accountants but couldn’t work out how much memory I needed to increase it to.

By switching on this plugin I now know what it’s currently using and also the highest it has ever reached – so instead of blindly throwing a huge amount of memory at the problem, I can target just the right amount – freeing up resources elsewhere.

Thank you very much 🙂

Read all 8 reviews

Contributors & Developers

“TPC! Memory Usage” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.9.1

  • Updated compatibility for WordPress 3.8
  • Fixed memory usage bar graph
  • Fixed missing closing SPAN tag

0.9

  • Database logging implemented.
  • Reports administration page added for viewing database log.
  • Added load averages to dashboard and overview (Linux only).
  • Added Apache modules to overview.
  • Added allow_url_fopen, allow_url_include, and open_basedir to Security Check.

0.8.3

  • Added Tpcmem_Log_Adapter_Interface for increased extensibility.
  • Use dependency injection to implement logging, reducing coupling between objects.
  • Changed directory structure for class files to fit ZF coding conventions.
  • Trimmed number of plugin files.

0.8.2

  • Adjusted memory limit for graphs, and footer.
  • Improved ModSecurity detection.
  • Switched to object-oriented model for security check.

0.8.1

  • Added WordPress unique authentication key detection to Security Check.
  • Improved System Overview UI.
  • Additional WordPress configuration settings added to System Overview.
  • Fixed bugs related to ‘magic_quotes_gpc’ and ModSecurity detection.

0.8

  • File logging for tracking memory usage at checkpoints, and also when usage exceeds threshold.
  • Number of database queries shown in high memory usage notification e-mail.

0.7.2

  • Pull PHP ‘memory_limit’ directly from php.ini instead of using runtime value.

0.7.1

  • Fixed bug related to default checkpoints.

0.7

  • Added support for custom checkpoints, which is defined as a WordPress core, language or plugin action at which memory usage is measured.
  • Ability to add multiple recipients of high memory usage notification e-mail.

0.6.1

  • Fixed high memory usage notification e-mail function.

0.6

  • Updated architecture application architecture (PHP5 object model).
  • Changed default memory usage notification level from 16MB to 32MB.

0.5.1

  • Added check for apache_get_modules().

0.5

  • Added Security tab to System Overview page (helps prevent security-related vulnerabilities).
  • Under Server tab, Server Signature says OFF when it is blank.

0.4

  • Added detailed system information page (MySQL, WordPress, PHP, server/client)
  • Added System Overview link to dashboard widget
  • Moved TPC! Memory Usage menu item from Settings to top-level menu called Memory Usage

0.3.1

  • Added confirmation for settings page when update completed.

0.3

  • Send e-mail notification to admin if memory usage reaches threshold setting
  • Reduced database queries (peak usage only logged at shutdown)
  • Moved checkpoint registration to separate function
  • Added checkpoint counters to count how many memory usage samples are taken

0.2.1

  • Fixed script and style path bug.

0.2

  • Ability to log historically highest memory usage
  • Ability to block certain users from viewing the dashboard widget and other display mechanisms

0.1

  • Initial release
  • Dashboard widget with peak and current memory usage
  • Option to show memory usage in administration panel footer
  • Option to show memory usage in comments within the WP site pages and posts