Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼131.55ms] Passed 4 tests
Analyzing server-side resources used by WP Image Optimizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.07 ▲0.23 | 43.22 ▲3.77 |
Dashboard /wp-admin | 3.35 ▲0.30 | 55.10 ▲6.07 |
Posts /wp-admin/edit.php | 3.40 ▲0.29 | 54.50 ▲7.92 |
Add New Post /wp-admin/post-new.php | 5.65 ▲0.21 | 106.96 ▼543.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.23 | 44.01 ▲9.57 |
WP Image Optimizer /wp-admin/upload.php?page=wp-image-optimizer | 3.12 | 30.78 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Image Optimizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲114 | 15.79 ▼0.12 | 11.25 ▲2.55 | 54.17 ▲3.82 |
Dashboard /wp-admin | 2,980 ▲49 | 5.96 ▲0.01 | 148.36 ▼24.76 | 121.26 ▲5.69 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.68 ▼0.02 | 64.28 ▼8.80 | 99.47 ▲5.32 |
Add New Post /wp-admin/post-new.php | 1,688 ▲5 | 18.73 ▲0.03 | 386.54 ▼0.87 | 113.64 ▼10.17 |
Media Library /wp-admin/upload.php | 1,814 ▲7 | 5.05 ▲0.05 | 145.92 ▼2.43 | 136.31 ▲11.03 |
WP Image Optimizer /wp-admin/upload.php?page=wp-image-optimizer | 1,476 | 2.34 | 65.98 | 112.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/upload.php?page=wp-image-optimizer
- > User notice in wp-includes/functions.php+5663
WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-image-optimizer/inc/admin/views/html-wp-image-optimizer-admin-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-image-optimizer/wp-image-optimizer.php Passed 13 tests
The primary PHP file in "WP Image Optimizer" version 1.1.5.1 is used by WordPress to initiate all plugin functionality
114 characters long description:
Reduce image file sizes and improve website performance using Linux littleutils image optimizers within WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,484 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 238 | 549 | 928 |
CSS | 1 | 23 | 13 | 309 |
JavaScript | 1 | 35 | 32 | 247 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 17.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 3 | 6.67% |
▷ Public methods | 41 | 91.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.89% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin