Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/ewsel-lightbox-for-galleries/LightboxForGalleries.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; LightboxForGalleries has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼55.67ms] Passed 4 tests
This is a short check of server-side resources used by EWSEL Lightbox For Galleries
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.42 ▼37.77 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.51 ▼42.52 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.14 ▼41.07 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 6.17 ▼101.33 |
Media Library /wp-admin/upload.php | 2.10 ▼1.12 | 5.00 ▼27.39 |
EWSEL Lightbox /wp-admin/options-general.php?page=ewsel-jquery-lightbox | 2.11 | 6.14 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by EWSEL Lightbox For Galleries
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲175 | 13.59 ▼0.61 | 7.10 ▲5.24 | 41.38 ▼2.61 |
Dashboard /wp-admin | 2,210 ▲21 | 4.85 ▼0.08 | 107.00 ▼14.05 | 39.00 ▼7.72 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.02 | 39.94 ▲4.69 | 34.18 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.77 ▲0.26 | 668.63 ▼0.18 | 58.59 ▼7.08 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▲0.02 | 96.88 ▼7.34 | 44.79 ▲0.31 |
EWSEL Lightbox /wp-admin/options-general.php?page=ewsel-jquery-lightbox | 844 | 2.03 | 24.51 | 27.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/ewsel-lightbox-for-galleries/LightboxForGalleries.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; LightboxForGalleries has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=ewsel-jquery-lightbox
- > Deprecated in wp-content/plugins/ewsel-lightbox-for-galleries/LightboxForGalleries.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; LightboxForGalleries has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=ewsel-jquery-lightbox
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=ewsel-jquery-lightbox
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ewsel-lightbox-for-galleries/LightboxForGalleries.php:170
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (ColorBox Theme 1), #2 (ColorBox Theme 2), #3 (ColorBox Theme 3), #4 (ColorBox Theme 4), #5 (ColorBox Theme 5)
ewsel-lightbox-for-galleries/LightboxForGalleries.php 85% from 13 tests
"EWSEL Lightbox For Galleries" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ewsel-lightbox-for-galleries.php" instead of "LightboxForGalleries.php")
- Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected855 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 0 | 6 | 461 |
CSS | 8 | 23 | 122 | 279 |
PHP | 1 | 37 | 24 | 115 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
50 compressed PNG files occupy 1.21MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
colorbox/theme8/images/controls.png | 0.56KB | 0.57KB | 0.00% |
colorbox/theme5/images/border.png | 0.16KB | 0.16KB | 0.00% |
colorbox/theme1/images/internet_explorer/borderMiddleRight.png | 0.11KB | 0.10KB | ▼ 7.41% |
colorbox/theme1/images/internet_explorer/borderBottomLeft.png | 0.21KB | 0.20KB | ▼ 4.19% |
colorbox/theme8/images/ie6/borderTopCenter.png | 0.14KB | 0.18KB | 0.00% |