68% health-progress

Code Review | Health Progress

WordPress plugin Health Progress scored68%from 54 tests.

About plugin

  • Plugin page: health-progress
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Jul 15, 2014
  • Latest release: Sep 15, 2014
  • Number of updates: 17
  • Update frequency: every 3.6 days
  • Top authors: ourvalley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,454 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0652.46 ▲9.35
Dashboard /wp-admin3.09 ▼0.2229.03 ▼25.17
Posts /wp-admin/edit.php3.09 ▼0.2728.19 ▼20.12
Add New Post /wp-admin/post-new.php3.09 ▼2.8029.76 ▼73.49
Media Library /wp-admin/upload.php3.09 ▼0.1425.26 ▼14.43
Health Progress /wp-admin/options-general.php?page=smhp_settings3.0928.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.16 ▼0.221.72 ▼0.8247.11 ▲4.29
Dashboard /wp-admin2,199 ▲225.64 ▲0.0690.37 ▼11.2741.85 ▼3.94
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0539.59 ▲4.1936.88 ▲0.51
Add New Post /wp-admin/post-new.php1,529 ▲323.44 ▲0.26639.81 ▼63.6349.96 ▼6.39
Media Library /wp-admin/upload.php1,401 ▲14.21 ▲0.0898.58 ▼18.3044.11 ▼3.94
Health Progress /wp-admin/options-general.php?page=smhp_settings9051.8925.1329.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

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:
LanguageFilesBlank linesComment linesLines of code
CSS1041
JavaScript1001
PHP1001

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 code0.24
Average class complexity12.50
▷ Minimum class complexity6.00
▷ Maximum class complexity19.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%