Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.77ms] Passed 4 tests
A check of server-side resources used by WordPress Colorbox Lightbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.52 ▼14.08 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.60 ▼1.50 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.34 ▲1.91 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.60 ▲3.06 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 33.43 ▼1.41 |
WP Colorbox /wp-admin/options-general.php?page=wp-colorbox-settings | 3.23 | 31.43 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WordPress Colorbox Lightbox: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲195 | 13.68 ▼0.97 | 10.88 ▲9.05 | 39.27 ▼3.94 |
Dashboard /wp-admin | 2,213 ▲24 | 4.85 ▼0.04 | 109.42 ▼12.28 | 38.61 ▼5.26 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.01 | 39.02 ▲1.22 | 35.37 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.20 ▲0.13 | 593.43 ▼72.67 | 50.35 ▼1.48 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.03 | 95.18 ▲0.77 | 39.13 ▼4.34 |
WP Colorbox /wp-admin/options-general.php?page=wp-colorbox-settings | 758 | 2.03 | 24.26 | 24.18 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 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
5 plugin tags: photo, colorbox, gallery, lightbox, image
wp-colorbox/main.php 92% from 13 tests
The main file in "WordPress Colorbox Lightbox" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-colorbox.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,021 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 199 | 83 | 838 |
PHP | 1 | 6 | 11 | 141 |
CSS | 1 | 5 | 11 | 42 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
example5/images/controls.png | 1.98KB | 2.04KB | 0.00% |
example5/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
example5/images/border.png | 0.14KB | 0.16KB | 0.00% |