68% simple-system-status

Code Review | Simple System Status

WordPress plugin Simple System Status scored68%from 54 tests.

About plugin

  • Plugin page: simple-system-status
  • Plugin version: 2.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: Mar 3, 2015
  • Latest release: May 7, 2022
  • Number of updates: 30
  • Update frequency: every 87.4 days
  • Top authors: leogopal (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /59,568 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.50MB] [CPU: ▼56.61ms] Passed 4 tests

A check of server-side resources used by Simple System Status
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.50 ▼0.965.39 ▼37.71
Dashboard /wp-admin2.52 ▼0.836.70 ▼58.08
Posts /wp-admin/edit.php2.52 ▼0.847.40 ▼38.85
Add New Post /wp-admin/post-new.php2.52 ▼3.377.25 ▼91.79
Media Library /wp-admin/upload.php2.52 ▼0.716.44 ▼28.77
Simple System Status /wp-admin/tools.php?page=simple-system-status2.527.96

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Simple System Status
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲2214.70 ▲0.361.78 ▼0.3437.98 ▼5.93
Dashboard /wp-admin2,199 ▲215.61 ▼0.0591.58 ▼20.5141.88 ▲0.18
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0838.72 ▼0.4135.77 ▼3.88
Add New Post /wp-admin/post-new.php1,529 ▲322.89 ▼0.07655.35 ▲21.6264.92 ▲1.67
Media Library /wp-admin/upload.php1,401 ▲14.27 ▲0.1396.08 ▲2.1941.65 ▼0.59
Simple System Status /wp-admin/tools.php?page=simple-system-status8472.1322.5943.91

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
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simple-system-status/includes/browser.php+148
    Methods with the same name as their class will not be constructors in a future version of PHP; Browser has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% 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)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=simple-system-status
    • > Deprecated in wp-content/plugins/simple-system-status/includes/browser.php+148
    Methods with the same name as their class will not be constructors in a future version of PHP; Browser has a deprecated constructor
    • > GET request to /wp-admin/tools.php?page=simple-system-status
    • > Notice in wp-content/plugins/simple-system-status/views/output.php+80
    A non well formed numeric value encountered
    • > GET request to /wp-admin/tools.php?page=simple-system-status
    • > Warning in wp-content/plugins/simple-system-status/views/output.php+114
    count(): Parameter must be an array or an object that implements Countable

SRP 50% 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
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-system-status/views/simple-system-status.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-system-status/simple-system-status.php:280
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/simple-system-status/views/output.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: tools, debugging, developer, debug, testing...

simple-system-status/simple-system-status.php 92% from 13 tests

"Simple System Status" version 2.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected1,199 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP7129579981
Markdown141082
JavaScript5161074
JSON20034
CSS16328

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity46.67
▷ Minimum class complexity4.00
▷ Maximum class complexity119.00
Average method complexity2.99
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods69
▷ Static methods1420.29%
▷ Public methods69100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin