84% server-status

Code Review | Server Status

WordPress plugin Server Status scored84%from 54 tests.

About plugin

  • Plugin page: server-status
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Feb 9, 2014
  • Latest release: Aug 30, 2014
  • Number of updates: 17
  • Update frequency: every 11.9 days
  • Top authors: extendwings (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /2,701 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: ▼15.19ms] Passed 4 tests

Server-side resources used by Server Status
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.10 ▼4.54
Dashboard /wp-admin3.11 ▼0.2424.95 ▼35.57
Posts /wp-admin/edit.php3.48 ▲0.1346.14 ▼8.54
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.00 ▼12.10
Media Library /wp-admin/upload.php3.29 ▲0.0639.01 ▲4.94

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

An overview of browser requirements for Server Status
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,158 ▼60312.80 ▼1.582.01 ▲0.3644.51 ▲3.84
Dashboard /wp-admin1,567 ▼6101.38 ▼4.1712.88 ▼77.9535.19 ▼8.59
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0239.56 ▼1.9247.39 ▲11.30
Add New Post /wp-admin/post-new.php1,549 ▲2323.25 ▲5.79677.99 ▼11.1636.39 ▼29.77
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.04111.98 ▲0.7345.64 ▼1.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • recovery_mode_email_last_sent

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 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/server-status/server-status.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (First Access (Without cached data)), #2 (Second Access (With cached data))
You can look at the official readme.txt

server-status/server-status.php 92% from 13 tests

The principal PHP file in "Server Status" v. 0.1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin319 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25122319

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.25
▷ Minimum class complexity6.00
▷ Maximum class complexity23.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods628.57%
▷ Protected methods1152.38%
▷ Private methods419.05%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png75.44KB24.47KB▼ 67.56%
screenshot-1.png75.44KB24.51KB▼ 67.51%