Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲5.15MB] [CPU: ▲23.78ms] 75% from 4 tests
An overview of server-side resources used by Lightbox - EverlightBox Gallery
Please take the time to fix the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.15MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.87 ▲5.41 | 66.00 ▲28.48 |
Dashboard /wp-admin | 8.89 ▲5.59 | 75.40 ▲27.22 |
Posts /wp-admin/edit.php | 8.90 ▲5.54 | 72.88 ▲25.14 |
Add New Post /wp-admin/post-new.php | 9.93 ▲4.04 | 107.12 ▲14.29 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 71.77 ▲39.33 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.90 | 62.18 |
Server storage [IO: ▲6.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 613 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_debug_mode |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
fs_active_plugins |
db_upgraded |
widget_theysaidso_widget |
fs_accounts |
everlightbox_options |
Browser metrics Passed 4 tests
Lightbox - EverlightBox Gallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲194 | 13.53 ▼0.83 | 10.75 ▲9.14 | 27.01 ▼18.02 |
Dashboard /wp-admin | 2,228 ▲47 | 5.69 ▼0.03 | 90.58 ▼5.78 | 84.27 ▲40.31 |
Posts /wp-admin/edit.php | 2,152 ▲55 | 1.99 ▲0.04 | 37.57 ▼0.42 | 35.84 ▲2.31 |
Add New Post /wp-admin/post-new.php | 1,725 ▲197 | 23.51 ▲0.29 | 682.34 ▲5.50 | 52.00 ▼3.98 |
Media Library /wp-admin/upload.php | 1,448 ▲51 | 4.14 ▼0.05 | 96.53 ▼5.65 | 84.31 ▲39.29 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,116 | 1.68 | 23.97 | 25.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/everlightbox/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- widget_recent-posts
- fs_accounts
- everlightbox_options
- fs_active_plugins
- fs_debug_mode
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Even though no errors were found, 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
- 46× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function is_free_plan() on null in wp-content/plugins/everlightbox/admin/partials/everlightbox-admin-display.php:18
- > PHP Notice
Undefined variable: evebox_fs in wp-content/plugins/everlightbox/admin/partials/everlightbox-admin-display.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/everlightbox/admin/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/everlightbox/admin/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/everlightbox/admin/cmb2/init.php:126
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/everlightbox/admin/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/everlightbox/admin/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/everlightbox/admin/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/everlightbox/admin/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/everlightbox/admin/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: gallery, video gallery, lightbox, social, video lightbox...
everlightbox/everlightbox.php Passed 13 tests
The entry point to "Lightbox - EverlightBox Gallery" version 1.2.0 is a PHP file that has certain tags in its header comment area
40 characters long description:
Light and stylish lightbox for WordPress
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin84,050 lines of code in 383 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 187 | 10,316 | 23,622 | 40,976 |
PO File | 122 | 14,521 | 18,760 | 32,812 |
CSS | 31 | 1,213 | 1,168 | 5,622 |
JavaScript | 17 | 616 | 579 | 2,566 |
Sass | 16 | 300 | 25 | 1,378 |
Markdown | 2 | 202 | 0 | 594 |
SVG | 8 | 3 | 1 | 102 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 45.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 126 | |
▷ Abstract classes | 10 | 7.94% |
▷ Concrete classes | 116 | 92.06% |
▷ Final classes | 0 | 0.00% |
Methods | 1,836 | |
▷ Static methods | 285 | 15.52% |
▷ Public methods | 1,347 | 73.37% |
▷ Protected methods | 106 | 5.77% |
▷ Private methods | 383 | 20.86% |
Functions | 137 | |
▷ Named functions | 136 | 99.27% |
▷ Anonymous functions | 1 | 0.73% |
Constants | 161 | |
▷ Global constants | 108 | 67.08% |
▷ Class constants | 53 | 32.92% |
▷ Public constants | 53 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
40 compressed PNG files occupy 0.59MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banner-772x250.png | 55.65KB | 58.76KB | 0.00% |
public/patterns-premium/15-min.png | 5.44KB | 6.32KB | 0.00% |
public/patterns-premium/13-min.png | 0.12KB | 0.12KB | 0.00% |
admin/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |