89% html-validation

Code Review | HTML Validation

WordPress plugin HTML Validation scored89%from 54 tests.

About plugin

  • Plugin page: html-validation
  • Plugin version: 1.0.11
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2020
  • Latest release: Feb 25, 2023
  • Number of updates: 36
  • Update frequency: every 27.4 days
  • Top authors: seshelby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /3,817 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.41MB] [CPU: ▲1.10ms] Passed 4 tests

Server-side resources used by HTML Validation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3848.06 ▲9.09
Dashboard /wp-admin3.76 ▲0.4548.69 ▼0.66
Posts /wp-admin/edit.php3.81 ▲0.4558.69 ▲8.08
Add New Post /wp-admin/post-new.php6.30 ▲0.4285.93 ▼6.66
Media Library /wp-admin/upload.php3.61 ▲0.3939.73 ▲3.65
Error Report /wp-admin/admin.php?page=html_validation/report.php4.2154.26
Settings /wp-admin/admin.php?page=html_validation/settings.php3.6046.16

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: 2 new tables, 8 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by HTML Validation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.33 ▼1.042.01 ▲0.3544.74 ▲5.85
Dashboard /wp-admin2,242 ▲534.92 ▲0.00110.10 ▼6.6542.48 ▼2.02
Posts /wp-admin/edit.php2,132 ▲402.10 ▲0.0845.19 ▲1.6738.97 ▲2.95
Add New Post /wp-admin/post-new.php1,550 ▲1723.26 ▲0.26653.86 ▼13.0754.65 ▼8.19
Media Library /wp-admin/upload.php1,421 ▲394.24 ▲0.06101.34 ▼5.4740.61 ▼5.71
Error Report /wp-admin/admin.php?page=html_validation/report.php1,2801.8227.5551.61
Settings /wp-admin/admin.php?page=html_validation/settings.php9992.0740.6738.15

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Not Available) image missing
You can take inspiration from this readme.txt

html-validation/html-validation.php 92% from 13 tests

The entry point to "HTML Validation" version 1.0.11 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 482 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,138 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9093.75%
▷ Anonymous functions66.25%
▷ Global constants00.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 are no PNG files in this plugin