84% page-health-o-meter

Code Review | Page Health-O-Meter

WordPress plugin Page Health-O-Meter scored84%from 54 tests.

About plugin

  • Plugin page: page-health-o-meter
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.1-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2017
  • Latest release: May 3, 2021
  • Number of updates: 36
  • Update frequency: every 41.1 days
  • Top authors: brainpulse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /613 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.10ms] Passed 4 tests

An overview of server-side resources used by Page Health-O-Meter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0549.36 ▲3.11
Dashboard /wp-admin3.36 ▲0.0247.46 ▼17.54
Posts /wp-admin/edit.php3.41 ▲0.0549.47 ▼3.13
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.17 ▼0.07
Media Library /wp-admin/upload.php3.28 ▲0.0538.87 ▲0.33
Page Strength /wp-admin/admin.php?page=phom-page-strength3.2633.60
All Prospect /wp-admin/admin.php?page=phom-all-prospect3.2628.79
Incoming links /wp-admin/admin.php?page=phom-incoming-links3.2633.27
Page Health-O-Meter /wp-admin/admin.php?page=phom-options3.2530.39

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Page Health-O-Meter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲7614.25 ▼0.021.67 ▼0.0243.16 ▼7.56
Dashboard /wp-admin2,230 ▲565.55 ▼0.0383.25 ▼13.4936.81 ▼1.96
Posts /wp-admin/edit.php2,135 ▲322.01 ▼0.0340.57 ▼1.8337.05 ▼0.53
Add New Post /wp-admin/post-new.php1,559 ▲2423.39 ▲5.07676.77 ▲31.5751.96 ▼27.91
Media Library /wp-admin/upload.php1,438 ▲414.24 ▲0.0196.55 ▼10.1241.07 ▼6.67
Page Strength /wp-admin/admin.php?page=phom-page-strength8602.0025.6435.23
All Prospect /wp-admin/admin.php?page=phom-all-prospect8602.0024.8130.18
Incoming links /wp-admin/admin.php?page=phom-incoming-links8542.0026.6129.13
Page Health-O-Meter /wp-admin/admin.php?page=phom-options8502.0322.5327.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-health-o-meter/health-o-meter.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: You can take inspiration from this readme.txt

page-health-o-meter/health-o-meter.php 92% from 13 tests

The principal PHP file in "Page Health-O-Meter" v. 2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("page-health-o-meter.php" instead of "health-o-meter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin394 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1115358
CSS20534
JavaScript1052

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin