Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲3.00MB] [CPU: ▲25.03ms] 75% from 4 tests
Analyzing server-side resources used by Responsive Lightbox & Gallery
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 1,020.63ms on /wp-admin/admin.php?page=responsive-lightbox-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.27 ▲2.81 | 58.66 ▲14.05 |
Dashboard /wp-admin | 6.37 ▲3.06 | 71.07 ▲21.06 |
Posts /wp-admin/edit.php | 6.42 ▲3.06 | 75.67 ▲27.96 |
Add New Post /wp-admin/post-new.php | 8.96 ▲3.06 | 2,279.99 ▲2,189.33 |
Media Library /wp-admin/upload.php | 6.34 ▲3.11 | 72.26 ▲37.05 |
Categories /wp-admin/edit-tags.php?taxonomy=rl_category&post_type=rl_gallery | 6.35 | 60.54 |
Add-ons /wp-admin/admin.php?page=responsive-lightbox-addons | 6.33 | 1,020.63 |
Capabilities /wp-admin/admin.php?page=responsive-lightbox-capabilities | 6.20 | 57.17 |
Remote Library /wp-admin/admin.php?page=responsive-lightbox-remote_library | 6.21 | 55.45 |
Builder /wp-admin/admin.php?page=responsive-lightbox-builder | 6.20 | 57.04 |
Tags /wp-admin/edit-tags.php?taxonomy=rl_tag&post_type=rl_gallery | 6.35 | 54.47 |
General /wp-admin/admin.php?page=responsive-lightbox-settings | 6.20 | 54.05 |
Lightboxes /wp-admin/admin.php?page=responsive-lightbox-configuration | 6.20 | 52.29 |
Add New /wp-admin/post-new.php?post_type=rl_gallery | 6.54 | 81.41 |
Galleries /wp-admin/admin.php?page=responsive-lightbox-gallery | 6.19 | 58.27 |
Server storage [IO: ▲3.13MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 275 new files
Database: no new tables, 9 new options
New WordPress options |
---|
responsive_lightbox_activation_date |
widget_recent-comments |
widget_responsive_lightbox_gallery_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_responsive_lightbox_image_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Responsive Lightbox & Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,997 ▲235 | 13.68 ▼0.48 | 10.84 ▲9.15 | 37.42 ▼5.94 |
Dashboard /wp-admin | 2,283 ▲103 | 5.62 ▼0.02 | 96.98 ▲12.08 | 43.85 ▲1.58 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 1.99 ▼0.02 | 41.35 ▲1.27 | 37.90 ▼0.92 |
Add New Post /wp-admin/post-new.php | 6,603 ▲5,067 | 28.17 ▲5.06 | 840.54 ▲222.61 | 36.34 ▼9.75 |
Media Library /wp-admin/upload.php | 1,749 ▲346 | 5.25 ▲1.05 | 121.61 ▲21.69 | 42.00 ▼1.01 |
Categories /wp-admin/edit-tags.php?taxonomy=rl_category&post_type=rl_gallery | 1,362 | 2.14 | 29.90 | 31.99 |
Add-ons /wp-admin/admin.php?page=responsive-lightbox-addons | 1,204 | 1.86 | 28.00 | 32.80 |
Capabilities /wp-admin/admin.php?page=responsive-lightbox-capabilities | 1,470 | 1.90 | 28.17 | 29.94 |
Remote Library /wp-admin/admin.php?page=responsive-lightbox-remote_library | 1,089 | 2.03 | 28.48 | 27.03 |
Builder /wp-admin/admin.php?page=responsive-lightbox-builder | 1,136 | 1.90 | 30.71 | 37.16 |
Tags /wp-admin/edit-tags.php?taxonomy=rl_tag&post_type=rl_gallery | 1,334 | 2.14 | 28.30 | 28.54 |
General /wp-admin/admin.php?page=responsive-lightbox-settings | 1,454 | 1.97 | 33.44 | 28.32 |
Lightboxes /wp-admin/admin.php?page=responsive-lightbox-configuration | 1,157 | 2.09 | 27.60 | 29.77 |
Add New /wp-admin/post-new.php?post_type=rl_gallery | 3,590 | 4.47 | 133.30 | 44.23 |
Galleries /wp-admin/admin.php?page=responsive-lightbox-gallery | 1,136 | 1.90 | 28.30 | 29.88 |
Uninstaller [IO: ▲0.16MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- widget_responsive_lightbox_gallery_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_responsive_lightbox_image_widget
- responsive_lightbox_activation_date
- db_upgraded
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #3, #4 in responsive-lightbox/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
responsive-lightbox/responsive-lightbox.php 92% from 13 tests
This is the main PHP file of "Responsive Lightbox & Gallery" version 2.4.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 180 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin45,114 lines of code in 179 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 108 | 4,971 | 6,019 | 26,190 |
PHP | 17 | 2,513 | 3,440 | 11,567 |
CSS | 36 | 322 | 229 | 6,179 |
Markdown | 14 | 510 | 0 | 1,128 |
SVG | 3 | 15 | 1 | 37 |
XML | 1 | 0 | 0 | 13 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 138.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 808.00 |
Average method complexity | 9.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 283 | |
▷ Static methods | 1 | 0.35% |
▷ Public methods | 269 | 95.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 4.95% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
59 PNG files occupy 0.42MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/prettyphoto/images/prettyPhoto/facebook/contentPatternLeft.png | 0.13KB | 0.10KB | ▼ 24.82% |
assets/nivo/themes/default/prev.png | 3.11KB | 0.32KB | ▼ 89.67% |
assets/jstree/themes/default/40px.png | 2.16KB | 1.84KB | ▼ 15.12% |
images/welcome.png | 288.49KB | 89.89KB | ▼ 68.84% |
assets/fancybox/fancy_title_over.png | 0.07KB | 0.09KB | 0.00% |