Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼3.97ms] Passed 4 tests
An overview of server-side resources used by WP Media Optimizer (.webp)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.88 ▲1.81 |
Dashboard /wp-admin | 3.49 ▲0.19 | 47.83 ▲4.25 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.35 ▲4.71 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 80.04 ▼25.98 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 37.03 ▲4.06 |
About /wp-admin/admin.php?page=wpmowebp-option-about | 3.36 | 292.49 |
Above the Fold /wp-admin/admin.php?page=wpmowebp-option-abovethefold | 3.32 | 35.51 |
WP Media Optimizer /wp-admin/admin.php?page=wpmowebp-options | 3.34 | 35.29 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
wpmowebp-css |
theysaidso_admin_options |
widget_theysaidso_widget |
wpmowebp-js |
wpmowebp-images-dir |
widget_recent-posts |
wpmowebp-atf |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Media Optimizer (.webp)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲146 | 13.21 ▼1.37 | 1.88 ▲0.13 | 44.03 ▲0.94 |
Dashboard /wp-admin | 2,247 ▲59 | 5.87 ▲1.01 | 98.55 ▼4.35 | 40.95 ▼5.76 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.00 ▲0.00 | 39.57 ▲1.99 | 37.58 ▲1.68 |
Add New Post /wp-admin/post-new.php | 1,577 ▲57 | 21.12 ▼2.30 | 674.69 ▲77.50 | 58.62 ▲5.81 |
Media Library /wp-admin/upload.php | 1,441 ▲50 | 4.26 ▲0.05 | 95.51 ▼4.05 | 44.39 ▼1.09 |
About /wp-admin/admin.php?page=wpmowebp-option-about | 814 | 2.17 | 24.53 | 26.05 |
Above the Fold /wp-admin/admin.php?page=wpmowebp-option-abovethefold | 1,121 | 2.01 | 21.83 | 30.44 |
WP Media Optimizer /wp-admin/admin.php?page=wpmowebp-options | 1,031 | 2.07 | 28.50 | 30.62 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- wpmowebp-images-dir
- wpmowebp-css
- widget_theysaidso_widget
- wpmowebp-atf
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- wpmowebp-js
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpmowebp-option-abovethefold
- > Notice in wp-content/plugins/wp-media-optimizer-webp/wp-media-optimizer-webp.php+304
Undefined index: blacklisted
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpmowebp-option-abovethefold
- > Warning in wp-content/plugins/wp-media-optimizer-webp/wp-media-optimizer-webp.php+304
Invalid argument supplied for foreach()
SRP 50% 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-media-optimizer-webp/wp-media-optimizer-webp.php:34
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wpmowebp-option-about
- > Network (severe)
site/templates/styles/main.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wpmowebp-options
- > Network (severe)
wp-content/plugins/wp-media-optimizer-webp/assets/admin-main.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: image, load, lazy, media, webp...
wp-media-optimizer-webp/wp-media-optimizer-webp.php Passed 13 tests
The main PHP script in "WP Media Optimizer (.webp)" version 1.4.0 is automatically included on every request by WordPress
88 characters long description:
Convert your media images to .webp for increase performances, now with lazy load feature
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin544 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 15 | 525 |
JavaScript | 1 | 1 | 0 | 12 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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 | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 17 | 89.47% |
▷ Anonymous functions | 2 | 10.53% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin