Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼6.80ms] Passed 4 tests
This is a short check of server-side resources used by Image and Video Lightbox, Image PopUp
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 37.33 ▼5.82 |
Dashboard /wp-admin | 3.57 ▲0.27 | 44.82 ▲0.86 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 46.67 ▼2.20 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 82.62 ▼20.02 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 35.10 ▲1.59 |
Lightbox /wp-admin/admin.php?page=wpdevart_lightbox | 3.50 | 37.76 |
Hire an Expert /wp-admin/admin.php?page=wpdevart-lightbox-hire-expert | 3.46 | 31.40 |
Featured Plugins /wp-admin/admin.php?page=wpdevart-lightbox-featured-plugins | 3.46 | 29.80 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Image and Video Lightbox, Image PopUp: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,069 ▲308 | 13.50 ▼1.09 | 10.85 ▲9.29 | 41.43 ▲1.59 |
Dashboard /wp-admin | 2,234 ▲60 | 5.51 ▼0.05 | 84.67 ▼4.18 | 77.74 ▲36.11 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 1.99 ▲0.04 | 36.49 ▼5.45 | 32.52 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,710 ▲181 | 22.11 ▼1.09 | 672.28 ▲28.27 | 66.79 ▲17.98 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.20 ▲0.06 | 94.09 ▼9.97 | 69.45 ▲27.10 |
Lightbox /wp-admin/admin.php?page=wpdevart_lightbox | 5,159 | 5.24 | 93.38 | 127.98 |
Hire an Expert /wp-admin/admin.php?page=wpdevart-lightbox-hire-expert | 887 | 1.99 | 21.52 | 29.30 |
Featured Plugins /wp-admin/admin.php?page=wpdevart-lightbox-featured-plugins | 1,115 | 1.98 | 22.51 | 32.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just 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 trailingslashit() in wp-content/plugins/lightbox-popup/wpdevart_lightbox.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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: These screenshots lack descriptions #5, #6 in lightbox-popup/assets to your readme.txt
lightbox-popup/wpdevart_lightbox.php 85% from 13 tests
The entry point to "Image and Video Lightbox, Image PopUp" version 2.1.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lightbox-popup.php" instead of "wpdevart_lightbox.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 229 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin5,841 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 264 | 113 | 2,703 |
PHP | 5 | 220 | 57 | 1,982 |
JavaScript | 2 | 202 | 95 | 1,156 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 8.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 7 | 18.92% |
▷ Public methods | 26 | 70.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 29.73% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
72 PNG files occupy 0.63MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/contorl_buttons/next_content.png | 15.40KB | 0.21KB | ▼ 98.66% |
images/contorl_buttons/download_hover.png | 15.14KB | 0.48KB | ▼ 96.84% |
images/message.png | 2.21KB | 1.34KB | ▼ 39.68% |
images/hire_expert/7.png | 1.38KB | 0.89KB | ▼ 35.76% |
images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.34KB | 0.15KB | ▼ 55.27% |