Server IP & Memory Usage Display

外掛說明

This plugin displays the memory limit, current memory usage, WordPress Memory Limit, IP address and PHP version in the admin footer.

There are four features we love:

1) You can easily see in the admin footer the IP where this WordPress installation is running. Very useful if you have many WordPress installations across several servers and IP addresses.

2) The memory usage and total available memory to the WordPress installation is shown in the admin footer. If memory usage is over 75% the percentage is shown in a light red and if the memory usage is over 90% the percentage is shown in red. So you can allways control with one look if there is enough memory available or if action has to be taken. It also displays the WordPress memory limit to give you more information.

3) Besides the IP address and the memory you can also see the PHP version and the type of Operating System where it’s running.

4) You can translate the plugin into your own language. So far English and Spanish translations are included. Just translate the .po file in the /lang/ folder.

What can I do with this plugin?

This plugin displays the total memory, used memory, percentage of used memory, WP memory limit, the IP address and the PHP version in the admin footer.

What ideas is this plugin based on?

We had been using the WordPress plugin WP-Memory-Usage but didn’t want the dashboard widget and needed the IP address displayed. We also didn’t like that the plugin could not be translated.

This is why we decided to create a new plugin that solves these two explained needs: IP address display and ability to translate.

System requirements

PHP version 5.3 or greater.

Server IP & Memory Usage Display Plugin in your Language!

This first release is avaliable in English and Spanish. In the “lang” folder we have included the necessarry files to translate this plugin.

If you would like the plugin in your language and you’re good at translating, please drop us a line at Contact us.

Further Reading

You can access the description of the plugin in Spanish at: Server IP & Memory Usage Display en español.

Contact

For further information please send us an email.

螢幕擷圖

  • 頁尾顯示相關資訊的範例
  • 頁尾顯示記憶體使用量超過 75% 的範例
  • 頁尾顯示記憶體使用量超過 90% 的範例

安裝方式

  1. First you will have to upload the plugin to the /wp-content/plugins/ folder.
  2. Then activate the plugin in the plugin panel.
  3. Now the information regarding memory limit, current memory usage, IP address and PHP version is displayed in the admin footer.

Please note that the plugin should not be used together with other plugins with similar funcionalities like: WP-Memory-Usage.

Please use with WordPress MultiSite at your own risk, as it has not been tested.

常見問題集

Why did you make this plugin?

We couldn’t find a plugin that would give us the functionality we were looking for:
1) IP address display in footer of WordPress admin.
2) Total memory and memory usage displayed in the admin footer, without dashboard plugins.
3) Easy translation of the plugin into other languages. So far English and Spanish translations are included.

How can I remove Server IP & Memory Usage Display?

You can simply activate, deactivate or delete it in your plugin management section.

Are there any known incompatibilities?

The plugin should not be used together with other plugins with similar funcionalities like: WP-Memory-Usage.
Please use with WordPress MultiSite at your own risk, as it has not been tested.

Are there any server requirements?

The PHP version should be at least 5.3. If PHP version is lower than 5.3 there is an error message shown and plugin is not activated.

Do you make use of Server IP & Memory Usage Display yourself?

Of course we do. That’s why we created it. 😉

使用者評論

2020 年 7 月 15 日
I started to use the plugin (v2.1.0) today on my server and noticed a little bug with the total amount of MBs available on the server. The hosting package I use comes with 2GB and this translates into: Memory: 12 of 2147483648 MB (0%) | WP LIMIT: 384 MB ...instead of... 2147483648 / 1024 / 1024 = 2048 MB = 2 GB Also - wouldn't it make more sense when the WP LIMIT is shown there instead so the usage is a % of the WP LIMIT? So like: Memory: 12 of 384 MB (WP LIMIT) (0%) | Server Total: 2048 MB ---- To fix the bug: Line 46 should be changed into: $this->memory['limit'] = (int) ini_get('memory_limit') / 1024 / 1024; And perhaps change line 55 into: $this->memory['percent'] = round ($this->memory['usage'] / $this->memory['limit'] * 100, 1); To show 1 decimal which would be useful in case of smaller percentages.
2020 年 2 月 25 日
Easy to use plugin. One remark: It would be cool to have a small backend configuration menu where you can change the shown items (e.g. only Memory or only IP) and the name of the resources. In my case the original host name is shown beside the IP so the customers may know where the website is hosted. Thanks!
2020 年 2 月 11 日
Seems like a solid plugin, and it seems to work fine on the latest version of WordPress too. No set up needed, works really well and useful on a low-end hosting provider like mine to check that I'm not running out of memory.
2019 年 1 月 12 日
Es funktioniert ohne Probleme mit WordPress 5.0.3 und dem DiviBuilder.
閱讀全部 35 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Server IP & Memory Usage Display〉的開發相關工作。

參與者

Server IP & Memory Usage Display 外掛目前已有 6 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 Server IP & Memory Usage Display 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.1.0 (03/JAN/2018)

  • Added compatibility with PHP 7.2.x: “function create_function() is deprecated in PHP 7.2”. Thanks to @pputzer.

2.0.3

  • Solved error with memory_get_peak_usage().

2.0.2

  • Solved: PHP 7.1 Notice: A non well formed numeric value encountered for $result

2.0.1

  • Changed memory information display to use memory_get_peak_usage().

2.0.0

  • Added additional information about memory_get_peak_usage() – support ticket by @diablodale

1.4.0

  • Added check for PHP version of the server. Plugins works with PHP 5.3 or greater. If PHP version is less than 5.3 the plugin is not activated.

1.3.3

  • Added support for IP address with IIS using $_SERVER[‘LOCAL_ADDR’].

1.3.0

  • Added Added hostname info after the IP.

1.2.2

  • Added check to avoid error “Notice: Undefined index: SERVER_ADDR in” when SERVER_ADDR is not set.

1.2.1

  • Added display of WordPress Memory Limit information (parameter WP_MEMORY_LIMIT of wp-config.php). You can set this parameter in wp-config.php by adding this line: define( ‘WP_MEMORY_LIMIT’, ‘768M’ ); and replacing 768M with the memory limit you want to set.

1.1.0

  • Changes for compatibility with PHP 7. Changed “function ip_address_memory_usage() {” to “public function __construct() {“. Thanks to Sybre Waaijer for the fix.

1.0.3

  • Removed call to __construct() which caused problems on some systems: ERROR “Strict Standards: Redefining already defined constructor for class ip_address_memory_usage in /home/—/public_html/wp-content/plugins/server-ip-memory-usage/server-ip-memory-usage.php on line 40)”.

1.0.2

  • Included info about Server Operating System
  • Changed class name to c_ip_address_memory_usage to avoid error on some systems: “Redefining already defined constructor for class ip_address_memory_usage”.

1.0.1

  • First official release.