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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.67ms] Passed 4 tests
This is a short check of server-side resources used by QuickWebP - Compress / Optimize Images & Convert WebP | SEO Friendly
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.79 ▼5.99 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.80 ▲2.34 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.04 ▲2.37 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.31 ▼2.17 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.02 ▼0.84 |
Quickwebp /wp-admin/upload.php?page=quickwebp-settings | 3.33 | 39.61 |
Server storage [IO: ▲8.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 261 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by QuickWebP - Compress / Optimize Images & Convert WebP | SEO Friendly
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.12 | 1.81 ▲0.03 | 44.00 ▼2.17 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▲0.02 | 93.55 ▲2.53 | 41.90 ▲2.66 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.04 | 33.22 ▼6.89 | 35.60 ▼3.76 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.22 ▲2.10 | 673.03 ▲11.52 | 62.09 ▲7.78 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.22 ▼0.01 | 103.62 ▼11.24 | 46.61 ▼0.19 |
Quickwebp /wp-admin/upload.php?page=quickwebp-settings | 1,392 | 1.82 | 26.82 | 34.70 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/quickwebp/admin/templates/tab-media-paste.php
- > /wp-content/plugins/quickwebp/admin/templates/button-media-paste.php
- 154× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/quickwebp/includes/vendor/intervention/image/src/Intervention/Image/Gd/Commands/InvertCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/quickwebp/includes/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/GreyscaleCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/quickwebp/includes/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/PixelCommand.php:8
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/quickwebp/includes/vendor/intervention/image/src/Intervention/Image/Gd/Commands/ResetCommand.php:8
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/quickwebp/includes/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/FitCommand.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_key() in wp-content/plugins/quickwebp/admin/components/textarea.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/quickwebp/includes/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\AbstractShape' not found in wp-content/plugins/quickwebp/includes/vendor/intervention/image/src/Intervention/Image/Gd/Shapes/EllipseShape.php:9
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/quickwebp/includes/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/BlurCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\AbstractShape' not found in wp-content/plugins/quickwebp/includes/vendor/intervention/image/src/Intervention/Image/Imagick/Shapes/LineShape.php:9
- > 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 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
quickwebp/quickwebp.php 92% from 13 tests
The principal PHP file in "QuickWebP - Compress / Optimize Images & Convert WebP | SEO Friendly" v. 3.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 225 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin13,972 lines of code in 244 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 219 | 3,259 | 6,589 | 12,239 |
Markdown | 6 | 518 | 0 | 836 |
JSON | 8 | 0 | 0 | 628 |
PO File | 1 | 75 | 82 | 246 |
SVG | 3 | 0 | 0 | 10 |
YAML | 1 | 0 | 0 | 7 |
CSS | 3 | 0 | 0 | 3 |
JavaScript | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 172 | |
▷ Abstract classes | 8 | 4.65% |
▷ Concrete classes | 164 | 95.35% |
▷ Final classes | 22 | 13.41% |
Methods | 876 | |
▷ Static methods | 88 | 10.05% |
▷ Public methods | 738 | 84.25% |
▷ Protected methods | 65 | 7.42% |
▷ Private methods | 73 | 8.33% |
Functions | 40 | |
▷ Named functions | 6 | 15.00% |
▷ Anonymous functions | 34 | 85.00% |
Constants | 30 | |
▷ Global constants | 5 | 16.67% |
▷ Class constants | 25 | 83.33% |
▷ Public constants | 14 | 56.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 7.63MB with 5.44MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/second04.png | 3,271.99KB | 1,045.60KB | ▼ 68.04% |
public/assets/img/second05.png | 4,536.35KB | 1,154.56KB | ▼ 74.55% |