Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.24ms] Passed 4 tests
An overview of server-side resources used by Responsive Lightbox
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.19 ▼1.97 |
Dashboard /wp-admin | 3.34 ▼0.01 | 51.10 ▼9.09 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.47 ▼0.56 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.39 ▼1.35 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.30 ▲0.06 |
Responsive Lightbox Lite /wp-admin/options-general.php?page=responsive-lightbox-lite | 3.23 | 31.84 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
responsive_lightbox_lite_version |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Responsive Lightbox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲175 | 13.72 ▼0.65 | 6.48 ▲4.90 | 37.74 ▼1.98 |
Dashboard /wp-admin | 2,212 ▲21 | 5.77 ▲0.86 | 101.02 ▲0.21 | 39.94 ▲1.59 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.01 | 35.18 ▼2.13 | 33.17 ▼2.48 |
Add New Post /wp-admin/post-new.php | 1,542 ▲18 | 18.21 ▼4.78 | 610.83 ▼47.02 | 49.30 ▼6.58 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.23 ▲0.00 | 96.93 ▼5.82 | 41.63 ▼1.99 |
Responsive Lightbox Lite /wp-admin/options-general.php?page=responsive-lightbox-lite | 974 | 2.08 | 28.95 | 25.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- responsive_lightbox_lite_version
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/responsive-lightbox-lite/responsive-lightbox-lite.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (http://www.backraw.com/plugins/rll/images/screenshot-1.jpg)
- Tags: You are using too many tags: 13 tag instead of maximum 10
responsive-lightbox-lite/responsive-lightbox-lite.php Passed 13 tests
The main PHP file in "Responsive Lightbox" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
124 characters long description:
This plugin offers a nice and elegant way to add Lightbox functionality for images, html content and media on your webpages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin996 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 109 | 40 | 388 |
JavaScript | 3 | 61 | 43 | 324 |
CSS | 3 | 16 | 23 | 281 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 81.00 |
▷ Minimum class complexity | 81.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 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
7 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/nivo-lightbox/themes/default/prev@2x.png | 4.13KB | 0.99KB | ▼ 76.02% |
assets/nivo-lightbox/themes/default/close@2x.png | 3.02KB | 0.34KB | ▼ 88.83% |
assets/nivo-lightbox/themes/default/close.png | 2.88KB | 0.24KB | ▼ 91.76% |
assets/images/pro.png | 11.33KB | 5.58KB | ▼ 50.75% |
assets/nivo-lightbox/themes/default/prev.png | 3.11KB | 0.32KB | ▼ 89.67% |