Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.21ms] 75% from 4 tests
This is a short check of server-side resources used by Colorbox Panels & Info Box
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 501.70ms on /wp-admin/edit.php?post_type=colorbox_panels&page=wpsm_ac_sh_help_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.57 ▼3.18 |
Dashboard /wp-admin | 3.47 ▲0.16 | 48.70 ▼2.91 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 48.34 ▲1.17 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 88.64 ▼7.93 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 39.83 ▲6.58 |
Add New Colorbox /wp-admin/post-new.php?post_type=colorbox_panels | 3.61 | 52.47 |
More Free Plugins /wp-admin/edit.php?post_type=colorbox_panels&page=wpsm_ac_sh_help_page | 3.46 | 501.70 |
All Colorbox /wp-admin/edit.php?post_type=colorbox_panels | 3.44 | 37.00 |
Server storage [IO: ▲3.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 115 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
wpsm_colorbox_p_review |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Colorbox Panels & Info Box
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲157 | 13.58 ▼0.81 | 9.12 ▲7.58 | 40.14 ▼2.01 |
Dashboard /wp-admin | 2,238 ▲60 | 5.59 ▼0.13 | 82.09 ▼17.85 | 37.45 ▼3.34 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 1.99 ▼0.03 | 35.03 ▼1.14 | 32.84 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.39 ▲0.26 | 665.90 ▲2.75 | 67.21 ▲15.16 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.24 ▲0.03 | 105.11 ▲11.26 | 46.96 ▲3.34 |
Add New Colorbox /wp-admin/post-new.php?post_type=colorbox_panels | 6,184 | 7.22 | 345.55 | 181.60 |
More Free Plugins /wp-admin/edit.php?post_type=colorbox_panels&page=wpsm_ac_sh_help_page | 1,711 | 1.70 | 28.26 | 32.77 |
All Colorbox /wp-admin/edit.php?post_type=colorbox_panels | 1,112 | 1.92 | 30.48 | 29.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- wpsm_colorbox_p_review
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following items
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/colorbox-panels/ink/admin/add-colorbox.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/colorbox-panels/template/content.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/colorbox-panels/ink/admin/help.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/colorbox-panels/template/style.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/colorbox-panels/ink/install/installation.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/colorbox-panels/ink/admin/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/colorbox-panels/ink/admin/cpt-reg.php:3
- > PHP Notice
Undefined variable: WPSM_Colorbox_ID in wp-content/plugins/colorbox-panels/template/content.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/colorbox-panels/colobox-panels.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/colorbox-panels/template/shortcode.php:3
- > PHP Fatal error
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 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 47 tag instead of maximum 10
- Screenshots: A description for screenshot #3 is missing in colorbox-panels/assets to your readme.txt
colorbox-panels/colobox-panels.php 85% from 13 tests
"Colorbox Panels & Info Box" version 2.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("colorbox-panels.php" instead of "colobox-panels.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin24,892 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 2,053 | 1,532 | 12,685 |
CSS | 16 | 652 | 215 | 7,304 |
PHP | 13 | 209 | 78 | 2,092 |
Sass | 13 | 19 | 22 | 1,158 |
LESS | 13 | 19 | 31 | 1,149 |
SVG | 1 | 0 | 0 | 504 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.31 |
▷ 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 | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
37 PNG files occupy 1.50MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.33KB | 0.16KB | ▼ 52.38% |
assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
assets/tooltip/img/shadow.png | 86.29KB | 34.10KB | ▼ 60.48% |
assets/css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/button_check.png | 4.66KB | 1.57KB | ▼ 66.23% |