Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.74ms] Passed 4 tests
Server-side resources used by WebP Uploads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 39.62 ▼8.93 |
Dashboard /wp-admin | 3.48 ▲0.13 | 61.74 ▼3.47 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 46.89 ▲0.70 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 99.22 ▲0.75 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.22 ▲2.65 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WebP Uploads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲30 | 14.35 ▼0.00 | 2.05 ▲0.04 | 44.42 ▲1.44 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.08 | 81.39 ▼5.73 | 38.34 ▼1.29 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.03 | 33.54 ▼4.09 | 33.63 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.09 ▲0.16 | 575.10 ▼83.60 | 57.25 ▼0.49 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▲0.01 | 95.62 ▲0.54 | 40.46 ▼1.70 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
3 plugin tags: webp, images, performance
webp-uploads/load.php 92% from 13 tests
"WebP Uploads" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webp-uploads.php" instead of "load.php")
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
Success! There were no dangerous files found in this plugin1,062 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 235 | 572 | 955 |
JavaScript | 1 | 22 | 7 | 95 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
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 | 35 | |
▷ Named functions | 31 | 88.57% |
▷ Anonymous functions | 4 | 11.43% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.32MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/icon-128x128.png | 12.53KB | 1.90KB | ▼ 84.80% |
.wordpress-org/banner-1544x500.png | 258.37KB | 154.41KB | ▼ 40.24% |
.wordpress-org/icon-256x256.png | 5.24KB | 2.43KB | ▼ 53.59% |
.wordpress-org/banner-772x250.png | 55.35KB | 26.04KB | ▼ 52.95% |