84% plugin-health-check

Code Review | Plugin Health Check

WordPress plugin Plugin Health Check scored84%from 54 tests.

About plugin

  • Plugin page: plugin-health-check
  • Plugin version: 0.0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 18, 2019
  • Latest release: Aug 6, 2019
  • Number of updates: 5
  • Update frequency: every 4.4 days
  • Top authors: kingkero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,068 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.10MB] [CPU: ▼0.78ms] Passed 4 tests

This is a short check of server-side resources used by Plugin Health Check
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.19 ▲2.89
Dashboard /wp-admin3.41 ▲0.1052.05 ▼2.87
Posts /wp-admin/edit.php3.52 ▲0.1649.78 ▲1.52
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.62 ▼4.11
Media Library /wp-admin/upload.php3.33 ▲0.1038.53 ▲2.33

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Health Check
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▲0.001.62 ▼0.3443.85 ▲3.71
Dashboard /wp-admin2,195 ▲185.58 ▼0.0987.62 ▼4.9339.49 ▼5.68
Posts /wp-admin/edit.php2,100 ▲12.01 ▼0.0340.45 ▲0.7136.45 ▼1.53
Add New Post /wp-admin/post-new.php1,526 ▼023.71 ▲0.19692.97 ▲8.1156.11 ▲0.38
Media Library /wp-admin/upload.php1,394 ▼94.15 ▼0.0199.09 ▼7.1345.27 ▼0.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/plugin-health-check/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/plugin-health-check/vendor/composer/installers/tests/Composer/Installers/Test/CakePHPInstallerTest.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/plugin-health-check/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/plugin-health-check/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/plugin-health-check/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/plugin-health-check/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/plugin-health-check/vendor/composer/installers/src/Composer/Installers/Installer.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/plugin-health-check/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/plugin-health-check/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/plugin-health-check/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The tests found updates are available for one theme and two plugins.) image required
Please take inspiration from this readme.txt

plugin-health-check/plugin-health-check.php Passed 13 tests

The primary PHP file in "Plugin Health Check" version 0.0.5 is used by WordPress to initiate all plugin functionality
59 characters long description:
Adds info about installed plugins to the Site Health Check.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,688 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP452524151,412
Markdown1320130
JSON200115
XML12023
YAML1308

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.32
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes38
▷ Abstract classes25.26%
▷ Concrete classes3694.74%
▷ Final classes00.00%
Methods73
▷ Static methods1419.18%
▷ Public methods6183.56%
▷ Protected methods912.33%
▷ Private methods34.11%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin