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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.07ms] Passed 4 tests
This is a short check of server-side resources used by Disable WebP By Default
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.33 ▼3.42 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.97 ▲2.18 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.15 ▲0.66 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.61 ▼10.14 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.94 ▲0.64 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
disable_webp_by_default_database_version |
can_compress_scripts |
disable_webp_transforms |
disable_webp_by_default_plugin_version |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Disable WebP By Default
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.37 ▼0.02 | 1.96 ▲0.22 | 42.73 ▼0.87 |
Dashboard /wp-admin | 2,198 ▲21 | 5.67 ▲0.08 | 81.97 ▼12.19 | 37.71 ▼2.46 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.02 | 33.87 ▼1.60 | 33.36 ▼2.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.46 ▲5.70 | 672.05 ▼18.89 | 51.82 ▼2.60 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.20 ▼0.04 | 99.98 ▼6.76 | 44.10 ▲1.17 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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 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
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/disable-webp-by-default/inc/activator.php
- > /wp-content/plugins/disable-webp-by-default/inc/class-disable-webp-by-default.php
- > /wp-content/plugins/disable-webp-by-default/disable-webp-by-default.php
- > /wp-content/plugins/disable-webp-by-default/inc/deactivator.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: webp, media, image, jpeg
disable-webp-by-default/disable-webp-by-default.php Passed 13 tests
The main PHP script in "Disable WebP By Default" version 0.7.0 is automatically included on every request by WordPress
73 characters long description:
A small plugin to disable WebP image creation on image upload by default.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin246 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 49 | 196 | 140 |
XML | 1 | 6 | 8 | 43 |
JSON | 1 | 0 | 0 | 32 |
Markdown | 1 | 15 | 0 | 31 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 6 | 60.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin