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.08MB] [CPU: ▼6.65ms] Passed 4 tests
This is a short check of server-side resources used by WebP Express
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.67 ▲1.66 |
Dashboard /wp-admin | 3.41 ▲0.06 | 48.21 ▼11.54 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.39 ▼1.51 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.10 | 81.85 ▼13.50 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 35.10 ▼0.06 |
WebP Express /wp-admin/options-general.php?page=webp_express_settings_page | 3.55 | 29.23 |
WebP Express /wp-admin/upload.php?page=webp_express_conversion_page | 3.31 | 31.04 |
Server storage [IO: ▲18.43MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- The plugin illegally modified 6 files (1.38KB) outside of "wp-content/plugins/webp-express/" and "wp-content/uploads/"
- (new file) wp-content/webp-express/htaccess-capability-tests/header-set/.htaccess
- (new file) wp-content/webp-express/htaccess-capability-tests/header-set/request-me.txt
- (new file) wp-content/webp-express/config/.htaccess
- (new file) wp-content/webp-express/htaccess-capability-tests/pass-info-from-rewrite-to-script-through-env/test.php
- (new file) wp-content/webp-express/htaccess-capability-tests/pass-info-from-rewrite-to-script-through-env/.htaccess
- (new file) wp-content/webp-express/webp-images/.empty
Filesystem: 550 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
webp-express-messages-pending |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
webp-express-migration-version |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WebP Express
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.72 ▲0.37 | 1.94 ▲0.28 | 44.65 ▲3.29 |
Dashboard /wp-admin | 2,200 ▲23 | 5.59 ▲0.02 | 82.56 ▼5.38 | 38.46 ▼3.23 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▲0.02 | 36.04 ▼5.69 | 32.33 ▼4.61 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.56 ▲0.09 | 602.46 ▼70.60 | 52.24 ▼3.15 |
Media Library /wp-admin/upload.php | 1,405 ▲11 | 4.19 ▲0.08 | 96.01 ▼5.01 | 40.66 ▼1.44 |
WebP Express /wp-admin/options-general.php?page=webp_express_settings_page | 3,253 | 1.79 | 34.19 | 404.60 |
WebP Express /wp-admin/upload.php?page=webp_express_conversion_page | 2,909 | 6.68 | 78.12 | 53.09 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=webp_express_conversion_page
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/webp-express/lib/classes/FileHelper.php+226
fopen(wp-content/webp-express/config/config.json): failed to open stream: No such file or directory
SRP 0% 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
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/webp-express/wod2/webp-on-demand.php
- > /wp-content/plugins/webp-express/wod2/ping.php
- > /wp-content/plugins/webp-express/wod/ping.php
- > /wp-content/plugins/webp-express/wod/webp-realizer.php
- > /wp-content/plugins/webp-express/wod2/webp-realizer.php
- > /wp-content/plugins/webp-express/wod/webp-on-demand.php
- > /wp-content/plugins/webp-express/lib/options/options/conversion-options/converter-options/imagick.php
- 240× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/webp-express/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/webp-express/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/webp-express/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'HtaccessCapabilityTester\\Tests\\Testers\\BasisTestCase' not found in wp-content/plugins/webp-express/vendor/rosell-dk/htaccess-capability-tester/tests/Testers/DirectoryIndexTesterTest.php:46
- > PHP Fatal error
Uncaught Error: Class 'WebPExpress\\PathHelper' not found in wp-content/plugins/webp-express/lib/migrate/migrate3.php:30
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/webp-express/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'HtaccessCapabilityTester\\Testers\\CustomTester' not found in wp-content/plugins/webp-express/vendor/rosell-dk/htaccess-capability-tester/src/Testers/ServerSignatureTester.php:24
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/webp-express/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php:8
- > PHP Fatal error
Uncaught Error: Class 'HtaccessCapabilityTester\\Tests\\Testers\\BasisTestCase' not found in wp-content/plugins/webp-express/vendor/rosell-dk/htaccess-capability-tester/tests/Testers/HeaderSetTesterTest.php:42
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/webp-express/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php:5
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: webp, performance, images
webp-express/webp-express.php 92% from 13 tests
This is the main PHP file of "WebP Express" version 0.25.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-110-windows-x64.exe
- ☣ wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-120-windows-x64.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 404 | 5,572 | 10,192 | 26,030 |
Markdown | 25 | 807 | 0 | 2,412 |
JSON | 15 | 1 | 0 | 1,848 |
JavaScript | 18 | 375 | 412 | 1,581 |
CSS | 4 | 75 | 74 | 630 |
XML | 10 | 14 | 1 | 231 |
YAML | 6 | 44 | 12 | 231 |
SVG | 3 | 1 | 2 | 49 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 10.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 2 | |
Traits | 9 | |
Classes | 307 | |
▷ Abstract classes | 6 | 1.95% |
▷ Concrete classes | 301 | 98.05% |
▷ Final classes | 0 | 0.00% |
Methods | 1,274 | |
▷ Static methods | 587 | 46.08% |
▷ Public methods | 979 | 76.84% |
▷ Protected methods | 145 | 11.38% |
▷ Private methods | 150 | 11.77% |
Functions | 63 | |
▷ Named functions | 50 | 79.37% |
▷ Anonymous functions | 13 | 20.63% |
Constants | 34 | |
▷ Global constants | 27 | 79.41% |
▷ Class constants | 7 | 20.59% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.36MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/options/css/images/checker.png | 0.18KB | 0.15KB | ▼ 19.05% |
assets/icon-256x256.png | 6.86KB | 4.01KB | ▼ 41.51% |
test/test.png | 3.04KB | 1.63KB | ▼ 46.57% |
test/dice.png | 231.30KB | 58.53KB | ▼ 74.69% |
assets/screenshot-1.png | 77.40KB | 31.19KB | ▼ 59.70% |