Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.91MB] [CPU: ▲24.47ms] Passed 4 tests
An overview of server-side resources used by WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.31 ▲2.84 | 66.39 ▲17.38 |
Dashboard /wp-admin | 6.36 ▲3.06 | 76.92 ▲27.45 |
Posts /wp-admin/edit.php | 6.33 ▲2.97 | 72.96 ▲25.88 |
Add New Post /wp-admin/post-new.php | 8.82 ▲2.93 | 120.60 ▲27.16 |
Media Library /wp-admin/upload.php | 6.14 ▲2.90 | 64.80 ▲29.71 |
Help /wp-admin/admin.php?page=wpo_support | 7.22 | 109.20 |
Cache /wp-admin/admin.php?page=wpo_cache | 7.21 | 99.69 |
Settings /wp-admin/admin.php?page=wpo_settings | 7.21 | 98.08 |
Premium Upgrade /wp-admin/admin.php?page=wpo_mayalso | 7.21 | 97.90 |
Database /wp-admin/admin.php?page=WP-Optimize | 7.21 | 93.94 |
Images /wp-admin/admin.php?page=wpo_images | 7.21 | 91.95 |
Minify /wp-admin/admin.php?page=wpo_minify | 7.21 | 96.08 |
Server storage [IO: ▲7.36MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 850 new files
Database: 2 new tables, 34 new options
New tables |
---|
wp_tm_taskmeta |
wp_tm_tasks |
New WordPress options |
---|
widget_theysaidso_widget |
wp-optimize-compression_server |
wp-optimize-corrupted-tables-count |
wp-optimize-back_up_delete_after_days |
wp-optimize-last-optimized |
can_compress_scripts |
db_upgraded |
wp-optimize-webp_conversion_test |
wpo_minify_config |
wp-optimize-image_quality |
... |
Browser metrics Passed 4 tests
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,966 ▲204 | 14.35 ▲0.11 | 1.78 ▲0.01 | 42.47 ▼1.66 |
Dashboard /wp-admin | 2,369 ▲192 | 5.69 ▲0.11 | 102.43 ▲0.65 | 88.40 ▲39.49 |
Posts /wp-admin/edit.php | 2,230 ▲130 | 2.10 ▲0.08 | 41.99 ▲1.67 | 32.46 ▼6.56 |
Add New Post /wp-admin/post-new.php | 1,579 ▲53 | 23.08 ▼0.57 | 648.09 ▲7.89 | 51.72 ▲4.29 |
Media Library /wp-admin/upload.php | 1,526 ▲123 | 4.28 ▲0.08 | 100.12 ▲1.55 | 41.05 ▼1.23 |
Help /wp-admin/admin.php?page=wpo_support | 5,125 | 3.25 | 80.55 | 76.03 |
Cache /wp-admin/admin.php?page=wpo_cache | 5,138 | 3.18 | 79.57 | 59.23 |
Settings /wp-admin/admin.php?page=wpo_settings | 5,136 | 3.13 | 69.53 | 80.67 |
Premium Upgrade /wp-admin/admin.php?page=wpo_mayalso | 5,155 | 3.18 | 69.65 | 82.49 |
Database /wp-admin/admin.php?page=WP-Optimize | 6,105 | 3.01 | 94.33 | 64.64 |
Images /wp-admin/admin.php?page=wpo_images | 5,165 | 3.25 | 71.69 | 92.09 |
Minify /wp-admin/admin.php?page=wpo_minify | 5,137 | 3.15 | 64.61 | 71.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 162× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/wp-optimize/compatibility/class-wpo-polylang-compatibility.php
- > /wp-content/plugins/wp-optimize/optimizations/commentmeta.php
- > /wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-functions.php
- > /wp-content/plugins/wp-optimize/includes/class-updraft-smush-manager.php
- > /wp-content/plugins/wp-optimize/cache/class-wpo-page-cache.php
- > /wp-content/plugins/wp-optimize/vendor/mrclay/minify/server-info.php
- > /wp-content/plugins/wp-optimize/includes/class-re-smush-it-task.php
- > /wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-cache-functions.php
- > /wp-content/plugins/wp-optimize/templates/notices/horizontal-notice.php
- > /wp-content/plugins/wp-optimize/templates/images/lazyload.php
- 217× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\StreamHandler' not found in wp-content/plugins/wp-optimize/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/wp-optimize/vendor/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php:36
- > PHP Fatal error
Uncaught Error: Class 'ImageMimeTypeGuesser\\Detectors\\AbstractDetector' not found in wp-content/plugins/wp-optimize/vendor/rosell-dk/image-mime-type-guesser/src/Detectors/MimeContentType.php:5
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Exceptions\\WebPConvertException' not found in wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Serve/Exceptions/ServeFailedException.php:7
- > PHP Fatal error
Uncaught Error: Class 'WebPConvert\\Convert\\Exceptions\\ConversionFailed\\InvalidInputException' not found in wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailed/InvalidInput/ConverterNotFoundException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/wp-optimize/vendor/mrclay/minify/lib/Minify/Controller/MinApp.php:13
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\HttpAuth\\Token\ullToken' not found in wp-content/plugins/wp-optimize/vendor/intervention/httpauth/src/Token/HttpAuthentification.php:7
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-optimize/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/wp-optimize/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-optimize/vendor/pimple/pimple/src/Pimple/Tests/Psr11/ServiceLocatorTest.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #7 (Settings), #8 (Real world tests show the cache feature alone can make your site faster than any other caching plugin), #9 (Features comparison)
wp-optimize/wp-optimize.php 92% from 13 tests
This is the main PHP file of "WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance" version 3.2.22, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
Code Analysis 97% from 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 plugin101,163 lines of code in 759 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 557 | 17,443 | 41,131 | 76,798 |
JavaScript | 48 | 2,779 | 3,325 | 16,245 |
CSS | 17 | 391 | 109 | 3,745 |
JSON | 9 | 0 | 0 | 1,970 |
Markdown | 115 | 589 | 0 | 1,952 |
YAML | 3 | 9 | 0 | 215 |
reStructuredText | 1 | 96 | 139 | 97 |
XML | 5 | 2 | 0 | 87 |
Bourne Shell | 1 | 10 | 1 | 25 |
LESS | 2 | 6 | 12 | 19 |
HTML | 1 | 0 | 0 | 10 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 117)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 27.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 668.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 117.00 |
Code structure | ||
---|---|---|
Namespaces | 62 | |
Interfaces | 19 | |
Traits | 14 | |
Classes | 451 | |
▷ Abstract classes | 24 | 5.32% |
▷ Concrete classes | 427 | 94.68% |
▷ Final classes | 4 | 0.94% |
Methods | 4,106 | |
▷ Static methods | 428 | 10.42% |
▷ Public methods | 3,107 | 75.67% |
▷ Protected methods | 572 | 13.93% |
▷ Private methods | 427 | 10.40% |
Functions | 179 | |
▷ Named functions | 63 | 35.20% |
▷ Anonymous functions | 116 | 64.80% |
Constants | 509 | |
▷ Global constants | 278 | 54.62% |
▷ Class constants | 231 | 45.38% |
▷ Public constants | 209 | 90.48% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
41 compressed PNG files occupy 0.15MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/notices/keyy_logo.png | 2.25KB | 1.19KB | ▼ 47.19% |
images/notices/updraft_logo.png | 3.06KB | 3.38KB | 0.00% |
images/features/geolocation.png | 6.19KB | 6.59KB | 0.00% |
images/features/updraftcentral_logo.png | 2.60KB | 2.73KB | 0.00% |
images/features/auto-optimize.png | 0.97KB | 0.99KB | 0.00% |