Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.05ms] Passed 4 tests
Server-side resources used by blueimp lightbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 45.52 ▲7.40 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.00 ▼3.29 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.40 ▼1.40 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.72 ▼23.44 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.39 ▼0.07 |
blueimp lightbox /wp-admin/options-general.php?page=blueimp-lightbox | 3.23 | 32.17 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by blueimp lightbox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲224 | 13.80 ▼0.33 | 12.03 ▲10.01 | 41.07 ▼6.89 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▲0.05 | 90.09 ▼14.41 | 42.30 ▼0.97 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.08 | 36.96 ▼0.10 | 32.00 ▼3.93 |
Add New Post /wp-admin/post-new.php | 1,540 ▲9 | 18.34 ▼4.81 | 663.40 ▼12.86 | 67.53 ▲5.06 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.24 ▲0.01 | 95.99 ▼3.86 | 44.35 ▼1.05 |
blueimp lightbox /wp-admin/options-general.php?page=blueimp-lightbox | 806 | 2.03 | 24.85 | 28.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=blueimp-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=blueimp-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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/blueimp-lightbox/lib/class-blueimp-lightbox.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Options page), #2 (Lightbox with bright image), #3 (Lightbox with dark image)
blueimp-lightbox/blueimp-lightbox.php Passed 13 tests
The main PHP script in "blueimp lightbox" version 1.1.1 is automatically included on every request by WordPress
48 characters long description:
Official blueimp Gallery lightbox for Wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,510 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 156 | 275 | 1,852 |
CSS | 3 | 8 | 40 | 336 |
PHP | 2 | 17 | 25 | 212 |
PO File | 2 | 16 | 16 | 76 |
HTML | 2 | 0 | 0 | 18 |
SVG | 3 | 0 | 0 | 16 |
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.11 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.54 |
▷ 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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/error.png | 2.16KB | 1.62KB | ▼ 25.05% |
img/video-play.png | 2.75KB | 1.80KB | ▼ 34.51% |
screenshot-1.png | 72.39KB | 22.30KB | ▼ 69.19% |
img/play-pause.png | 0.59KB | 0.46KB | ▼ 22.77% |