10% wp-healthcheck

Code Review | WP Healthcheck

WordPress plugin WP Healthcheck scored10%from 54 tests.

About plugin

  • Plugin page: wp-healthcheck
  • Plugin version: 1.3.4
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2017
  • Latest release: Mar 29, 2022
  • Number of updates: 27
  • Update frequency: every 59.0 days
  • Top authors: tiagohillebrandt (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /19,649 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/wp-healthcheck/includes/class-wp-healthcheck.php+671
    fsockopen(): unable to connect to ssl://wp.com:443 (Connection refused)

Server metrics [RAM: ▲0.14MB] [CPU: ▼1.96ms] Passed 4 tests

A check of server-side resources used by WP Healthcheck
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0944.29 ▲3.84
Dashboard /wp-admin3.47 ▲0.1656.05 ▲5.39
Posts /wp-admin/edit.php3.57 ▲0.2148.79 ▼1.80
Add New Post /wp-admin/post-new.php6.04 ▲0.1590.01 ▼14.03
Media Library /wp-admin/upload.php3.39 ▲0.1638.65 ▲4.14

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
wphc_version
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Healthcheck
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲12613.46 ▼1.291.70 ▼0.1342.61 ▲5.04
Dashboard /wp-admin2,267 ▲764.98 ▲0.06122.93 ▲16.2244.41 ▼2.24
Posts /wp-admin/edit.php2,135 ▲462.56 ▲0.5439.97 ▼2.8732.72 ▼5.46
Add New Post /wp-admin/post-new.php1,551 ▲3723.38 ▲5.87693.87 ▲29.9354.95 ▲5.52
Media Library /wp-admin/upload.php1,433 ▲454.32 ▲0.13101.21 ▼8.1843.37 ▲0.75

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/wp-healthcheck/includes/class-wp-healthcheck-cli.php:10

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

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: https, cron, performance, load time, check...

wp-healthcheck/wp-healthcheck.php Passed 13 tests

The principal PHP file in "WP Healthcheck" v. 1.3.4 is loaded by WordPress automatically on each request
44 characters long description:
Checks the health of your WordPress install.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,058 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP294156701,398
PO File185121330
CSS2420196
JavaScript22730120
SVG11013
JSON1001

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.42
Average class complexity26.17
▷ Minimum class complexity2.00
▷ Maximum class complexity89.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods63
▷ Static methods5892.06%
▷ Public methods6196.83%
▷ Protected methods00.00%
▷ Private methods23.17%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants16
▷ Global constants531.25%
▷ Class constants1168.75%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected