Benchmarks
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.02MB] [CPU: ▼5.66ms] Passed 4 tests
A check of server-side resources used by Lightweight HTML Minify
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.89 ▼0.43 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.41 ▼0.36 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.50 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.96 ▼17.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 32.86 ▼2.22 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Lightweight HTML Minify: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,777 ▲20 | 13.29 ▼1.09 | 1.86 ▼0.34 | 39.35 ▼7.80 |
Dashboard /wp-admin | 2,203 ▲12 | 4.98 ▼0.90 | 110.46 ▲0.45 | 40.51 ▼2.56 |
Posts /wp-admin/edit.php | 1,991 ▼101 | 2.02 ▲0.02 | 40.18 ▼0.26 | 36.12 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.32 ▲0.34 | 584.17 ▼134.59 | 54.29 ▼7.66 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.04 | 96.42 ▼6.89 | 43.33 ▲1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: html compression, lightweight, lightweight html minify, minify, html
lightweight-html-minify/plugin.php 85% from 13 tests
The main PHP script in "Lightweight HTML Minify" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 177 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lightweight-html-minify.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin127 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 18 | 127 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 50.00% |
▷ Protected methods | 3 | 50.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin