Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.14ms] Passed 4 tests
Analyzing server-side resources used by Images to WebP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.15 ▼2.92 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.87 ▼6.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.40 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.28 ▼5.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.63 ▲1.01 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- Illegal file modification found: 1 file (0.92KB) outside of "wp-content/plugins/images-to-webp/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Images to WebP: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.29 ▼0.06 | 1.57 ▲0.01 | 52.59 ▲14.96 |
Dashboard /wp-admin | 2,198 ▲17 | 5.63 ▼0.03 | 84.96 ▼13.68 | 40.11 ▲1.73 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 36.31 ▲1.47 | 31.14 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.88 ▼0.28 | 678.25 ▼28.15 | 57.72 ▲0.88 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.02 | 96.12 ▼0.25 | 41.31 ▼2.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in images-to-webp/assets to your readme.txt
images-to-webp/images-to-webp.php Passed 13 tests
The primary PHP file in "Images to WebP" version 4.5 is used by WordPress to initiate all plugin functionality
58 characters long description:
Convert JPG, PNG and GIF images to WEBP, speed up your web
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin756 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 89 | 15 | 668 |
JavaScript | 2 | 2 | 1 | 87 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 23.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/40px.png | 1.57KB | 1.84KB | 0.00% |
tests/test.png | 0.42KB | 0.49KB | 0.00% |
assets/32px.png | 5.16KB | 2.93KB | ▼ 43.29% |