78% wp-health-check

Code Review | WP Health Check

WordPress plugin WP Health Check scored78%from 54 tests.

About plugin

  • Plugin page: wp-health-check
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Dec 9, 2013
  • Latest release: Dec 15, 2013
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: brijeshk89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,706 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.18ms] Passed 4 tests

This is a short check of server-side resources used by WP Health Check
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.91 ▲4.50
Dashboard /wp-admin3.34 ▲0.0448.29 ▼2.19
Posts /wp-admin/edit.php3.39 ▲0.0352.23 ▼0.11
Add New Post /wp-admin/post-new.php5.92 ▲0.03115.08 ▲11.14
Media Library /wp-admin/upload.php3.26 ▲0.0334.29 ▼1.48
WP Health Check /wp-admin/options-general.php?page=wp-health-check3.2232.40

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
wphc_version
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Health Check
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▼0.281.84 ▲0.1744.96 ▲0.55
Dashboard /wp-admin2,202 ▲225.62 ▲0.0887.00 ▼4.9737.51 ▼3.18
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0440.21 ▲1.9539.76 ▲3.04
Add New Post /wp-admin/post-new.php1,532 ▲622.94 ▼0.61615.07 ▼71.1152.37 ▼3.90
Media Library /wp-admin/upload.php1,404 ▲74.18 ▼0.06103.12 ▲1.5243.94 ▼2.29
WP Health Check /wp-admin/options-general.php?page=wp-health-check8362.0426.9932.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wp-health-check
    • > User deprecated in wp-includes/functions.php+5453
    Function get_userdatabylogin is deprecated since version 3.3.0! Use get_user_by('login') instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-health-check/wp-health-check.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
9 plugin tags: health, save, secure, check, alert...

wp-health-check/wp-health-check.php 92% from 13 tests

"WP Health Check" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 256 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected201 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37447201

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.66
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin