Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲4.74MB] [CPU: ▲19.89ms] Passed 4 tests
This is a short check of server-side resources used by Joli CLEAR Lightbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.50 ▲5.04 | 61.87 ▲16.07 |
Dashboard /wp-admin | 8.52 ▲5.22 | 69.38 ▲21.91 |
Posts /wp-admin/edit.php | 8.52 ▲5.17 | 74.98 ▲28.13 |
Add New Post /wp-admin/post-new.php | 9.43 ▲3.55 | 106.81 ▲13.44 |
Media Library /wp-admin/upload.php | 8.52 ▲5.30 | 80.50 ▲45.96 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.52 | 56.28 |
Server storage [IO: ▲3.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 215 new files
Database: no new tables, 13 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
joli_clear_lightbox_settings |
joli_clear_lightbox_rating_time |
joli_clear_lightbox_gopro_time |
fs_active_plugins |
fs_accounts |
fs_gdpr |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Joli CLEAR Lightbox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.39 ▲0.11 | 1.45 ▼0.54 | 29.21 ▼17.50 |
Dashboard /wp-admin | 2,235 ▲58 | 5.67 ▲0.02 | 82.97 ▼26.28 | 78.34 ▲31.50 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.01 ▲0.01 | 35.16 ▼4.07 | 35.11 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,705 ▲177 | 21.77 ▼1.17 | 718.28 ▲13.06 | 94.23 ▲18.45 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.17 ▼0.03 | 104.16 ▲1.61 | 93.16 ▲52.17 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,077 | 1.67 | 23.81 | 27.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/joli-clear-lightbox/includes/fs/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 11 options
- db_upgraded
- joli_clear_lightbox_settings
- fs_accounts
- theysaidso_admin_options
- fs_active_plugins
- widget_theysaidso_widget
- fs_gdpr
- widget_recent-comments
- fs_debug_mode
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 14× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/joli-clear-lightbox/core/Application.php
- > /wp-content/plugins/joli-clear-lightbox/core/Hooks.php
- > /wp-content/plugins/joli-clear-lightbox/core/Log.php
- > /wp-content/plugins/joli-clear-lightbox/fs-helpers.php
- > /wp-content/plugins/joli-clear-lightbox/core/Controllers/MenuController.php
- > /wp-content/plugins/joli-clear-lightbox/core/Controllers/SettingsController.php
- > /wp-content/plugins/joli-clear-lightbox/core/Engine/CLEARLightbox.php
- > /wp-content/plugins/joli-clear-lightbox/core/Engine/ContentProcessing.php
- > /wp-content/plugins/joli-clear-lightbox/core/Controllers/AdminController.php
- > /wp-content/plugins/joli-clear-lightbox/helpers.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-clear-lightbox/views/admin/user-guide/hooks.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-clear-lightbox/config/defaults.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-clear-lightbox/views/notices/rating.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/joli-clear-lightbox/views/admin/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-clear-lightbox/views/admin/user-guide/image-setup.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-clear-lightbox/views/notices/go-pro.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-clear-lightbox/views/admin/user-guide/quick-start.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-clear-lightbox/views/admin/user-guide/gallery-setup.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/joli-clear-lightbox/views/admin/post_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/joli-clear-lightbox/views/admin/user-guide/user-guide.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
joli-clear-lightbox/joli-clear-lightbox.php 85% from 13 tests
Analyzing the main PHP file in "Joli CLEAR Lightbox" version 1.0.3
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 195 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected33,285 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 7,604 | 16,605 | 32,823 |
SVG | 3 | 5 | 2 | 249 |
JavaScript | 6 | 34 | 59 | 197 |
CSS | 13 | 0 | 0 | 16 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 72.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,236 | |
▷ Static methods | 175 | 14.16% |
▷ Public methods | 870 | 70.39% |
▷ Protected methods | 17 | 1.38% |
▷ Private methods | 349 | 28.24% |
Functions | 115 | |
▷ Named functions | 112 | 97.39% |
▷ Anonymous functions | 3 | 2.61% |
Constants | 140 | |
▷ Global constants | 98 | 70.00% |
▷ Class constants | 42 | 30.00% |
▷ Public constants | 42 | 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
7 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/public/img/wpjoli-logo-linear-small-bw-24px.png | 2.51KB | 1.92KB | ▼ 23.55% |
includes/fs/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/admin/img/ambibackground-demo.png | 87.23KB | 35.92KB | ▼ 58.82% |
assets/admin/img/wpjoli-logo-new-small.png | 8.27KB | 5.12KB | ▼ 38.12% |
includes/fs/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |