Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.69MB] [CPU: ▼28.07ms] Passed 4 tests
A check of server-side resources used by LH HTML Cleaner
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.76 ▼4.94 |
Dashboard /wp-admin | 3.34 ▼0.01 | 52.17 ▼18.20 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.79 ▲1.41 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.82 | 28.21 ▼90.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 44.53 ▲3.83 |
HTML Cleaner /wp-admin/options-general.php?page=lh-html-cleaner/lh-html-cleaner.php | 3.22 | 31.91 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for LH HTML Cleaner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.09 ▼0.20 | 2.01 ▲0.12 | 39.87 ▼0.46 |
Dashboard /wp-admin | 2,202 ▲22 | 5.65 ▼0.11 | 97.67 ▲1.91 | 41.62 ▼2.17 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.02 | 40.04 ▼2.44 | 35.28 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.95 ▲0.02 | 691.15 ▲7.34 | 62.27 ▲0.05 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.11 | 110.87 ▼3.72 | 48.42 ▲1.47 |
HTML Cleaner /wp-admin/options-general.php?page=lh-html-cleaner/lh-html-cleaner.php | 792 | 2.02 | 25.25 | 25.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-html-cleaner/lh-html-cleaner.php
- > Notice in wp-content/plugins/lh-html-cleaner/partials/option-settings.php+10
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-html-cleaner/lh-html-cleaner.php
- > Warning in wp-content/plugins/lh-html-cleaner/partials/option-settings.php+10
implode(): Invalid arguments passed
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-html-cleaner/partials/option-settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/lh-html-cleaner/lh-html-cleaner.php:194
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: styles, inline styles, delete, html, multisite...
lh-html-cleaner/lh-html-cleaner.php Passed 13 tests
The primary PHP file in "LH HTML Cleaner" version 1.33 is used by WordPress to initiate all plugin functionality
98 characters long description:
Removes blacklisted tags and attributes from the content of posts/pages/custom post types on save.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected119 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 99 | 18 | 119 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 40.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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