78% check-system-details

Code Review | Check System Details

WordPress plugin Check System Details scored78%from 54 tests.

About plugin

  • Plugin page: check-system-details
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 18, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 9
  • Update frequency: every 32.2 days
  • Top authors: prabhatrai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Check System Details
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.86 ▼4.00
Dashboard /wp-admin3.32 ▲0.0153.02 ▲3.98
Posts /wp-admin/edit.php3.37 ▲0.0154.55 ▲7.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.46 ▼13.25
Media Library /wp-admin/upload.php3.24 ▲0.0138.00 ▼1.26

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Check System Details: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.28 ▼0.451.73 ▼0.0643.04 ▼0.97
Dashboard /wp-admin2,213 ▲355.58 ▼0.1891.01 ▼18.6641.62 ▼5.03
Posts /wp-admin/edit.php2,115 ▲151.98 ▲0.0238.37 ▲1.6634.01 ▼2.27
Add New Post /wp-admin/post-new.php1,541 ▲1323.16 ▲0.14664.12 ▲19.0152.09 ▼0.51
Media Library /wp-admin/upload.php1,418 ▲184.17 ▼0.07100.36 ▼6.9746.17 ▼1.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/check-system-details/admin/htaccess.php
    • > /wp-content/plugins/check-system-details/admin/debug_log.php
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/check-system-details/admin/robots_txt.php:5
    • > PHP Warning
      Use of undefined constant WP_DEBUG - assumed 'WP_DEBUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/check-system-details/admin/debug_log.php on line 5
    • > PHP Warning
      Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/check-system-details/admin/server_and_database.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/check-system-details/admin/wordpress.php:5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/check-system-details/admin/debug_log.php on line 6
    • > PHP Warning
      Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/check-system-details/admin/server_and_database.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/check-system-details/admin/server_and_database.php:22
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/check-system-details/admin/htaccess.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/check-system-details/admin/wordpress.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/check-system-details/check_system_details.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
6 plugin tags: debug log, robotstxt, database details, htaccess, server details...

check-system-details/check_system_details.php 77% from 13 tests

The main file in "Check System Details" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("check-system-details.php" instead of "check_system_details.php")
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "5.6")
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "4.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected321 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP83427321

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin