79% dashboard-system-info

Code Review | Dashboard System Info

WordPress plugin Dashboard System Info scored79%from 54 tests.

About plugin

  • Plugin page: dashboard-system-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2022
  • Latest release: Dec 6, 2022
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: jachymkellar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /155 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: ▼2.95ms] Passed 4 tests

An overview of server-side resources used by Dashboard System Info
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.49 ▲0.27
Dashboard /wp-admin3.38 ▲0.0352.67 ▼7.57
Posts /wp-admin/edit.php3.49 ▲0.1346.50 ▲2.30
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.83 ▼1.81
Media Library /wp-admin/upload.php3.30 ▲0.0734.98 ▼2.67

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Dashboard System Info
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,078 ▲33213.21 ▼1.171.78 ▼0.0030.68 ▼9.63
Dashboard /wp-admin2,484 ▲2935.86 ▼0.0494.85 ▼10.3346.25 ▲5.33
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0535.04 ▼0.2438.20 ▲3.64
Add New Post /wp-admin/post-new.php1,533 ▼023.68 ▲0.51663.88 ▼28.4952.21 ▼3.19
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0194.99 ▼10.3243.37 ▼0.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dashboard-system-info/src/view/widget-content.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/dashboard-system-info/src/view/widget-content.php on line 6
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/dashboard-system-info/src/view/widget-content.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: system information, dashboard, overview

dashboard-system-info/dashboard-system-info.php Passed 13 tests

This is the main PHP file of "Dashboard System Info" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Display system information on the administration dashboard page.

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
Success! There were no dangerous files found in this plugin524 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PO File3105105263
PHP742135224
Sass18036
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods12
▷ Static methods433.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin