Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.76ms] Passed 4 tests
Server-side resources used by Simple Webp Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.13 | 41.62 ▼7.83 |
Dashboard /wp-admin | 3.42 ▲0.12 | 44.77 ▼3.35 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.02 ▼0.26 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 82.17 ▼18.74 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.73 ▼1.10 |
Simple Webp Images /wp-admin/options-general.php?page=simple-webp-images | 3.34 | 32.03 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- The plugin illegally modified 1 file (0.45KB) outside of "wp-content/plugins/simple-webp-images/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/output_buffering.php
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Simple Webp Images: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲55 | 14.82 ▲0.42 | 1.63 ▼0.57 | 44.76 ▼7.00 |
Dashboard /wp-admin | 2,218 ▲30 | 4.88 ▼1.02 | 111.83 ▲8.77 | 41.05 ▼3.33 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 2.08 ▲0.02 | 42.58 ▲6.89 | 34.70 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,535 ▲15 | 18.41 ▼4.78 | 623.90 ▼62.46 | 64.17 ▲6.71 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.49 ▲0.34 | 100.75 ▼5.74 | 42.77 ▲1.34 |
Simple Webp Images /wp-admin/options-general.php?page=simple-webp-images | 952 | 2.00 | 31.19 | 36.10 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- 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
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-webp-images
- > Warning in wp-content/plugins/simple-webp-images/templates/template-admin-menu-page.php+52
in_array() expects parameter 2 to be array, bool given
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-webp-images/templates/partial-single-convert-button.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-webp-images/simple-webp-images.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/simple-webp-images/templates/template-admin-menu-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-webp-images/mu-plugins/output_buffering.php:4
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: webp, pagespeed, images, conversion, speed
simple-webp-images/simple-webp-images.php 92% from 13 tests
The main PHP script in "Simple Webp Images" version 1.2.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 202 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,817 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 211 | 218 | 842 |
PHP | 7 | 174 | 19 | 685 |
Sass | 2 | 34 | 0 | 230 |
Markdown | 1 | 13 | 0 | 44 |
JSON | 1 | 0 | 0 | 14 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 56.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 43.18% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin