Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼136.97ms] Passed 4 tests
Analyzing server-side resources used by WP Lightbox 2
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.13 | 45.45 ▲10.12 |
Dashboard /wp-admin | 3.20 ▲0.14 | 52.77 ▲7.69 |
Posts /wp-admin/edit.php | 3.31 ▲0.20 | 50.03 ▲6.25 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 98.71 ▼564.50 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 33.29 ▲2.68 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 7 new options
New WordPress options |
---|
jqlb_navbarOnTop |
jqlb_comments |
jqlb_show_download |
jqlb_help_text |
jqlb_resize_on_demand |
jqlb_resize_speed |
jqlb_automate |
Browser metrics Passed 4 tests
A check of browser resources used by WP Lightbox 2
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,909 ▲313 | 16.31 ▲0.62 | 16.34 ▲6.01 | 46.43 ▼2.61 |
Dashboard /wp-admin | 2,983 ▲52 | 6.08 ▼0.01 | 157.37 ▲5.95 | 127.77 ▲16.57 |
Posts /wp-admin/edit.php | 2,785 ▲46 | 2.72 ▲0.01 | 66.93 ▼1.35 | 85.58 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,632 ▲17 | 20.90 ▼0.48 | 308.24 ▼15.00 | 104.21 ▼6.51 |
Media Library /wp-admin/upload.php | 1,776 ▲28 | 5.04 ▲0.04 | 147.76 ▼9.66 | 132.86 ▲15.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- jqlb_comments
- jqlb_help_text
- jqlb_resize_speed
- jqlb_automate
- jqlb_resize_on_demand
- jqlb_navbarOnTop
- jqlb_show_download
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-lightbox-2/wp-lightbox-2.php:28
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-lightbox-2/admin/admin_menu.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 your attention:
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
wp-lightbox-2/wp-lightbox-2.php 92% from 13 tests
"WP Lightbox 2" version 3.0.6.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 235 characters long)
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 plugin8,745 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 4,489 |
JavaScript | 12 | 108 | 303 | 2,228 |
CSS | 6 | 54 | 62 | 1,363 |
PHP | 4 | 97 | 54 | 650 |
HTML | 1 | 0 | 0 | 13 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 0.48MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon_lightbox2.png | 2.18KB | 1.28KB | ▼ 41.43% |
admin/styles/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.34KB | 0.15KB | ▼ 55.27% |
admin/styles/images/ui-icons_ffffff_256x240.png | 6.32KB | 4.18KB | ▼ 33.80% |
admin/styles/images/ui-bg_glass_65_ffffff_1x400.png | 0.24KB | 0.09KB | ▼ 64.23% |
admin/styles/images/ui-icons_ef8c08_256x240.png | 4.49KB | 4.18KB | ▼ 6.89% |