Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/wp-lightbox-bank/lib/wp-lightbox-bank-install.php+23
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.05MB] [CPU: ▼12.19ms] 75% from 4 tests
This is a short check of server-side resources used by WordPress Lightbox Plugin by Lightbox Bank
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 652.62ms on /wp-admin/admin.php?page=wplb_recommendation)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.99 ▼4.01 |
Dashboard /wp-admin | 3.37 ▲0.03 | 41.32 ▼18.58 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.78 ▲7.16 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 81.01 ▼26.38 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.62 ▲0.23 |
System Status /wp-admin/admin.php?page=wplb_system_status | 3.39 | 730.20 |
Display Settings /wp-admin/admin.php?page=wplb_display_settings | 3.28 | 31.69 |
General Settings /wp-admin/admin.php?page=wp_lightbox_bank | 3.30 | 32.98 |
Other Settings /wp-admin/admin.php?page=wplb_other_settings | 3.27 | 32.21 |
Our Other Services /wp-admin/admin.php?page=wplb_other_services | 3.67 | 31.06 |
Recommendations /wp-admin/admin.php?page=wplb_recommendation | 3.37 | 652.62 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 100 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_lightbox_bank_settings |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
lightbox-remove-tables-uninstall |
can_compress_scripts |
lightbox-bank-pro-edition |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Lightbox Plugin by Lightbox Bank
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲218 | 14.10 ▼0.65 | 5.04 ▲3.19 | 39.32 ▼3.86 |
Dashboard /wp-admin | 2,250 ▲59 | 5.92 ▲0.02 | 100.64 ▼1.03 | 71.72 ▲33.01 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.20 ▲0.20 | 36.98 ▼4.08 | 35.44 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,556 ▲19 | 23.42 ▲5.06 | 674.41 ▲43.49 | 55.63 ▲3.70 |
Media Library /wp-admin/upload.php | 1,441 ▲56 | 4.30 ▲0.08 | 103.23 ▲3.15 | 70.70 ▲28.75 |
System Status /wp-admin/admin.php?page=wplb_system_status | 1,373 | 1.78 | 28.74 | 41.46 |
Display Settings /wp-admin/admin.php?page=wplb_display_settings | 998 | 1.67 | 28.38 | 29.16 |
General Settings /wp-admin/admin.php?page=wp_lightbox_bank | 1,066 | 1.79 | 27.31 | 38.40 |
Other Settings /wp-admin/admin.php?page=wplb_other_settings | 879 | 1.89 | 27.27 | 26.88 |
Our Other Services /wp-admin/admin.php?page=wplb_other_services | 2,928 | 1.71 | 22.56 | 29.45 |
Recommendations /wp-admin/admin.php?page=wplb_recommendation | 1,738 | 1.75 | 24.18 | 32.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-lightbox-bank/views/wp-lightbox-bank-header.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
wp-lightbox-bank/wp-lightbox-bank.php Passed 13 tests
"WordPress Lightbox Plugin by Lightbox Bank" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
WP Lightbox Bank is the perfect responsive image lightbox for WordPress galleries.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin22,704 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 36 | 4,320 | 5,832 | 14,904 |
CSS | 4 | 543 | 77 | 3,154 |
PHP | 15 | 71 | 55 | 3,101 |
JavaScript | 2 | 20 | 26 | 1,545 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/icon-succes.png | 0.52KB | 0.39KB | ▼ 24.95% |
assets/images/icon.png | 3.32KB | 0.82KB | ▼ 75.23% |