84% site-health-tool-manager

Code Review | Site Health Tool Manager

WordPress plugin Site Health Tool Manager scored84%from 54 tests.

About plugin

  • Plugin page: site-health-tool-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5.1
  • WordPress version: 6.3.1
  • First release: May 3, 2019
  • Latest release: Sep 22, 2020
  • Number of updates: 11
  • Update frequency: every 46.2 days
  • Top authors: earnjam (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /15,902 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.95ms] Passed 4 tests

An overview of server-side resources used by Site Health Tool Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.91 ▼2.01
Dashboard /wp-admin3.33 ▲0.0245.20 ▼1.37
Posts /wp-admin/edit.php3.38 ▲0.0249.27 ▲2.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.74 ▼14.49
Media Library /wp-admin/upload.php3.25 ▲0.0240.63 ▲7.73
Site Health /wp-admin/options-general.php?page=shtm-settings3.2231.26

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

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

Browser metrics Passed 4 tests

Site Health Tool Manager: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7214.44 ▲0.022.07 ▼0.0638.27 ▼1.93
Dashboard /wp-admin2,207 ▲165.86 ▼0.05110.15 ▲11.5639.05 ▼4.05
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0240.62 ▼2.0935.97 ▼0.22
Add New Post /wp-admin/post-new.php1,422 ▼11118.11 ▼5.09619.56 ▼65.5349.66 ▼1.03
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.0292.65 ▼13.1741.13 ▼3.36
Site Health /wp-admin/options-general.php?page=shtm-settings9512.0625.1427.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-health-tool-manager/site-health-tool-manager.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
2 plugin tags: administration, site-health

site-health-tool-manager/site-health-tool-manager.php Passed 13 tests

"Site Health Tool Manager" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Control which tests appear in the the Site Health Tool

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
No dangerous file extensions were detected120 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11735105
Markdown14015

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.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin