Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.71ms] Passed 4 tests
An overview of server-side resources used by Simple WebP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.49 ▲1.03 | 42.43 ▲3.02 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.33 ▼7.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.26 ▲0.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.32 ▼6.50 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.08 ▲3.84 |
Server storage [IO: ▲12.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 145 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple WebP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.71 ▼0.88 | 1.80 ▼0.03 | 37.64 ▼11.91 |
Dashboard /wp-admin | 2,203 ▲18 | 5.83 ▼0.07 | 105.45 ▲5.18 | 37.32 ▼6.52 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.08 | 39.04 ▼1.65 | 36.00 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,542 ▲21 | 23.08 ▼0.07 | 608.10 ▼19.06 | 60.38 ▲5.44 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▲0.01 | 97.45 ▼6.51 | 43.91 ▲0.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 51× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ImageMimeTypeGuesser\\Detectors\\AbstractDetector' not found in wp-content/plugins/webp-simple/vendor/rosell-dk/image-mime-type-guesser/src/Detectors/Stack.php:5
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Options\\Option' not found in wp-content/plugins/webp-simple/vendor/rosell-dk/webp-convert/src/Options/GhostOption.php:15
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Convert\\Converters\\AbstractConverter' not found in wp-content/plugins/webp-simple/vendor/rosell-dk/webp-convert/src/Convert/Converters/GraphicsMagick.php:21
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Convert\\Exceptions\\ConversionFailed\\FileSystemProblemsException' not found in wp-content/plugins/webp-simple/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailed/FileSystemProblems/CreateDestinationFolderException.php:7
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Loggers\\BaseLogger' not found in wp-content/plugins/webp-simple/vendor/rosell-dk/webp-convert/src/Loggers/EchoLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Options\\Option' not found in wp-content/plugins/webp-simple/vendor/rosell-dk/webp-convert/src/Options/BooleanOption.php:15
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Convert\\Exceptions\\ConversionFailedException' not found in wp-content/plugins/webp-simple/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailed/ConversionSkippedException.php:7
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Exceptions\\InvalidInputException' not found in wp-content/plugins/webp-simple/vendor/rosell-dk/webp-convert/src/Exceptions/InvalidInput/TargetNotFoundException.php:7
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Options\\ArrayOption' not found in wp-content/plugins/webp-simple/vendor/rosell-dk/webp-convert/src/Options/SensitiveArrayOption.php:15
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Exceptions\\WebPConvertException' not found in wp-content/plugins/webp-simple/vendor/rosell-dk/webp-convert/src/Options/Exceptions/InvalidOptionTypeException.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: performance, webp
webp-simple/webp-simple.php Passed 13 tests
The principal PHP file in "Simple WebP" v. 1.0.0 is loaded by WordPress automatically on each request
69 characters long description:
Serve WebP images instead of jpeg/png to browsers that supports WebP.
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
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/webp-simple/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 | 96 | 1,488 | 3,605 | 6,807 |
Markdown | 21 | 829 | 0 | 2,456 |
JSON | 5 | 0 | 0 | 415 |
XML | 2 | 4 | 1 | 61 |
JavaScript | 1 | 0 | 4 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 8.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 0 | |
Traits | 9 | |
Classes | 80 | |
▷ Abstract classes | 3 | 3.75% |
▷ Concrete classes | 77 | 96.25% |
▷ Final classes | 0 | 0.00% |
Methods | 334 | |
▷ Static methods | 83 | 24.85% |
▷ Public methods | 208 | 62.28% |
▷ Protected methods | 74 | 22.16% |
▷ Private methods | 52 | 15.57% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to 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% |