Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼7.98ms] Passed 4 tests
This is a short check of server-side resources used by Plus WebP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 33.63 ▼11.10 |
Dashboard /wp-admin | 3.44 ▲0.09 | 46.94 ▼14.90 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.92 ▲0.52 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 82.03 ▼6.44 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.18 ▲2.06 |
Plus WebP /wp-admin/upload.php?page=plus-webp | 3.34 | 38.62 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
pluswebp |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Plus WebP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.36 | 1.76 ▼0.03 | 42.73 ▲0.34 |
Dashboard /wp-admin | 2,196 ▲16 | 5.50 ▼0.17 | 84.09 ▼4.78 | 38.25 ▼2.47 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.95 ▼0.01 | 39.08 ▲2.84 | 36.64 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.20 ▲4.87 | 665.06 ▲71.64 | 59.31 ▼7.66 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▼0.02 | 98.14 ▲0.33 | 43.71 ▲0.81 |
Plus WebP /wp-admin/upload.php?page=plus-webp | 1,040 | 7.47 | 179.10 | 32.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/plus-webp/lib/class-pluswebp.php:419
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plus-webp/lib/class-pluswebpadmin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/plus-webp/lib/class-pluswebp.php:419
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: upload, media, webp
plus-webp/pluswebp.php 92% from 13 tests
This is the main PHP file of "Plus WebP" version 4.04, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("plus-webp.php" instead of "pluswebp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,125 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 126 | 282 | 640 |
JavaScript | 6 | 45 | 3 | 426 |
CSS | 3 | 1 | 0 | 38 |
JSON | 1 | 0 | 0 | 19 |
Sass | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 32.50 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 64.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 36.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin