10% wow-server-status-widget

Code Review | WOW Server Status Widget

WordPress plugin WOW Server Status Widget scored 10% from 54 tests.

About plugin

  • Plugin page: wow-server-status...
  • Plugin version: 1.0.13
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.5
  • WordPress version: 6.3.1
  • First release: Jun 20, 2010
  • Latest release: Apr 4, 2016
  • Number of updates: 37
  • Update frequency: every 57.2 days
  • Top authors: freegod725 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 7,266 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wow-server-status-widget/wow-server-status-widget.php+76
    Methods with the same name as their class will not be constructors in a future version of PHP; Wow_SS_Widget has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.22ms] Passed 4 tests

Analyzing server-side resources used by WOW Server Status Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.75 ▼38.69
Dashboard /wp-admin2.11 ▼1.205.89 ▼42.23
Posts /wp-admin/edit.php2.11 ▼1.255.91 ▼39.02
Add New Post /wp-admin/post-new.php2.11 ▼3.787.33 ▼92.94
Media Library /wp-admin/upload.php2.11 ▼1.126.79 ▼24.55
WOW Server Status Widget /wp-admin/options-general.php?page=wow_ss_options2.115.47

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_wow-ss-widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WOW Server Status Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.51 ▲0.081.89 ▲0.2245.68 ▲3.81
Dashboard /wp-admin2,210 ▲195.79 ▼0.1194.40 ▼4.4438.53 ▼2.21
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0335.72 ▲0.2231.54 ▼0.91
Add New Post /wp-admin/post-new.php1,540 ▲723.32 ▼0.01662.93 ▼62.5552.96 ▲6.63
Media Library /wp-admin/upload.php1,389 ▲44.23 ▼0.02105.71 ▲8.9746.86 ▲3.44
WOW Server Status Widget /wp-admin/options-general.php?page=wow_ss_options8302.0523.7326.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/wow-server-status-widget/wow-server-status-widget.php+76
    Methods with the same name as their class will not be constructors in a future version of PHP; Wow_SS_Widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_wow-ss-widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wow_ss_options
    • > Deprecated in wp-content/plugins/wow-server-status-widget/wow-server-status-widget.php+76
    Methods with the same name as their class will not be constructors in a future version of PHP; Wow_SS_Widget has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wow_ss_options
    • > Notice in wp-content/plugins/wow-server-status-widget/inc/admin.php+46
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=wow_ss_options
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Wow_SS_Widget is deprecated since version 4.3.0! Use __construct() instead.

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wow-server-status-widget/wow_ss.php
  • 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined index: realm in wp-content/plugins/wow-server-status-widget/wow_ss.php on line 64
    • > PHP Notice
      Undefined index: update_timer in wp-content/plugins/wow-server-status-widget/lib/wow_ss.php on line 66
    • > PHP Notice
      Undefined index: region in wp-content/plugins/wow-server-status-widget/wow_ss.php on line 64
    • > PHP Notice
      Undefined index: update_timer in wp-content/plugins/wow-server-status-widget/wow_ss.php on line 64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wow-server-status-widget/inc/admin.php:5
    • > PHP Notice
      Undefined index: display in wp-content/plugins/wow-server-status-widget/wow_ss.php on line 64
    • > PHP Notice
      Undefined index: data_path in wp-content/plugins/wow-server-status-widget/wow_ss.php on line 64
    • > PHP Notice
      Undefined index: data_path in wp-content/plugins/wow-server-status-widget/lib/wow_ss.php on line 66
    • > PHP Notice
      Undefined index: xml in wp-content/plugins/wow-server-status-widget/lib/wow_ss.php on line 112
    • > PHP Notice
      Undefined index: apikey in wp-content/plugins/wow-server-status-widget/lib/wow_ss.php on line 66

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Here is how it looks)
Please take inspiration from this readme.txt

wow-server-status-widget/wow-server-status-widget.php Passed 13 tests

"WOW Server Status Widget" version 1.0.13's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Add WOW Server Status 4.1 badge to your site by a few clicks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,220 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP53024601,206
SVG2008
Markdown1206

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity35.43
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity11.04
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wowss/high.png1.00KB0.80KB▼ 19.86%
wowss/low.png0.92KB0.77KB▼ 15.64%
wowss/down2.png3.07KB2.94KB▼ 4.33%
wowss/up2.png3.14KB3.00KB▼ 4.32%
wowss/error.png1.82KB1.59KB▼ 12.82%