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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.10ms] Passed 4 tests
This is a short check of server-side resources used by Selected Colorbox Image
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.41 ▲3.91 |
Dashboard /wp-admin | 3.34 ▼0.01 | 46.23 ▼11.08 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.41 ▲3.68 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 80.77 ▼20.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.04 ▲4.31 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Selected Colorbox Image
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲219 | 14.20 ▼0.17 | 8.68 ▲6.94 | 45.06 ▼0.68 |
Dashboard /wp-admin | 2,238 ▲47 | 5.17 ▲0.30 | 102.28 ▼3.24 | 39.28 ▲1.63 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.55 ▲0.52 | 34.69 ▼6.71 | 35.02 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,696 ▲154 | 22.63 ▲4.32 | 661.90 ▲40.20 | 53.73 ▼10.31 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.49 ▲0.31 | 105.01 ▲2.66 | 50.04 ▲8.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/selected-colorbox-image/allimg.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: gallery, colorbox, datatable
selected-colorbox-image/allimg.php 85% from 13 tests
The entry point to "Selected Colorbox Image" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("selected-colorbox-image.php" instead of "allimg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,612 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 228 | 114 | 1,171 |
CSS | 4 | 58 | 39 | 281 |
PHP | 1 | 13 | 22 | 160 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
img/forward_enabled_hover.png | 1.35KB | 0.58KB | ▼ 56.93% |
img/sort_asc_disabled.png | 2.85KB | 0.25KB | ▼ 91.36% |
img/back_enabled_hover.png | 1.34KB | 0.60KB | ▼ 55.56% |
css/images/controls.png | 1.23KB | 1.28KB | 0.00% |