Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.23ms] Passed 4 tests
This is a short check of server-side resources used by Responsive Lightbox2
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.73 ▼0.93 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.90 ▲5.29 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.84 ▼1.37 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.29 ▼2.39 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.25 ▼0.23 |
Lightbox2 /wp-admin/options-general.php?page=responsive-lightbox2-settings | 3.23 | 29.27 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Responsive Lightbox2
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲193 | 13.70 ▼0.94 | 11.60 ▲10.03 | 47.26 ▲5.47 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▲0.05 | 93.02 ▲8.45 | 41.48 ▲1.79 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.95 ▲0.01 | 33.15 ▼1.02 | 33.28 ▼4.43 |
Add New Post /wp-admin/post-new.php | 1,531 ▼7 | 22.99 ▼0.16 | 664.75 ▼30.41 | 61.33 ▲4.57 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▲0.00 | 109.00 ▲7.55 | 46.69 ▲1.60 |
Lightbox2 /wp-admin/options-general.php?page=responsive-lightbox2-settings | 770 | 2.02 | 22.39 | 25.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: lightbox, gallery, photos, images, responsive
responsive-lightbox2/main.php 92% from 13 tests
The main PHP script in "Responsive Lightbox2" version 1.0.4 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("responsive-lightbox2.php" instead of "main.php")
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
Everything looks great! No dangerous files found in this plugin653 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 76 | 105 | 373 |
CSS | 1 | 27 | 3 | 174 |
PHP | 1 | 16 | 11 | 106 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 0.27KB | 0.29KB | 0.00% |
images/next.png | 1.32KB | 1.58KB | 0.00% |
images/prev.png | 1.33KB | 1.59KB | 0.00% |