Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > User error in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.
Server metrics [RAM: ▲0.00MB] [CPU: ▼11.09ms] Passed 4 tests
Analyzing server-side resources used by BitPay Checkout for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.43 ▼7.22 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.17 ▼5.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.81 ▼4.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.53 ▼26.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.23 ▼1.61 |
Server storage [IO: ▲22.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 945 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by BitPay Checkout for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.68 ▲0.33 | 1.63 ▼0.12 | 44.14 ▼1.33 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▼0.01 | 90.26 ▼12.47 | 38.92 ▼8.34 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.06 | 37.89 ▲1.12 | 39.27 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.09 ▲0.10 | 688.69 ▲19.41 | 72.60 ▲15.90 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.21 ▼0.04 | 95.22 ▼4.63 | 40.94 ▼2.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
- 230× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16. in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/composer/platform_check.php on line 24
- > PHP Parse error
syntax error, unexpected ')', expecting '|' or variable (T_VARIABLE) in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/bitpay/sdk/test/unit/BitPaySDK/Model/Payout/PayoutTest.php on line 265
- > PHP Fatal error
Uncaught Error: Class 'BitPayVendor\\PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/bitpay/sdk/test/unit/BitPaySDK/Model/Invoice/ItemizedDetailsTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'BitPayVendor\\BitPaySDK\\Exceptions\\PayoutBatchException' not found in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/bitpay/sdk/src/BitPaySDK/Exceptions/PayoutBatchCreationException.php:17
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16. in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'BitPayVendor\\BitPaySDK\\Exceptions\\BitPayException' not found in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/bitpay/sdk/src/BitPaySDK/Exceptions/CurrencyException.php:17
- > PHP Fatal error
Uncaught Error: Class 'BitPayVendor\\BitPaySDK\\Exceptions\\BillException' not found in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/bitpay/sdk/src/BitPaySDK/Exceptions/BillQueryException.php:17
- > PHP Fatal error
Uncaught Error: Class 'BitPayVendor\\PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/bitpay/sdk/test/unit/BitPaySDK/Model/Ledger/LedgerTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'BitPayVendor\\PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/bitpay/sdk/test/unit/BitPaySDK/Model/Settlement/PayoutInfoTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'BitPayVendor\\PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bitpay-checkout-for-woocommerce/build/vendor/bitpay/sdk/test/unit/BitPaySDK/Exceptions/PayoutRecipientExceptionTest.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: cryptocurrency, bitpay, payments, bitcoin cash, erc20...
bitpay-checkout-for-woocommerce/index.php 92% from 13 tests
The main file in "BitPay Checkout for WooCommerce" v. 5.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("bitpay-checkout-for-woocommerce.php" instead of "index.php")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin262,295 lines of code in 914 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 441 | 64,800 | 0 | 212,736 |
PHP | 400 | 1,154 | 17,553 | 33,036 |
JavaScript | 5 | 37 | 41 | 9,051 |
JSON | 39 | 0 | 0 | 4,279 |
CSS | 4 | 293 | 175 | 1,464 |
SVG | 14 | 0 | 8 | 1,395 |
Markdown | 2 | 100 | 0 | 200 |
XML | 6 | 0 | 2 | 91 |
YAML | 2 | 0 | 0 | 34 |
reStructuredText | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 47 | |
Interfaces | 40 | |
Traits | 5 | |
Classes | 334 | |
▷ Abstract classes | 2 | 0.60% |
▷ Concrete classes | 332 | 99.40% |
▷ Final classes | 38 | 11.45% |
Methods | 3,255 | |
▷ Static methods | 231 | 7.10% |
▷ Public methods | 2,842 | 87.31% |
▷ Protected methods | 34 | 1.04% |
▷ Private methods | 379 | 11.64% |
Functions | 138 | |
▷ Named functions | 37 | 26.81% |
▷ Anonymous functions | 101 | 73.19% |
Constants | 346 | |
▷ Global constants | 1 | 0.29% |
▷ Class constants | 345 | 99.71% |
▷ Public constants | 318 | 92.17% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 5.98MB with 4.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 435.41KB | 162.10KB | ▼ 62.77% |
assets/screenshot-2.png | 467.94KB | 127.38KB | ▼ 72.78% |
assets/screenshot-7.png | 251.54KB | 62.82KB | ▼ 75.03% |
assets/screenshot-12.png | 235.54KB | 47.35KB | ▼ 79.90% |
assets/screenshot-3.png | 1,170.99KB | 358.47KB | ▼ 69.39% |