78% system-requirements-check

Code Review | System Requirements Check

WordPress plugin System Requirements Check scored 78% from 54 tests.

About plugin

  • Plugin page: system-requiremen...
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2014
  • Latest release: Jan 4, 2023
  • Number of updates: 53
  • Update frequency: every 60.5 days
  • Top authors: eslin87 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 5,066 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.23ms] Passed 4 tests

This is a short check of server-side resources used by System Requirements Check
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.73 ▼4.52
Dashboard /wp-admin3.34 ▲0.0353.08 ▼4.24
Posts /wp-admin/edit.php3.39 ▲0.0355.87 ▲3.09
Add New Post /wp-admin/post-new.php5.92 ▲0.03102.83 ▼0.03
Media Library /wp-admin/upload.php3.26 ▲0.0336.68 ▼0.14
System Requirements Check /wp-admin/options-general.php?page=system_requirements_check3.3034.18

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 32 new options
New WordPress options
windows_10
ip
disable_os_check
windows_81
widget_theysaidso_widget
jre
screen_h
widget_recent-posts
edge
js
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for System Requirements Check
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲4413.28 ▲0.041.99 ▼0.1044.98 ▲1.24
Dashboard /wp-admin2,209 ▲34.84 ▼0.0299.02 ▼12.1540.18 ▼2.57
Posts /wp-admin/edit.php2,098 ▲92.05 ▼0.0840.56 ▲5.0636.23 ▲2.71
Add New Post /wp-admin/post-new.php1,542 ▲2318.43 ▼5.11628.63 ▼7.5552.39 ▲1.02
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0695.40 ▼12.6940.56 ▼6.28
System Requirements Check /wp-admin/options-general.php?page=system_requirements_check1,1192.0329.9856.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 32 options
    • js
    • db_upgraded
    • screen
    • edge
    • host_ip
    • widget_theysaidso_widget
    • ip
    • disable_screen_check
    • cookie
    • can_compress_scripts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/system-requirements-check/includes/admin/system-requirements-check-settings-donation.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/system-requirements-check/includes/admin/system-requirements-check-settings-form.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === system-requirements-check === )
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can take inspiration from this readme.txt

system-requirements-check/system-requirements-check.php 92% from 13 tests

This is the main PHP file of "System Requirements Check" version 1.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 413 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin767 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP8294212681
CSS32181
JavaScript5005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity25.50
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity4.77
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2596.15%
▷ Protected methods13.85%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin