83% wordpress-server-load-monitor

Code Review | WordPress Server Load

WordPress plugin WordPress Server Load scored 83% from 54 tests.

About plugin

  • Plugin page: wordpress-server-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.0
  • WordPress version: 6.3.1
  • First release: Jun 25, 2011
  • Latest release: Aug 29, 2014
  • Number of updates: 8
  • Update frequency: every 145.1 days
  • Top authors: itsabhik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼3.75ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Server Load
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.26 ▼3.82
Dashboard /wp-admin3.26 ▼0.0444.29 ▼0.79
Posts /wp-admin/edit.php3.36 ▲0.0043.17 ▼2.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.68 ▼7.72
Media Library /wp-admin/upload.php3.23 ▲0.0038.50 ▲3.19

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
recovery_mode_email_last_sent
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Server Load
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,164 ▼58212.45 ▼2.131.85 ▼0.2442.42 ▼1.99
Dashboard /wp-admin1,573 ▼6121.41 ▼4.4915.92 ▼93.9032.50 ▼7.48
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0138.50 ▼0.6643.59 ▲5.89
Add New Post /wp-admin/post-new.php1,667 ▲14822.28 ▼0.80660.36 ▲4.3637.11 ▼17.69
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0495.32 ▼15.8643.81 ▼8.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-server-load-monitor/wordpress-server-load.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === wordpress-server-load-monitor === )
  • Screenshots: Screenshot #1 (Wordpress Server Load Admin Widget) image missing
The official readme.txt might help

wordpress-server-load-monitor/wordpress-server-load.php 85% from 13 tests

The main PHP file in "WordPress Server Load" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 196 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wordpress-server-load-monitor.php" instead of "wordpress-server-load.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin134 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11312134

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png16.01KB7.92KB▼ 50.55%