Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼2.69ms] Passed 4 tests
Server-side resources used by WebP Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 40.65 ▼0.66 |
Dashboard /wp-admin | 3.52 ▲0.21 | 49.07 ▼0.60 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 52.75 ▲1.56 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 88.62 ▼11.07 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.50 ▲2.54 |
WebP settings /wp-admin/upload.php?page=webp-images-settings | 3.42 | 38.92 |
Server storage [IO: ▲12.19MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- Illegal file modification found: 1 file (1.21KB) outside of "wp-content/plugins/webp-images/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 131 new files
Database: no new tables, 8 new options
New WordPress options |
---|
webp_images_version |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
webp_images_installation_time |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WebP Images
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.72 ▼0.80 | 1.53 ▼0.71 | 43.75 ▲0.84 |
Dashboard /wp-admin | 2,217 ▲29 | 5.82 ▲0.91 | 106.44 ▼0.49 | 40.34 ▼3.05 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.04 ▲0.04 | 37.26 ▲0.93 | 33.53 ▼0.77 |
Add New Post /wp-admin/post-new.php | 1,524 ▼18 | 23.07 ▲4.73 | 678.85 ▲20.89 | 56.77 ▲3.90 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.18 ▼0.03 | 96.92 ▼1.86 | 43.01 ▼1.06 |
WebP settings /wp-admin/upload.php?page=webp-images-settings | 933 | 2.07 | 23.46 | 38.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- webp_images_version
- widget_recent-comments
- db_upgraded
- webp_images_installation_time
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/webp-images/parts/options-page-status.php
- > /wp-content/plugins/webp-images/parts/sidebar.php
- > /wp-content/plugins/webp-images/parts/options-page-main.php
- > /wp-content/plugins/webp-images/inc/functions.php
- > /wp-content/plugins/webp-images/webp-images.php
- 50× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Convert\\Converters\\AbstractConverter' not found in wp-content/plugins/webp-images/vendor/rosell-dk/webp-convert/src/Convert/Converters/GraphicsMagick.php:21
- > PHP Fatal error
Uncaught Error: Class 'ImageMimeTypeGuesser\\Detectors\\AbstractDetector' not found in wp-content/plugins/webp-images/vendor/rosell-dk/image-mime-type-guesser/src/Detectors/ExifImageType.php:7
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Exceptions\\WebPConvertException' not found in wp-content/plugins/webp-images/vendor/rosell-dk/webp-convert/src/Serve/Exceptions/ServeFailedException.php:7
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Convert\\Exceptions\\ConversionFailed\\FileSystemProblemsException' not found in wp-content/plugins/webp-images/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailed/FileSystemProblems/CreateDestinationFileException.php:7
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Exceptions\\WebPConvertException' not found in wp-content/plugins/webp-images/vendor/rosell-dk/webp-convert/src/Options/Exceptions/InvalidOptionValueException.php:7
- > PHP Fatal error
Trait 'WebPConvert\\Convert\\Converters\\BaseTraits\\AutoQualityTrait' not found in wp-content/plugins/webp-images/vendor/rosell-dk/webp-convert/src/Convert/Converters/AbstractConverter.php on line 26
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Convert\\Exceptions\\ConversionFailedException' not found in wp-content/plugins/webp-images/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailed/InvalidInputException.php:7
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Options\\Option' not found in wp-content/plugins/webp-images/vendor/rosell-dk/webp-convert/src/Options/IntegerOption.php:15
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Convert\\Converters\\AbstractConverter' not found in wp-content/plugins/webp-images/vendor/rosell-dk/webp-convert/src/Convert/Converters/Wpc.php:24
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Exceptions\\WebPConvertException' not found in wp-content/plugins/webp-images/vendor/rosell-dk/webp-convert/src/Options/Exceptions/OptionNotFoundException.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: images compression, images optimize, images, webp converter, webp
webp-images/webp-images.php 92% from 13 tests
The main PHP file in "WebP Images" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/webp-images/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-103-windows-x64.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 1,603 | 3,703 | 7,831 |
JSON | 5 | 1 | 0 | 512 |
Markdown | 5 | 135 | 0 | 366 |
CSS | 1 | 41 | 2 | 178 |
JavaScript | 1 | 19 | 0 | 103 |
XML | 2 | 4 | 1 | 61 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 9.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 0 | |
Traits | 9 | |
Classes | 81 | |
▷ Abstract classes | 3 | 3.70% |
▷ Concrete classes | 78 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 371 | |
▷ Static methods | 88 | 23.72% |
▷ Public methods | 241 | 64.96% |
▷ Protected methods | 71 | 19.14% |
▷ Private methods | 59 | 15.90% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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 were not PNG files found in your plugin