Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/lb-colorbox/include/lbcb-list-table.php+124
Declaration of LBCB_Kuler_List_Table::prepare_items($criteria) should be compatible with WP_List_Table::prepare_items()
Server metrics [RAM: ▼1.83MB] [CPU: ▼50.81ms] Passed 4 tests
Server-side resources used by LB ColorBox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 43.17 ▼8.70 |
Dashboard /wp-admin | 2.12 ▼1.19 | 6.82 ▼45.20 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 7.28 ▼37.12 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 7.69 ▼93.92 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 7.43 ▼27.01 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=colorbox | 2.12 | 7.80 |
ColorBox /wp-admin/options-general.php?page=lbcb-options | 2.12 | 6.42 |
Add ColorBox /wp-admin/post-new.php?post_type=colorbox | 2.12 | 6.48 |
ColorBoxes /wp-admin/edit.php?post_type=colorbox | 2.12 | 7.69 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by LB ColorBox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 13.56 ▼0.74 | 1.75 ▼0.06 | 39.39 ▼8.09 |
Dashboard /wp-admin | 2,235 ▲50 | 5.84 ▲0.95 | 113.57 ▼4.77 | 72.09 ▲24.12 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.00 ▼0.01 | 38.69 ▲3.95 | 33.14 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,569 ▲25 | 23.02 ▼0.29 | 689.40 ▼45.45 | 55.12 ▼5.16 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.23 ▲0.03 | 102.42 ▼5.24 | 74.31 ▲28.86 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=colorbox | 1,345 | 2.15 | 29.27 | 32.46 |
ColorBox /wp-admin/options-general.php?page=lbcb-options | 913 | 1.69 | 27.07 | 26.34 |
Add ColorBox /wp-admin/post-new.php?post_type=colorbox | 2,387 | 4.34 | 98.14 | 89.71 |
ColorBoxes /wp-admin/edit.php?post_type=colorbox | 1,164 | 1.95 | 34.06 | 31.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/lb-colorbox/include/lbcb-list-table.php+124
Declaration of LBCB_Kuler_List_Table::prepare_items($criteria) should be compatible with WP_List_Table::prepare_items()
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=colorbox
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/lb-colorbox/include/lbcb-list-table.php+124
Declaration of LBCB_Kuler_List_Table::prepare_items($criteria) should be compatible with WP_List_Table::prepare_items()
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=colorbox
- > Notice in wp-content/plugins/lb-colorbox/include/lbcb-options.php+32
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=lbcb-options
- > Warning in wp-admin/includes/template.php+1771
call_user_func() expects parameter 1 to be a valid callback, function 'lbcb_kuler_header' not found or invalid function name
SRP 50% from 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 following issues need your attention
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lb-colorbox/include/lbcb-cpt.php:53
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lb-colorbox/include/lbcb-list-table.php on line 15
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/lb-colorbox/include/lbcb-list-table.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/lb-colorbox/include/metaboxes/init.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lb-colorbox/include/lbcb-ajax.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lb-colorbox/lb-colorbox.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lb-colorbox/include/lbcb-options.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lb-colorbox/include/lbcb-output.php:56
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/lb-colorbox/include/lbcb-list-table.php on line 15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=colorbox
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/lb-colorbox/include/metaboxes/js/cmb.js?ver=6.3.1:67:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=colorbox
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: ""
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== lb-colorbox ===
)
lb-colorbox/lb-colorbox.php Passed 13 tests
"LB ColorBox" version 0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
Store custom color swatches as custom posts for fun and profit (and use in themes!).
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
No dangerous file extensions were detected1,805 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 229 | 677 | 1,241 |
CSS | 2 | 10 | 16 | 357 |
Markdown | 2 | 27 | 0 | 114 |
JavaScript | 3 | 17 | 45 | 93 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 24.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 5 | 11.36% |
▷ Public methods | 37 | 84.09% |
▷ Protected methods | 7 | 15.91% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.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
24 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 56.30KB | 16.57KB | ▼ 70.57% |
screenshot-4.png | 35.42KB | 10.29KB | ▼ 70.96% |
include/metaboxes/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
include/images/swatch16-color.png | 1.15KB | 0.48KB | ▼ 57.91% |
include/metaboxes/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |