Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.09ms] Passed 4 tests
Analyzing server-side resources used by Image Optimizer by 10web - Image Optimizer and Compression plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.69 ▼5.92 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.85 ▼2.70 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.02 ▼3.89 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 102.41 ▲0.14 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 41.55 ▲1.70 |
App /wp-admin/admin.php?page=onboarding_iowd | 3.32 | 33.22 |
Logs /wp-admin/admin.php?page=iowd_logs | 3.39 | 49.38 |
Server storage [IO: ▲1.68MB] [DB: ▲0.09MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 210 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
tenweb_site_state_hash |
tenweb_themes_state_hash |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
tenweb_addons_state_hash |
tenweb_plugins_state_hash |
two_trans_iowd_origin |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Optimizer by 10web - Image Optimizer and Compression plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲59 | 13.29 ▼1.00 | 1.94 ▼0.18 | 42.35 ▲3.12 |
Dashboard /wp-admin | 2,248 ▲42 | 5.84 ▼0.04 | 115.27 ▲8.40 | 101.76 ▲59.25 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 1.99 ▼0.02 | 33.86 ▼4.46 | 31.77 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,558 ▲8 | 20.88 ▼2.33 | 678.27 ▼6.08 | 73.85 ▲13.60 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.22 ▼0.03 | 117.69 ▲3.20 | 84.13 ▲29.89 |
App /wp-admin/admin.php?page=onboarding_iowd | 852 | 2.05 | 26.05 | 56.47 |
Logs /wp-admin/admin.php?page=iowd_logs | 990 | 2.18 | 26.47 | 27.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 10 options
- can_compress_scripts
- widget_recent-comments
- tenweb_plugins_state_hash
- widget_recent-posts
- db_upgraded
- tenweb_site_state_hash
- tenweb_themes_state_hash
- tenweb_addons_state_hash
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 48× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Interop\\Queue\\Exception\\Exception' not found in wp-content/plugins/image-optimizer-wd/vendor/queue-interop/queue-interop/src/Exception/InvalidMessageException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'TenWebQueue\\Interfaces\\QueueConsumerInterface' not found in wp-content/plugins/image-optimizer-wd/vendor/10web-utils/10web-queue/src/TenWebQueue/Abstracts/QueueConsumerAbstract.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/image-optimizer-wd/vendor/queue-interop/queue-interop/tests/Impl/ConsumerPollingTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Polyfill\\Php80\\PhpToken' not found in wp-content/plugins/image-optimizer-wd/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Interop\\Queue\\Consumer' not found in wp-content/plugins/image-optimizer-wd/vendor/enqueue/fs/FsConsumer.php:12
- > PHP Fatal error
Uncaught Error: Class 'Tenweb_Authorization\\Product' not found in wp-content/plugins/image-optimizer-wd/vendor/10web/authorization/src/InstalledTheme.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Interop\\Queue\\Producer' not found in wp-content/plugins/image-optimizer-wd/vendor/enqueue/fs/FsProducer.php:16
- > PHP Fatal error
Uncaught Error: Class 'TenWebQueue\\QueueOrchestrator' not found in wp-content/plugins/image-optimizer-wd/vendor/10web-utils/10web-queue/src/TenWebQueue/Examples/example.php:9
- > PHP Fatal error
Uncaught Error: Class 'Tenweb_Authorization\\Product' not found in wp-content/plugins/image-optimizer-wd/vendor/10web/authorization/src/InstalledPlugin.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/image-optimizer-wd/includes/TenWebIORest.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: photos, image, compress, images optimization, performance...
image-optimizer-wd/tenweb-image-optimizer.php 77% from 13 tests
"Image Optimizer by 10web - Image Optimizer and Compression plugin" version 6.0.65's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Git Repository: Please remove the Git repository from this plugin
- Main file name: The principal plugin file should be the same as the plugin slug ("image-optimizer-wd.php" instead of "tenweb-image-optimizer.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
Success! There were no dangerous files found in this plugin13,539 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 2,185 | 2,813 | 10,562 |
JSON | 14 | 1 | 0 | 1,002 |
CSS | 6 | 39 | 151 | 985 |
JavaScript | 4 | 80 | 268 | 541 |
Markdown | 10 | 114 | 0 | 251 |
SVG | 16 | 0 | 0 | 153 |
XML | 1 | 3 | 0 | 27 |
YAML | 1 | 6 | 0 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 13.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 199.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 18 | |
Traits | 4 | |
Classes | 89 | |
▷ Abstract classes | 2 | 2.25% |
▷ Concrete classes | 87 | 97.75% |
▷ Final classes | 4 | 4.60% |
Methods | 695 | |
▷ Static methods | 163 | 23.45% |
▷ Public methods | 590 | 84.89% |
▷ Protected methods | 9 | 1.29% |
▷ Private methods | 96 | 13.81% |
Functions | 49 | |
▷ Named functions | 29 | 59.18% |
▷ Anonymous functions | 20 | 40.82% |
Constants | 136 | |
▷ Global constants | 107 | 78.68% |
▷ Class constants | 29 | 21.32% |
▷ Public constants | 29 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.95MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
onBoarding/assets/images/welcome_banner.png | 366.39KB | 81.81KB | ▼ 77.67% |
assets/img/connect_1.png | 216.54KB | 47.57KB | ▼ 78.03% |
onBoarding/assets/images/close.png | 0.25KB | 0.20KB | ▼ 19.31% |
onBoarding/assets/images/signup_banner.png | 385.05KB | 99.13KB | ▼ 74.25% |
onBoarding/assets/images/green_tick.png | 0.33KB | 0.21KB | ▼ 37.69% |