Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.61ms] Passed 4 tests
An overview of server-side resources used by HT Fast webp
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 25.44 ▼28.98 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.86 ▼2.38 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.64 ▼3.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 91.08 ▲0.76 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.73 ▲0.10 |
Principal /wp-admin/admin.php?page=HT-fast-webp | 3.22 | 34.44 |
Cookie policy /wp-admin/admin.php?page=HT-fast-webp-cookie-policy | 3.23 | 34.54 |
Server storage [IO: ▲12.72MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 149 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
HTFastWebp_cookie_policy_url |
HTFastWebp_lazy_load_active |
HTFastWebp_cookie_policy_text_url |
can_compress_scripts |
HTFastWebp_cookie_policy_btn |
theysaidso_admin_options |
HTFastWebp_cookie_policy_active |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for HT Fast webp
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 13.27 ▼1.11 | 2.15 ▼0.57 | 43.56 ▼11.15 |
Dashboard /wp-admin | 2,235 ▲47 | 5.86 ▲0.77 | 103.44 ▲0.08 | 39.29 ▼7.27 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 2.04 ▲0.00 | 34.55 ▼7.66 | 32.02 ▼6.68 |
Add New Post /wp-admin/post-new.php | 1,552 ▲31 | 23.52 ▲0.43 | 678.64 ▼1.84 | 54.02 ▲1.42 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.19 ▲0.04 | 96.80 ▼16.30 | 44.82 ▼1.49 |
Principal /wp-admin/admin.php?page=HT-fast-webp | 895 | 2.02 | 23.15 | 31.87 |
Cookie policy /wp-admin/admin.php?page=HT-fast-webp-cookie-policy | 937 | 2.03 | 22.70 | 27.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 15 options
- widget_theysaidso_widget
- HTFastWebp_script_attribute_defer
- HTFastWebp_cookie_policy_btn
- widget_recent-posts
- HTFastWebp_cookie_policy_title
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- HTFastWebp_cookie_policy_buttonAcceptTechnical
- HTFastWebp_cookie_policy_text_url
- ...
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ht-fast-web/actions/webp-on-demand.php
- 56× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/ht-fast-web/settings/myOptions.php:3
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Exceptions\\WebPConvertException' not found in wp-content/plugins/ht-fast-web/vendor/rosell-dk/webp-convert/src/Options/Exceptions/InvalidOptionValueException.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ht-fast-web/views/principal.php:6
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Convert\\Converters\\AbstractConverter' not found in wp-content/plugins/ht-fast-web/vendor/rosell-dk/webp-convert/src/Convert/Converters/GmagickBinary.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ht-fast-web/settings/run.php:3
- > PHP Fatal error
Uncaught Error: Class 'ImageMimeTypeGuesser\\Detectors\\AbstractDetector' not found in wp-content/plugins/ht-fast-web/vendor/rosell-dk/image-mime-type-guesser/src/Detectors/MimeContentType.php:5
- > PHP Fatal error
Uncaught Error: Class 'ImageMimeTypeGuesser\\Detectors\\AbstractDetector' not found in wp-content/plugins/ht-fast-web/vendor/rosell-dk/image-mime-type-guesser/src/Detectors/GetImageSize.php:5
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Exceptions\\WebPConvertException' not found in wp-content/plugins/ht-fast-web/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailedException.php:27
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Convert\\Exceptions\\ConversionFailed\\InvalidInputException' not found in wp-content/plugins/ht-fast-web/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailed/InvalidInput/TargetNotFoundException.php:7
- > PHP Fatal error
Uncaught Error: Class 'ImageMimeTypeGuesser\\Detectors\\AbstractDetector' not found in wp-content/plugins/ht-fast-web/vendor/rosell-dk/image-mime-type-guesser/src/Detectors/SniffFirstFourBytes.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: fast web, fast, pagespeed, web
ht-fast-web/init.php 85% from 13 tests
This is the main PHP file of "HT Fast webp" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ht-fast-web.php" instead of "init.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/ht-fast-web/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-110-windows-x64.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 1,286 | 2,662 | 5,327 |
Markdown | 21 | 796 | 0 | 2,370 |
JSON | 3 | 0 | 0 | 290 |
XML | 1 | 0 | 0 | 28 |
CSS | 2 | 2 | 0 | 26 |
JavaScript | 3 | 2 | 0 | 17 |
YAML | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 8.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 0 | |
Traits | 9 | |
Classes | 77 | |
▷ Abstract classes | 3 | 3.90% |
▷ Concrete classes | 74 | 96.10% |
▷ Final classes | 0 | 0.00% |
Methods | 327 | |
▷ Static methods | 85 | 25.99% |
▷ Public methods | 204 | 62.39% |
▷ Protected methods | 73 | 22.32% |
▷ Private methods | 50 | 15.29% |
Functions | 13 | |
▷ Named functions | 10 | 76.92% |
▷ Anonymous functions | 3 | 23.08% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.23MB with 0.17MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/rosell-dk/webp-convert/docs/v2.0/converting/dice.png | 231.30KB | 58.53KB | ▼ 74.69% |