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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.49ms] Passed 4 tests
Analyzing server-side resources used by Bolt Checkout for BigCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.00 | 42.73 ▼2.14 |
Dashboard /wp-admin | 3.35 ▼0.04 | 52.74 ▼7.82 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 53.81 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 85.17 ▼19.27 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 40.21 ▲4.33 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bolt Checkout for BigCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.08 ▼0.06 | 2.36 ▲0.68 | 45.28 ▲0.66 |
Dashboard /wp-admin | 2,198 ▲24 | 5.57 ▼0.06 | 84.51 ▼7.09 | 40.62 ▼0.48 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.09 | 36.44 ▼14.64 | 39.14 ▼6.40 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.49 ▲0.31 | 672.01 ▲15.37 | 60.85 ▲8.70 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.01 | 97.07 ▼3.73 | 44.73 ▲0.52 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bolt-checkout-bigcommerce/lib/bolt-php/example/order_confirmation.php
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant total_amount - assumed 'total_amount' (this will throw an Error in a future version of PHP) in wp-content/plugins/bolt-checkout-bigcommerce/lib/bolt-php/lib/playground.php on line 16
- > PHP Warning
Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in wp-content/plugins/bolt-checkout-bigcommerce/lib/bolt-php/lib/playground.php on line 21
- > PHP Warning
Use of undefined constant cart - assumed 'cart' (this will throw an Error in a future version of PHP) in wp-content/plugins/bolt-checkout-bigcommerce/lib/bolt-php/lib/playground.php on line 13
- > PHP Warning
Use of undefined constant currency - assumed 'currency' (this will throw an Error in a future version of PHP) in wp-content/plugins/bolt-checkout-bigcommerce/lib/bolt-php/lib/playground.php on line 18
- > PHP Warning
Use of undefined constant tax_amount - assumed 'tax_amount' (this will throw an Error in a future version of PHP) in wp-content/plugins/bolt-checkout-bigcommerce/lib/bolt-php/lib/playground.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'BigCommerce\\Cart\\Cart' not found in wp-content/plugins/bolt-checkout-bigcommerce/src/class-bolt-cart.php:5
- > PHP Fatal error
Uncaught Error: Class 'BoltBigcommerce\\BugsnagHelper' not found in wp-content/plugins/bolt-checkout-bigcommerce/lib/bolt-php/lib/Http/CurlClient.php:66
- > PHP Fatal error
Uncaught Error: Class 'BoltBigcommerce\\BugsnagHelper' not found in wp-content/plugins/bolt-checkout-bigcommerce/lib/bolt-php/lib/Http/CurlClient.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/bolt-checkout-bigcommerce/view/main.js.php:15
- > PHP Fatal error
Uncaught Error: Class 'BoltPay\\Bolt' not found in wp-content/plugins/bolt-checkout-bigcommerce/lib/bolt-php/lib/ApiClient.php:55
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 16 tag instead of maximum 10
bolt-checkout-bigcommerce/bolt-bigcommerce-wordpress.php 92% from 13 tests
"Bolt Checkout for BigCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bolt-checkout-bigcommerce.php" instead of "bolt-bigcommerce-wordpress.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
No dangerous file extensions were detected4,407 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 1,025 | 2,835 | 3,936 |
JavaScript | 3 | 97 | 116 | 461 |
CSS | 1 | 0 | 0 | 6 |
Markdown | 1 | 4 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 13.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 405 | |
▷ Static methods | 189 | 46.67% |
▷ Public methods | 350 | 86.42% |
▷ Protected methods | 14 | 3.46% |
▷ Private methods | 41 | 10.12% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 7 | 25.00% |
▷ Class constants | 21 | 75.00% |
▷ Public constants | 21 | 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
No PNG images were found in this plugin