Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.86MB] [CPU: ▲17.64ms] Passed 4 tests
This is a short check of server-side resources used by Image Optimization by Optimole - Lazy Load, CDN, Convert to WebP & AVIF
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.34 ▲2.87 | 63.49 ▲20.62 |
Dashboard /wp-admin | 6.18 ▲2.87 | 72.98 ▲21.37 |
Posts /wp-admin/edit.php | 6.21 ▲2.85 | 62.42 ▲14.80 |
Add New Post /wp-admin/post-new.php | 8.80 ▲2.90 | 110.39 ▲13.75 |
Media Library /wp-admin/upload.php | 6.08 ▲2.85 | 59.48 ▲26.13 |
Server storage [IO: ▲3.68MB] [DB: ▲0.38MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 146 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
optml_defaults_updated |
widget_theysaidso_widget |
optimole_wp_install |
optml-version |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Optimization by Optimole - Lazy Load, CDN, Convert to WebP & AVIF
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,310 ▲523 | 14.20 ▼0.17 | 1.82 ▼0.62 | 28.77 ▼14.30 |
Dashboard /wp-admin | 2,715 ▲540 | 5.53 ▼0.18 | 97.39 ▼18.19 | 86.80 ▲40.33 |
Posts /wp-admin/edit.php | 2,499 ▲396 | 2.12 ▲0.12 | 36.09 ▼6.44 | 33.17 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,704 ▲168 | 23.36 ▲0.24 | 787.39 ▲129.81 | 58.51 ▲7.67 |
Media Library /wp-admin/upload.php | 1,792 ▲395 | 4.23 ▲0.07 | 101.02 ▼4.83 | 73.62 ▲26.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.38MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- optimole_wp_install
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- optml_defaults_updated
- optml-version
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 53× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Trait 'Optml_Normalizer' not found in wp-content/plugins/optimole-wp/inc/settings.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Optml_Property_Type' not found in wp-content/plugins/optimole-wp/inc/image_properties/resize.php:6
- > PHP Fatal error
Uncaught Error: Class 'Optml_compatibility' not found in wp-content/plugins/optimole-wp/inc/compatibilities/foogallery.php:9
- > PHP Fatal error
Uncaught Error: Class 'Optml_Property_Type' not found in wp-content/plugins/optimole-wp/inc/image_properties/height.php:6
- > PHP Fatal error
Uncaught Error: Class 'Optml_Abstract_Conflict' not found in wp-content/plugins/optimole-wp/inc/conflicts/jetpack_lazyload.php:8
- > PHP Fatal error
Uncaught Error: Class 'Optml_compatibility' not found in wp-content/plugins/optimole-wp/inc/compatibilities/wp_rest_cache.php:8
- > PHP Fatal error
Uncaught Error: Class 'Optml_compatibility' not found in wp-content/plugins/optimole-wp/inc/compatibilities/master_slider.php:9
- > PHP Fatal error
Uncaught Error: Class 'Optml_compatibility' not found in wp-content/plugins/optimole-wp/inc/compatibilities/yith_quick_view.php:8
- > PHP Fatal error
Uncaught Error: Class 'Optml_compatibility' not found in wp-content/plugins/optimole-wp/inc/compatibilities/elementor_builder.php:8
- > PHP Fatal error
Trait 'Optml_Validator' not found in wp-content/plugins/optimole-wp/inc/image_properties/property_type.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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 require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
optimole-wp/optimole-wp.php 92% from 13 tests
The primary PHP file in "Image Optimization by Optimole - Lazy Load, CDN, Convert to WebP & AVIF" version 3.11.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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 detected18,448 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 2,935 | 6,966 | 14,832 |
JavaScript | 6 | 304 | 260 | 1,645 |
Markdown | 3 | 670 | 0 | 1,162 |
CSS | 5 | 12 | 8 | 622 |
SVG | 2 | 0 | 0 | 138 |
JSON | 1 | 0 | 0 | 49 |
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.47 |
Average class complexity | 24.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 356.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 90 | |
▷ Abstract classes | 6 | 6.67% |
▷ Concrete classes | 84 | 93.33% |
▷ Final classes | 8 | 9.52% |
Methods | 783 | |
▷ Static methods | 105 | 13.41% |
▷ Public methods | 675 | 86.21% |
▷ Protected methods | 9 | 1.15% |
▷ Private methods | 99 | 12.64% |
Functions | 58 | |
▷ Named functions | 12 | 20.69% |
▷ Anonymous functions | 46 | 79.31% |
Constants | 73 | |
▷ Global constants | 8 | 10.96% |
▷ Class constants | 65 | 89.04% |
▷ Public constants | 65 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 compressed PNG files occupy 0.32MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-builder.png | 26.41KB | 26.24KB | ▼ 0.63% |
assets/img/connecting.png | 9.20KB | 9.14KB | ▼ 0.59% |
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-patterns.png | 87.50KB | 87.41KB | 0.10% |
assets/img/logo.png | 8.01KB | 4.14KB | ▼ 48.33% |
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-library.png | 173.18KB | 173.42KB | 0.00% |