Benchmarks
Plugin footprint 65% 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.86MB] [CPU: ▼33.30ms] Passed 4 tests
An overview of server-side resources used by Health Progress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 52.46 ▲9.35 |
Dashboard /wp-admin | 3.09 ▼0.22 | 29.03 ▼25.17 |
Posts /wp-admin/edit.php | 3.09 ▼0.27 | 28.19 ▼20.12 |
Add New Post /wp-admin/post-new.php | 3.09 ▼2.80 | 29.76 ▼73.49 |
Media Library /wp-admin/upload.php | 3.09 ▼0.14 | 25.26 ▼14.43 |
Health Progress /wp-admin/options-general.php?page=smhp_settings | 3.09 | 28.75 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_smhp_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Health Progress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.16 ▼0.22 | 1.72 ▼0.82 | 47.11 ▲4.29 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.06 | 90.37 ▼11.27 | 41.85 ▼3.94 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.05 | 39.59 ▲4.19 | 36.88 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.44 ▲0.26 | 639.81 ▼63.63 | 49.96 ▼6.39 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.21 ▲0.08 | 98.58 ▼18.30 | 44.11 ▼3.94 |
Health Progress /wp-admin/options-general.php?page=smhp_settings | 905 | 1.89 | 25.13 | 29.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/health-progress/health-progress.php+283
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_smhp_widget
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=smhp_settings
- > Notice in wp-content/plugins/health-progress/health-progress.php+283
Trying to access array offset on value of type bool
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_filter() in wp-content/plugins/health-progress/health-progress.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: widget, health
health-progress/health-progress.php Passed 13 tests
The main PHP script in "Health Progress" version 1.3 is automatically included on every request by WordPress
81 characters long description:
Creates a widget / shortcode so you can display progress in healthy measurements.
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
Success! There were no dangerous files found in this plugin3 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 4 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of 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 code | 0.24 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |