Memory Meter – Memory Usage and Limits

描述

View and log your website’s memory usage and memory limits

Memory Meter is a simple plugin that adds a memory meter to the admin bar in your website’s dashboard and frontend so you can see memory usage, it also provides latest and flagged memory usage logs.

Features

With Memory Meter you can view:

  • Current memory usage by file size
  • Current memory usage percentage of memory limit
  • Memory limit
  • PHP memory limit
  • PHP max execution time
  • WP memory limit
  • WP max memory limit
  • Memory usage logs latest and flagged
  • Memory usage logs with page request info (Premium feature)
  • Memory usage in JS console (Premium feature)

Configuration

Memory Meter includes a configuration page that shows a summary of the memory usage related configuration for your website and has information on several included filter hooks you can use to configure the plugin.

安装

Minimum requirements

  • WordPress 5.0 or greater
  • PHP 7.0 or greater

Automatic installation

To do an automatic install of this plugin log in to your WordPress dashboard, navigate to the Plugins menu, and click “Add New”.

Search for “Memory Meter”, find this plugin in the list and click the install button, once done simply activate the plugin.

Manual installation

Manual installation method requires downloading the plugin and uploading it to your web server via an FTP application. See these instructions on how to do this.

Getting started

Once you have installed and activated Memory Meter you will see it appear in the admin bar at the top of your WordPress dashboard and the frontend of your website. Note that there is a user specific WordPress setting to disable the admin bar (enabled by default), this must be enabled in your user settings to see the memory meter in your admin bar. In addition to the admin bar, a Memory Meter menu item is included in your WordPress dashboard on the left.

常见问题

Where can I find the memory meter?

Once you have installed and activated Memory Meter you will see it appear in the admin bar at the top of your WordPress dashboard and the frontend of your website. Note that there is a user specific WordPress setting to disable the admin bar (enabled by default), this must be enabled in your user settings to see the memory meter in your admin bar. In addition to the admin bar, a Memory Meter menu item is included in your WordPress dashboard on the left.

How do I change the memory file size to KB or GB rather than MB?

You can use the wpmm_memory_meter_file_size_format filter hook, see the configuration page for further information.

What percentage of memory usage will make the meter change color?

When your website is using > 75% of allocated memory the meter will change to orange (warning), if > 90% it will change to red (bad). If you want to change these default percentages you can use the wpmm_memory_meter_memory_usage_percentage_warning and wpmm_memory_meter_memory_usage_percentage_bad filter hooks, see the configuration page for further information.

Who can see the memory meter/can I make it visible to specific users?

The memory meter shows by default for any user with the ‘manage_options’ capability, which is usually administrators. You can change the capability required to see the memory meter by using the wpmm_memory_meter_capability filter hook, see the configuration page for further information.

Can I disable the memory meter colors?

Yes, you can disable the colors using the wpmm_memory_meter_memory_usage_colors filter hook, see the configuration page for further information.

Can I disable logs?

Yes, you can disable the logs using the wpmm_memory_meter_logs filter hook, see the configuration page for further information.

评价

此插件暂无评价。

贡献者及开发者

“Memory Meter – Memory Usage and Limits” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.1.0 – 2022-03-25

  • Note: This version includes several changes to asset enqueues it is recommended you clear all caches after upgrading to ensure all assets are reloaded
  • Added: Minified CSS/JS assets created and enqueued
  • Added: Translation function
  • Changed: CSS assets now SCSS
  • Changed: Text casing on some elements to make consistent with similar content in WordPress dashboard
  • Fixed: Translations may not load due to load_plugin_textdomain not hooked on init

1.0.0 – 2022-03-12

  • Initial release