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.47MB] [CPU: ▼2.79ms] Passed 4 tests
This is a short check of server-side resources used by Health Check & Troubleshooting
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.49 | 61.25 ▲19.67 |
Dashboard /wp-admin | 3.81 ▲0.51 | 57.41 ▲6.19 |
Posts /wp-admin/edit.php | 3.86 ▲0.51 | 52.92 ▼4.06 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 86.81 ▼23.06 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 46.10 ▲9.78 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Health Check & Troubleshooting
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.54 ▲0.27 | 1.82 ▼0.16 | 52.78 ▲10.76 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.01 | 89.21 ▲2.51 | 41.48 ▼5.45 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▲0.01 | 33.69 ▼7.39 | 35.02 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.36 ▼0.20 | 682.47 ▲63.46 | 57.91 ▲10.16 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.27 ▲0.09 | 101.48 ▼3.92 | 43.78 ▼1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 22× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/health-check/HealthCheck/class-health-check-troubleshoot.php
- > /wp-content/plugins/health-check/HealthCheck/Tools/class-health-check-htaccess.php
- > /wp-content/plugins/health-check/health-check.php
- > /wp-content/plugins/health-check/HealthCheck/class-health-check.php
- > /wp-content/plugins/health-check/HealthCheck/class-health-check-screenshots.php
- > /wp-content/plugins/health-check/pages/phpinfo.php
- > /wp-content/plugins/health-check/HealthCheck/Tools/class-health-check-phpinfo.php
- > /wp-content/plugins/health-check/pages/screenshots.php
- > /wp-content/plugins/health-check/HealthCheck/Tools/class-health-check-mail-check.php
- > /wp-content/plugins/health-check/mu-plugin/health-check-troubleshooting-mode.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/health-check/compat.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Health_Check_Tool' not found in wp-content/plugins/health-check/HealthCheck/Tools/class-health-check-plugin-compatibility.php:3
- > PHP Notice
Undefined variable: wp_version in wp-content/plugins/health-check/compat.php on line 244
- > PHP Notice
Undefined variable: wp_version in wp-content/plugins/health-check/compat.php on line 219
- > PHP Notice
Undefined variable: wp_version in wp-content/plugins/health-check/compat.php on line 208
- > PHP Fatal error
Uncaught Error: Class 'Health_Check_Tool' not found in wp-content/plugins/health-check/HealthCheck/Tools/class-health-check-debug-log-viewer.php:3
- > PHP Notice
Undefined variable: wp_version in wp-content/plugins/health-check/compat.php on line 90
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/health-check/HealthCheck/BackCompat/class-wp-site-health.php:17
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/health-check/compat.php on line 4
- > PHP Notice
Undefined variable: wp_version in wp-content/plugins/health-check/compat.php on line 152
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
1 plugin tags: health check
health-check/health-check.php Passed 13 tests
"Health Check & Troubleshooting" version 1.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
Checks the health of your WordPress install.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin4,226 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 926 | 1,226 | 4,221 |
JavaScript | 4 | 0 | 0 | 4 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 134)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 26.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 134.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 19 | 15.97% |
▷ Public methods | 114 | 95.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.20% |
Functions | 13 | |
▷ Named functions | 8 | 61.54% |
▷ Anonymous functions | 5 | 38.46% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin