Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲4.63MB] [CPU: ▲27.26ms] 75% from 4 tests
Analyzing server-side resources used by EWWW Image Optimizer
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 712.31ms on /wp-admin/admin.php?page=ewww-image-optimizer-webp-migrate)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.66 ▲4.20 | 70.99 ▲29.30 |
Dashboard /wp-admin | 8.06 ▲4.75 | 73.28 ▲20.33 |
Posts /wp-admin/edit.php | 8.11 ▲4.75 | 82.85 ▲31.26 |
Add New Post /wp-admin/post-new.php | 10.72 ▲4.83 | 121.13 ▲28.16 |
Media Library /wp-admin/upload.php | 8.10 ▲4.87 | 72.54 ▲35.05 |
EWWW Image Optimizer /wp-admin/options-general.php?page=ewww-image-optimizer-options | 8.02 | 148.06 |
EWWW Image Optimizer /wp-admin/tools.php?page=ewww-image-optimizer-tools | 8.01 | 66.94 |
Bulk Optimize /wp-admin/upload.php?page=ewww-image-optimizer-bulk | 8.03 | 140.74 |
Migrate WebP Images /wp-admin/admin.php?page=ewww-image-optimizer-webp-migrate | 8.01 | 712.31 |
Server storage [IO: ▲16.66MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- The plugin illegally modified 3 files (2,438.56KB) outside of "wp-content/plugins/ewww-image-optimizer/" and "wp-content/uploads/"
- (new file) wp-content/ewww/gifsicle
- (new file) wp-content/ewww/optipng
- (new file) wp-content/ewww/jpegtran
Filesystem: 180 new files
Database: 2 new tables, 42 new options
New tables |
---|
wp_ewwwio_images |
wp_ewwwio_queue |
New WordPress options |
---|
ewww_image_optimizer_webp_for_cdn |
ewww_image_optimizer_exactdn_plan_id |
ewww_image_optimizer_aux_resume |
ewww_image_optimizer_exactdn |
ewww_image_optimizer_resize_existing |
can_compress_scripts |
ewww_image_optimizer_pngout_level |
widget_recent-posts |
widget_theysaidso_widget |
ewww_image_optimizer_jpg_level |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for EWWW Image Optimizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.28 ▼0.46 | 1.76 ▲0.04 | 41.38 ▼3.02 |
Dashboard /wp-admin | 2,207 ▲30 | 5.59 ▲0.06 | 89.32 ▼17.18 | 38.64 ▼8.61 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.02 ▲0.06 | 40.32 ▲0.56 | 37.20 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 17.91 ▼5.18 | 616.87 ▼39.74 | 63.03 ▲9.72 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.29 ▲0.01 | 106.06 ▼1.84 | 79.79 ▲35.51 |
EWWW Image Optimizer /wp-admin/options-general.php?page=ewww-image-optimizer-options | 1,015 | 4.68 | 51.06 | 74.50 |
EWWW Image Optimizer /wp-admin/tools.php?page=ewww-image-optimizer-tools | 809 | 1.73 | 25.08 | 25.71 |
Bulk Optimize /wp-admin/upload.php?page=ewww-image-optimizer-bulk | 982 | 4.87 | 69.12 | 50.36 |
Migrate WebP Images /wp-admin/admin.php?page=ewww-image-optimizer-webp-migrate | 815 | 2.01 | 27.05 | 25.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_ewwwio_queue
- wp_ewwwio_images
- Zombie WordPress options were found after uninstall: 42 options
- exactdn_lossy
- exactdn_exclude
- ewww_image_optimizer_jpg_level
- ewww_image_optimizer_webp_rewrite_exclude
- ewww_image_optimizer_bulk_resume
- ewww_image_optimizer_ll_all_things
- ewww_image_optimizer_gif_level
- exactdn_prevent_db_queries
- widget_theysaidso_widget
- ewww_image_optimizer_lazy_load
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 40× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/ewww-image-optimizer/tests/test-optimize.php:12
- > PHP Fatal error
Uncaught Error: Class 'lsolesen\\pel\\PelException' not found in wp-content/plugins/ewww-image-optimizer/vendor/lsolesen/pel/src/PelJpegInvalidMarkerException.php:38
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/ewww-image-optimizer/tests/test-agr.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/ewww-image-optimizer/tests/test-tables.php:12
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/ewww-image-optimizer/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'lsolesen\\pel\\PelEntryException' not found in wp-content/plugins/ewww-image-optimizer/vendor/lsolesen/pel/src/PelUnexpectedFormatException.php:53
- > PHP Fatal error
Uncaught Error: Class 'lsolesen\\pel\\PelEntryNumber' not found in wp-content/plugins/ewww-image-optimizer/vendor/lsolesen/pel/src/PelEntryShort.php:58
- > PHP Fatal error
Uncaught Error: Class 'lsolesen\\pel\\PelEntryAscii' not found in wp-content/plugins/ewww-image-optimizer/vendor/lsolesen/pel/src/PelEntryCopyright.php:54
- > PHP Fatal error
Uncaught Error: Class 'lsolesen\\pel\\PelEntryLong' not found in wp-content/plugins/ewww-image-optimizer/vendor/lsolesen/pel/src/PelEntryRational.php:62
- > PHP Fatal error
Uncaught Error: Class 'lsolesen\\pel\\PelException' not found in wp-content/plugins/ewww-image-optimizer/vendor/lsolesen/pel/src/PelInvalidDataException.php:44
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/upload.php?page=ewww-image-optimizer-bulk
- > Javascript (severe) in unknown
/wp-admin/js/dashboard.min.js?ver=6.3.1 1:8674 Uncaught TypeError: window.wp.deprecateL10nObject is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
ewww-image-optimizer/ewww-image-optimizer.php Passed 13 tests
The main file in "EWWW Image Optimizer" v. 7.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
129 characters long description:
Smaller Images, Faster Sites, Happier Visitors. Comprehensive image optimization that doesn't require a degree in rocket science.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/ewww-image-optimizer/binaries/cwebp.exe
- ☣ wp-content/plugins/ewww-image-optimizer/binaries/gifsicle.exe
- ☣ wp-content/plugins/ewww-image-optimizer/binaries/jpegtran.exe
- ☣ wp-content/plugins/ewww-image-optimizer/binaries/optipng.exe
- ☣ wp-content/plugins/ewww-image-optimizer/binaries/pngquant.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 3,078 | 16,007 | 36,803 |
JavaScript | 23 | 311 | 137 | 4,268 |
CSS | 1 | 7 | 36 | 931 |
Markdown | 4 | 264 | 0 | 551 |
Bourne Shell | 2 | 68 | 50 | 206 |
JSON | 3 | 0 | 0 | 117 |
YAML | 2 | 12 | 0 | 57 |
XML | 2 | 9 | 1 | 53 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 229)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 49.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 994.00 |
Average method complexity | 6.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 229.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 89 | |
▷ Abstract classes | 5 | 5.62% |
▷ Concrete classes | 84 | 94.38% |
▷ Final classes | 1 | 1.19% |
Methods | 753 | |
▷ Static methods | 73 | 9.69% |
▷ Public methods | 665 | 88.31% |
▷ Protected methods | 58 | 7.70% |
▷ Private methods | 30 | 3.98% |
Functions | 370 | |
▷ Named functions | 368 | 99.46% |
▷ Anonymous functions | 2 | 0.54% |
Constants | 400 | |
▷ Global constants | 41 | 10.25% |
▷ Class constants | 359 | 89.75% |
▷ Public constants | 354 | 98.61% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/question-circle.png | 0.57KB | 0.47KB | ▼ 17.62% |
images/test.png | 0.85KB | 0.86KB | 0.00% |
images/ewwwio-logo.png | 8.36KB | 4.78KB | ▼ 42.84% |
images/testorig.png | 0.11KB | 0.08KB | ▼ 26.32% |