Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.99ms] Passed 4 tests
An overview of server-side resources used by Bolt Checkout for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.82 ▼2.88 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.49 ▼1.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.47 ▼5.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.48 ▼14.03 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 41.67 ▲0.66 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Bolt Checkout for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.37 | 1.63 ▼0.04 | 42.17 ▼9.28 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▼0.03 | 92.49 ▼0.55 | 38.80 ▼4.90 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.01 | 37.36 ▼4.78 | 36.26 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,528 ▼6 | 22.93 ▼1.58 | 691.50 ▲5.52 | 66.12 ▼26.73 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.13 ▼0.07 | 111.56 ▼3.97 | 47.19 ▼2.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bolt-checkout-woocommerce/includes/view/bolt_account.js.php
- > /wp-content/plugins/bolt-checkout-woocommerce/includes/view/product_page_subscription_button.js.php
- 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_AJAX' not found in wp-content/plugins/bolt-checkout-woocommerce/includes/view/bolt_cart.js.php:12
- > PHP Notice
Undefined variable: wrap_in_jquery_ready in wp-content/plugins/bolt-checkout-woocommerce/includes/view/bolt_cart.js.php on line 6
- > PHP Notice
Undefined variable: product in wp-content/plugins/bolt-checkout-woocommerce/includes/view/product_page_button.js.php on line 5
- > PHP Notice
Undefined variable: json_hints in wp-content/plugins/bolt-checkout-woocommerce/includes/view/product_page_ppc_button.js.php on line 10
- > PHP Notice
Undefined variable: currency in wp-content/plugins/bolt-checkout-woocommerce/includes/view/product_page_subscription_button.js.php on line 12
- > PHP Notice
Undefined variable: checkoutButtonClassName in wp-content/plugins/bolt-checkout-woocommerce/includes/view/product_page_subscription_button.js.php on line 84
- > PHP Notice
Undefined variable: json_cart in wp-content/plugins/bolt-checkout-woocommerce/includes/view/bolt_cart.js.php on line 1
- > PHP Notice
Undefined variable: success in wp-content/plugins/bolt-checkout-woocommerce/includes/view/product_page_ppc_button.js.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bolt-checkout-woocommerce/includes/view/product_page_ppc_button.js.php:48
- > PHP Notice
Undefined variable: currency in wp-content/plugins/bolt-checkout-woocommerce/includes/view/product_page_ppc_button.js.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: There are too many tags (17 tag instead of maximum 10)
bolt-checkout-woocommerce/bolt-checkout-woocommerce.php Passed 13 tests
The main PHP file in "Bolt Checkout for WooCommerce" ver. 2.18.0 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
Adds Bolt Checkout for WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected13,704 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 87 | 2,897 | 7,383 | 13,249 |
JavaScript | 1 | 81 | 94 | 339 |
SVG | 6 | 0 | 6 | 114 |
CSS | 1 | 1 | 4 | 2 |
PHP code Passed 2 tests
A short review 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.43 |
Average class complexity | 27.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 2 | |
Classes | 49 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 49 | 100.00% |
▷ Final classes | 1 | 2.04% |
Methods | 550 | |
▷ Static methods | 83 | 15.09% |
▷ Public methods | 442 | 80.36% |
▷ Protected methods | 12 | 2.18% |
▷ Private methods | 96 | 17.45% |
Functions | 179 | |
▷ Named functions | 178 | 99.44% |
▷ Anonymous functions | 1 | 0.56% |
Constants | 408 | |
▷ Global constants | 12 | 2.94% |
▷ Class constants | 396 | 97.06% |
▷ Public constants | 396 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/amex.png | 2.05KB | 1.70KB | ▼ 16.90% |
assets/images/mastercard.png | 1.15KB | 0.98KB | ▼ 15.07% |
assets/images/visa.png | 1.16KB | 1.31KB | 0.00% |
assets/images/jcb.png | 1.60KB | 1.49KB | ▼ 7.08% |
assets/images/diners.png | 1.08KB | 1.20KB | 0.00% |