84% server-information

Code Review | Server Information

WordPress plugin Server Information scored84%from 54 tests.

About plugin

  • Plugin page: server-information
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.4
  • WordPress version: 6.3.1
  • First release: Dec 25, 2014
  • Latest release: Dec 22, 2015
  • Number of updates: 23
  • Update frequency: every 15.7 days
  • Top authors: miunosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,672 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.53MB] [CPU: ▼2.69ms] Passed 4 tests

Analyzing server-side resources used by Server Information
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.12 ▼9.96
Dashboard /wp-admin4.01 ▲0.7151.51 ▲1.20
Posts /wp-admin/edit.php4.06 ▲0.7053.54 ▲2.93
Add New Post /wp-admin/post-new.php6.59 ▲0.7088.43 ▼4.39
Media Library /wp-admin/upload.php3.93 ▲0.7039.97 ▲2.41
Server Information /wp-admin/tools.php?page=si_report2.635.57

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 257 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Server Information
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.31 ▼0.081.79 ▼0.4241.24 ▲0.72
Dashboard /wp-admin2,199 ▲315.54 ▼0.1889.04 ▼5.4335.03 ▼7.79
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0139.33 ▼1.2334.44 ▼2.84
Add New Post /wp-admin/post-new.php1,548 ▲323.23 ▲0.08665.96 ▼26.8358.69 ▲4.87
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.1593.71 ▼10.2645.58 ▲2.60
Server Information /wp-admin/tools.php?page=si_report1,6693.8771.64112.75

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 226× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ServerInformation_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/server-information/include/library/apf/factory/_common/form/_view/AdminPageFramework_Form_View___Description.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ServerInformation_AdminPageFramework_Form_View___CSS_Base' not found in wp-content/plugins/server-information/include/library/apf/factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_Form.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ServerInformation_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/server-information/include/library/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_Base.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ServerInformation_AdminPageFramework_Format_Base' not found in wp-content/plugins/server-information/include/library/apf/factory/admin_page/_model/format/AdminPageFramework_Format_SubMenuPage.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ServerInformation_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/server-information/include/library/apf/factory/_common/utility/AdminPageFramework_Debug.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ServerInformation_AdminPageFramework_FieldType_select' not found in wp-content/plugins/server-information/include/library/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_size.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ServerInformation_AdminPageFramework_Form_View___Generate_FieldName' not found in wp-content/plugins/server-information/include/library/apf/factory/_common/form/_view/generator/field/AdminPageFramework_Form_View___Generate_FlatFieldName.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ServerInformation_AdminPageFramework_Format_Base' not found in wp-content/plugins/server-information/include/library/apf/factory/admin_page/_model/format/AdminPageFramework_Format_PageResource_Style.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ServerInformation_AdminPageFramework_Model__FormSubmission_Base' not found in wp-content/plugins/server-information/include/library/apf/factory/admin_page/_model/delegate/validaor/AdminPageFramework_Model__FormSubmission__Validator_Base.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ServerInformation_AdminPageFramework_Form_View___CSS_Base' not found in wp-content/plugins/server-information/include/library/apf/factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_FieldError.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

server-information/server-information.php Passed 13 tests

Analyzing the main PHP file in "Server Information" version 1.2.0
71 characters long description:
Adds an email report form in the admin area to send server information.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin16,060 lines of code in 253 files:
LanguageFilesBlank linesComment linesLines of code
PHP2521,0513,28816,012
Markdown124048

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.26
▷ Minimum class complexity1.00
▷ Maximum class complexity163.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes253
▷ Abstract classes5421.34%
▷ Concrete classes19978.66%
▷ Final classes63.02%
Methods1,451
▷ Static methods19913.71%
▷ Public methods76452.65%
▷ Protected methods28319.50%
▷ Private methods40427.84%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants80
▷ Global constants00.00%
▷ Class constants80100.00%
▷ Public constants80100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected