73% system-report

Code Review | System Report

WordPress plugin System Report scored73%from 54 tests.

About plugin

  • Plugin page: system-report
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Mar 29, 2016
  • Latest release: Jul 1, 2017
  • Number of updates: 12
  • Update frequency: every 38.3 days
  • Top authors: aaronholbrook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,952 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.59ms] Passed 4 tests

Analyzing server-side resources used by System Report
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.85 ▼4.35
Dashboard /wp-admin3.37 ▲0.0346.08 ▼10.14
Posts /wp-admin/edit.php3.48 ▲0.1348.63 ▼0.65
Add New Post /wp-admin/post-new.php5.95 ▲0.0788.22 ▼11.23
Media Library /wp-admin/upload.php3.29 ▲0.0737.44 ▲5.34
System Report /wp-admin/tools.php?page=system-report3.2529.65

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for System Report
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.74 ▲0.191.83 ▲0.1841.16 ▼0.87
Dashboard /wp-admin2,210 ▲225.90 ▲0.00107.08 ▲4.4740.09 ▼1.87
Posts /wp-admin/edit.php2,090 ▲12.11 ▲0.0939.81 ▲3.2934.59 ▼0.26
Add New Post /wp-admin/post-new.php1,545 ▲1623.02 ▼0.09665.84 ▲9.0259.40 ▲4.46
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.05106.45 ▲6.7844.31 ▲1.38
System Report /wp-admin/tools.php?page=system-report1,2342.1823.0330.79

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

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

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 server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=system-report
    • > Notice in wp-content/plugins/system-report/views/server.php+24
    Undefined index: PHP_INI_DIR
    • > GET request to /wp-admin/tools.php?page=system-report
    • > Notice in wp-content/plugins/system-report/views/server.php+25
    Undefined index: USER

SRP 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/system-report/system-report.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/system-report/src/class-system-report-table.php on line 7
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/system-report/src/class-system-report-table.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/system-report/src/class-system-report-table.php on line 7

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: information, report, status, system

system-report/system-report.php Passed 13 tests

"System Report" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
108 characters long description:
Quickly identify important aspects of your server, PHP, WordPress installation, theme, plugins and database.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected426 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP12142146416
JSON10010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected