Server Status (System Status) – CPU, RAM, PHP, etc

Description

Useful statistics about the server OS, CPU, RAM, load average, memory usage, IP address, hostname, timezone, disk space, PHP, MySQL, caches, etc.

Our related OSS projects:

The Long Version

Server Status is a simple WordPress plugin for quickly displaying important statistics and configuration settings in regard to your server and WordPress environment. Specifically, the plugin creates a single dashboard widget along with a small line of data in the WP Admin footer with key info in regard to memory usage, PHP configuration, and several other useful items.

This plugin does NOT aim to replace the need for researching phpinfo or wp-config settings when extensive server statistics or configuration settings are needed. Rather, it aims to highlight the most commonly required settings needed by WordPress developers in an effort to save time and improve productivity.

We’ve purposefully avoided having a “settings” page for this plugin in order to keep things as simple as possible. However, as with any dashboard widget, you can easily hide the Server Status widget if needed (although not the footer data).

The code aims to be as minimalistic as possible while adhering to best practices. It blocks direct calls of its PHP files for security reasons and also implements transients so that data is briefly cached for top speed and performance (although “Memory Usage” and “Load Average” are not currently cached with transients).

You may change display style using the following constant:

define('SERVER_STATUS_DISPLAY', 'grid | widefat');

Some details about the plugin implementation:

/server-status.php
– Main plugin file which loads the dashboard or footer admin files through the WP hooks.
– No direct HTTP calls allowed, aborting the code execution if ABSPATH WP constant not defined.
– Defines some plugin constants like plugin path or cache refresh duration.
– Returns execution to WP in case we are outside of WP admin area.
– Only two functions to handle the WP hooks, avoiding PHP parsing of not used code.

/admin/dashboard.php
– Loaded only in dashboard context.
– The widdget code first loads the /core/status.php file with common procedures.
– Database access and disk access are cached for 30 seconds into one WP transient: disk space, database size and mysql version.
– Only one database access reading the transient “srvsts_data”, expiration time is defined in constant SVRSTS_REFRESH from main /server-status.php file.
– The widget displays items in a two columns table, except for long items where is used an entire row with one column.
– Exposes the WP filter “srvsts_items” allowing to add or modify more server status data.

/admin/footer.php
– This file is loaded after the “admin_footer_text” hook
– Loads the /core/status.php file with common procedures in a require_once way.
– Request the memory usage function without caching argument to get the current memory info.
– No database access because here we are not using procedures that requires transient data.

/core/status.php
– There is two parts, the first one is for server status procedures info, and the second part to check/save this data in a WP transient
– Memory usage procedure can be called with or without local cache argument (this value is not saved in the transient).

The code has been tested on PHP 7 with no errors.
Direct HTTP requests to any file does not produce error log records.
All classes are implemented with static methods, so there are no objects instances in memory.

Compatibility

This plugin has been designed for use on LEMP (Nginx) web servers with PHP 7.0 and MySQL 5.7 to achieve best performance. All of our plugins are meant for single site WordPress installations only; for both performance and security reasons, we highly recommend against using WordPress Multisite for the vast majority of projects.

Defined Constants

The following defined constants are supported by this plugin:

  • define('SERVER_STATUS_DISPLAY', 'grid | widefat');
  • define('DISABLE_NAG_NOTICES', true);

Plugin Features

  • Settings Page: No
  • Premium Version Available: No
  • Includes Media (Images, Icons, Etc): No
  • Includes CSS: Backend Only
  • Database Storage: Yes
    • Transients: Yes
    • Options: Yes
    • Creates New Tables: No
  • Database Queries: Backend Only (Options API + Transients API)
  • Must-Use Support: Yes (Use With Autoloader)
  • Multisite Support: No
  • Uninstalls Data: Yes

WP Admin Notices

This plugin generates multiple Admin Notices in the WP Admin dashboard. The first is a notice that fires during plugin activation which recommends several related free plugins that we believe will enhance this plugin’s features; this notice will re-appear approximately once every 6 months as our code and recommendations evolve. The second is a notice that fires a few days after plugin activation which asks for a 5-star rating of this plugin on its WordPress.org profile page. This notice will re-appear approximately once every 9 months. These notices can be dismissed by clicking the (x) symbol in the upper right of the notice box. These notices may annoy or confuse certain users, but are appreciated by the majority of our userbase, who understand that these notices support our free contributions to the WordPress community while providing valuable (free) recommendations for optimizing their website.

If you feel that these notices are too annoying, than we encourage you to consider one or more of our upcoming premium plugins that combine several free plugin features into a single control panel, or even consider developing your own plugins for WordPress, if supporting free plugin authors is too frustrating for you. A final alternative would be to place the defined constant mentioned below inside of your wp-config.php file to manually hide this plugin’s nag notices:

define('DISABLE_NAG_NOTICES', true);

Note: This defined constant will only affect the notices mentioned above, and will not affect any other notices generated by this plugin or other plugins, such as one-time notices that communicate with admin-level users.

Code Inspiration

This plugin was partially inspired either in “code or concept” by the open-source software and discussions mentioned below:

Recommended Plugins

We invite you to check out a few other related free plugins that our team has also produced that you may find especially useful:

Premium Plugins

We invite you to check out a few premium plugins that our team has also produced that you may find especially useful:

Special Thanks

We thank the following groups for their generous contributions to the WordPress community which have particularly benefited us in developing our own free plugins and paid services:

Disclaimer

We released this plugin in response to our managed hosting clients asking for better access to their server, and our primary goal will remain supporting that purpose. Although we are 100% open to fielding requests from the WordPress community, we kindly ask that you keep the above mentioned goals in mind, thanks!

Installation

  1. Upload the plugin files to /wp-content/plugins/server-status-littlebizzy
  2. Activate via WP Admin > WP Admin
  3. Check your WP Admin dashboard (admin users only) and footer area to view the statistics
  4. For alternative layouts, put either define('SVRSTS_DISPLAY', 'grid'); or define('SVRSTS_DISPLAY', 'widefat'); in your wp-config file

FAQ

Installation Instructions
  1. Upload the plugin files to /wp-content/plugins/server-status-littlebizzy
  2. Activate via WP Admin > WP Admin
  3. Check your WP Admin dashboard (admin users only) and footer area to view the statistics
  4. For alternative layouts, put either define('SVRSTS_DISPLAY', 'grid'); or define('SVRSTS_DISPLAY', 'widefat'); in your wp-config file
Does this plugin show everything from `phpinfo` settings?

No, and it’s not meant to. Please read the description tab for more info.

Does this plugin show everything from `wp-config` settings?

No, and it’s not meant to. Please read the description tab for more info.

How can I change this plugin’s settings?

This plugin does not have a settings page and is designed for speed and simplicity.

I have a suggestion, how can I let you know?

Please avoid leaving negative reviews in order to get a feature implemented. Instead, we kindly ask that you post your feedback on the wordpress.org support forums by tagging this plugin in your post. If needed, you may also contact our homepage.

Reviews

Nice Little Plugin, would like Number of Queries added 😉

Installed this on a test site and noticed it tells me which server responded. Very handy when running sites on multiple servers. Because of this I installed it on a few live sites.
I quickly found 1 site who’s redis cache hadn’t been configured correctly just by looking at the dashboard, so big thanks for that.
The one bit I would love you to add is the number of DB queries in the footer.

I’ve run

function performance( $visible = false ) {

    $stat = sprintf(  '%d queries in %.3f seconds, using %.2fMB memory',
        get_num_queries(),
        timer_stop( 0, 3 ),
        memory_get_peak_usage() / 1024 / 1024
        );

    echo $visible ? $stat : "<!-- {$stat} -->" ;
}
add_action( 'admin_footer_text', 'performance', 20 );

previously for this info and it’s been a big help seeing number of queries and time to generate the different pages.
No idea where I found that code, I’ve had it in functions.php for years but full credit to someone else (whoever they are) for it.

software OK, support rude and demeaning

I sent a nice, polite request for support to the company. I’m a developer myself, with over 40 years experience. I’m respectful and courteous when dealing with other developers, as I know what we all go thru.

Here is the reply, in full:

Jesse replied
Sep 26, 7:16pm
Added to our banned clients list

Kind regards,
Jesse Nickles
Founder, LittleBizzy

No explanation. Ticket abruptly closed. No response to my “Why?” follow up.

Consider this before you choose to spend any money with them.

Does the trick

Was having some serious speed issues, but after installing this plug in everything appears to have been resolved.

User’s Review & Rating

Server Status:<br>
Plugin Review

I gave this plugin the full rating 5/5! Simply because the function expected does no more or less, the statistics displayed is of much use to a developer so for others who doesn’t require the information wouldn’t have any need or use for this plugin. It makes it convenient and quick for developers to have as a resource and reference when needing any statistic displayed for web host servers. The details are listed in a boxed section on your wordpress dashboard for quick viewing server names, database, PHP version, hosting status and more. A recommended plugin useful for development and programming projects.

Read all 33 reviews

Contributors & Developers

“Server Status (System Status) – CPU, RAM, PHP, etc” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.3.2

  • updated plugin meta

1.3.1

  • updated recommended plugins

1.3.0

  • versioning correction (major changes in 1.2.10)
  • (no code changes)

1.2.10

  • added support for define('SERVER_STATUS_DISPLAY', 'grid | widefat');
  • (old spelling SVRSTS_DISPLAY no longer supported)
  • updated plugin meta

1.2.9

  • added warning for Multisite installations
  • updated recommended plugins

1.2.8

  • better support for DISABLE_NAG_NOTICES

1.2.7

  • tested with WP 4.9
  • partial support for DISABLE_NAG_NOTICES
  • updated recommended plugins
  • updated plugin meta

= 1.2.6
* optimized plugin code
* added rating request notice
* updated recommended plugins

1.2.5

  • updated recommended plugins

1.2.4

  • added recommended plugins notice

1.2.3

  • tested with WP 4.8
  • updated plugin meta

1.2.2

  • updated plugin meta

1.2.1

  • fixed Opcache size calculation bug
  • tweaked size calculation for Memory Usage (no decimal, M not MB)

1.2.0

  • CPU cores and load average now available
  • better calculation rounding i.e. KB, MB, GB, TB
  • disk space now total “used” instead of total “free”
  • WordPress timezone show alongside server timezone now
  • tweaked formatting of sizes (added 2 decimal places, etc)
  • Opcache now on a different line than Page Cache

1.1.1

  • Database Charset/Collate layout tweaked (was backwards)
  • Readme.txt revised for wordpress.org and minor changes to “short” description, etc in server-status.php
  • Default layout changed to be much more compressed to save space.
  • Alternative layout options added, which must be defined within wp-config

1.1.0

  • entirely recoded with PHP 7 and Transients API
  • tested with PHP 7.0

1.0.0

  • initial release (private)