Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▲2.55ms] Passed 4 tests
Analyzing server-side resources used by Just Image Optimizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 39.76 ▼1.65 |
Dashboard /wp-admin | 3.57 ▲0.26 | 49.55 ▲2.27 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.04 ▲5.28 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 96.59 ▲13.41 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.93 ▲4.30 |
Just Image Optimizer /wp-admin/upload.php?page=just-img-opt-dashboard | 3.96 | 43.13 |
Settings /wp-admin/admin.php?page=just-img-opt-settings | 3.49 | 35.19 |
Just Image Optimizer /wp-admin/admin.php?page=just-img-opt-log | 3.44 | 34.73 |
Just Image Optimizer /wp-admin/admin.php?page=just-img-opt-connection | 3.40 | 33.72 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 49 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_image_optimize_log |
wp_image_optimize_log_details |
wp_image_optimize |
New WordPress options |
---|
joi_version |
theysaidso_admin_options |
recovery_mode_email_last_sent |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Just Image Optimizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.12 | 1.77 ▼0.19 | 41.35 ▼0.96 |
Dashboard /wp-admin | 2,210 ▲18 | 5.86 ▲0.89 | 105.65 ▲1.02 | 40.56 ▲0.57 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.00 | 37.82 ▲4.51 | 35.79 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.52 ▲0.23 | 602.80 ▼119.34 | 54.15 ▼8.52 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.26 ▲0.08 | 95.17 ▼7.80 | 40.99 ▼5.00 |
Just Image Optimizer /wp-admin/upload.php?page=just-img-opt-dashboard | 1,554 | 2.60 | 30.60 | 30.74 |
Settings /wp-admin/admin.php?page=just-img-opt-settings | 1,514 | 2.30 | 27.85 | 26.68 |
Just Image Optimizer /wp-admin/admin.php?page=just-img-opt-log | 845 | 2.03 | 25.97 | 25.67 |
Just Image Optimizer /wp-admin/admin.php?page=just-img-opt-connection | 892 | 2.03 | 22.50 | 23.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables detected upon uninstall: 3 tables
- wp_image_optimize_log_details
- wp_image_optimize_log
- wp_image_optimize
- Zombie WordPress options detected upon uninstall: 8 options
- recovery_mode_email_last_sent
- joi_version
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/upload.php?page=just-img-opt-dashboard
- > Error in wp-content/plugins/just-image-optimizer/views/dashboard/_requirements.php+21
Uncaught Error: Call to a member function name() on null in wp-content/plugins/just-image-optimizer/views/dashboard/_requirements.php:21
Stack trace:
#0 wp-content/plugins/just-image-optimizer/views/dashboard/index.php(11): include()
#1 wp-content/plugins/just-image-optimizer/core/Component.php(36): include('/var/www/wordpr...')
#2 wp-content/plugins/just-image-optimizer/controllers/DashboardController.php(71): JustCoded\WP\ImageOptimizer\core\Component->render()
#3 wp-includes/class-wp-hook.php(310): JustCoded\WP\ImageOptimizer\controllers\DashboardController->actionIndex()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 wp-admin/upload.php(10): require_once('/var/www/wordpr...')
#8 {main}
thrown- > GET request to /wp-admin/admin.php?page=just-img-opt-settings
- > Error in wp-content/plugins/just-image-optimizer/views/dashboard/_requirements.php+21
Uncaught Error: Call to a member function name() on null in wp-content/plugins/just-image-optimizer/views/dashboard/_requirements.php:21
Stack trace:
#0 wp-content/plugins/just-image-optimizer/views/dashboard/settings.php(4): include()
#1 wp-content/plugins/just-image-optimizer/core/Component.php(36): include('/var/www/wordpr...')
#2 wp-content/plugins/just-image-optimizer/controllers/SettingsController.php(63): JustCoded\WP\ImageOptimizer\core\Component->render()
#3 wp-includes/class-wp-hook.php(310): JustCoded\WP\ImageOptimizer\controllers\SettingsController->actionIndex()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/just-image-optimizer/views/migrate/index.php
- > /wp-content/plugins/just-image-optimizer/views/redirect.php
- 55× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
include(): Failed opening 'JUSTIMAGEOPTIMIZER_ROOT/views/_tabs.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/just-image-optimizer/views/log/index.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'JustCoded\\WP\\ImageOptimizer\\core\\Component' not found in wp-content/plugins/just-image-optimizer/controllers/DashboardController.php:12
- > PHP Warning
include(): Failed opening 'JUSTIMAGEOPTIMIZER_ROOT/views/_tabs.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/just-image-optimizer/views/dashboard/settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/just-image-optimizer/views/migrate/upgraded.php:6
- > PHP Warning
include(JUSTIMAGEOPTIMIZER_ROOT/views/dashboard/_requirements.php): failed to open stream: No such file or directory in wp-content/plugins/just-image-optimizer/views/dashboard/settings.php on line 4
- > PHP Warning
include(): Failed opening 'JUSTIMAGEOPTIMIZER_ROOT/views/_tabs.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/just-image-optimizer/views/dashboard/connect.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'JustCoded\\WP\\ImageOptimizer\\core\\Migration' not found in wp-content/plugins/just-image-optimizer/migrations/m0x100.php:10
- > PHP Notice
Undefined variable: redirect_url in wp-content/plugins/just-image-optimizer/views/redirect.php on line 1
- > PHP Warning
include(JUSTIMAGEOPTIMIZER_ROOT/views/_tabs.php): failed to open stream: No such file or directory in wp-content/plugins/just-image-optimizer/views/log/index.php on line 10
- > PHP Warning
include(JUSTIMAGEOPTIMIZER_ROOT/views/_tabs.php): failed to open stream: No such file or directory in wp-content/plugins/just-image-optimizer/views/migrate/upgraded.php on line 2
- > PHP Warning
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 90% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Optimization service Connect options.), #2 (Plugin Settings page.), #3 (Plugin Dashboard with optimization statistics.), #4 (Media library optimization info.)
- Requires php: Version format is invalid
just-image-optimizer/just-image-optimizer.php Passed 13 tests
The entry point to "Just Image Optimizer" version 1.1.3 is a PHP file that has certain tags in its header comment area
128 characters long description:
Compress image files, improve performance and boost your SEO rank using Google Page Speed Insights compression and optimization.
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 plugin2,507 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 408 | 1,034 | 2,348 |
JavaScript | 3 | 2 | 1 | 112 |
CSS | 1 | 8 | 1 | 47 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 130 | |
▷ Static methods | 11 | 8.46% |
▷ Public methods | 119 | 91.54% |
▷ Protected methods | 9 | 6.92% |
▷ Private methods | 2 | 1.54% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 48 | |
▷ Global constants | 1 | 2.08% |
▷ Class constants | 47 | 97.92% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.35MB with 0.26MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 53.80KB | 14.51KB | ▼ 73.03% |
screenshot-4.png | 181.63KB | 49.60KB | ▼ 72.69% |
screenshot-2.png | 57.70KB | 15.41KB | ▼ 73.28% |
screenshot-3.png | 67.63KB | 17.48KB | ▼ 74.16% |