77% wp-system-info

Code Review | WP System Information

WordPress plugin WP System Information scored77%from 54 tests.

About plugin

  • Plugin page: wp-system-info
  • Plugin version: 1.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2017
  • Latest release: Oct 3, 2022
  • Number of updates: 22
  • Update frequency: every 93.5 days
  • Top authors: naminbd (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /12,648 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.18ms] Passed 4 tests

A check of server-side resources used by WP System Information
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.10 ▼5.90
Dashboard /wp-admin3.32 ▲0.0250.79 ▼0.54
Posts /wp-admin/edit.php3.37 ▲0.0251.90 ▲7.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0496.74 ▼9.40
Media Library /wp-admin/upload.php3.24 ▲0.0239.16 ▲3.11
File Permission /wp-admin/admin.php?page=file-permission4.2677.81
System Info /wp-admin/admin.php?page=bsi_system_info3.42449.35
Get More Free Item /wp-admin/admin.php?page=get-more-free-item3.2430.78
PHP info() /wp-admin/admin.php?page=php-info3.4233.35

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP System Information
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.63 ▼0.631.76 ▼0.0541.59 ▼7.24
Dashboard /wp-admin2,247 ▲594.89 ▲0.0399.80 ▼18.4743.63 ▼7.68
Posts /wp-admin/edit.php2,127 ▲352.05 ▼0.0139.38 ▼2.8633.40 ▼2.00
Add New Post /wp-admin/post-new.php1,555 ▲2618.30 ▲0.05651.46 ▲27.2552.07 ▼5.57
Media Library /wp-admin/upload.php1,429 ▲414.24 ▲0.06113.53 ▲4.3447.20 ▲4.71
File Permission /wp-admin/admin.php?page=file-permission1,2301.7627.7329.90
System Info /wp-admin/admin.php?page=bsi_system_info1,3221.7225.4531.64
Get More Free Item /wp-admin/admin.php?page=get-more-free-item9571.8426.0538.11
PHP info() /wp-admin/admin.php?page=php-info6,2261.7831.1184.47

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=php-info
    • > Deprecated in wp-content/plugins/wp-system-info/view/php-info.php+24
    Function create_function() is deprecated

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 fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'BSI_Common' not found in wp-content/plugins/wp-system-info/view/php-info.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-system-info/system-info.php:59
    • > PHP Fatal error
      Uncaught Error: Class 'BSI_Common' not found in wp-content/plugins/wp-system-info/view/show-file-permission.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'BSI_Common' not found in wp-content/plugins/wp-system-info/view/free-plugins.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'BSI_Common' not found in wp-content/plugins/wp-system-info/view/status.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-system-info/system-info.php 77% from 13 tests

The main PHP file in "WP System Information" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-system-info.php" instead of "system-info.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.2" instead of "5.0")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,079 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6273371,001
JavaScript1181647
CSS16031

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity24.50
▷ Minimum class complexity11.00
▷ Maximum class complexity38.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods412.90%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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 images were found in this plugin