Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > User error in wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/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: ▼5.20ms] Passed 4 tests
A check of server-side resources used by BitPay Checkout for Easy Digital Downloads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.48 ▼3.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.93 ▼6.61 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.24 ▼0.56 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.21 ▼9.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.34 ▼0.90 |
Server storage [IO: ▲21.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2,552 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BitPay Checkout for Easy Digital Downloads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.11 | 2.05 ▲0.05 | 44.03 ▲2.35 |
Dashboard /wp-admin | 2,189 ▲9 | 5.51 ▼0.13 | 85.27 ▼10.75 | 41.14 ▲3.76 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.03 | 33.74 ▼5.16 | 37.70 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.31 ▲0.22 | 693.31 ▲2.74 | 63.05 ▼0.29 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.26 ▲0.01 | 96.04 ▼18.86 | 42.65 ▼6.92 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 925× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Sniffs\\AbstractScopeSniff' not found in wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidFunctionNameSniff.php:17
- > PHP Fatal error
Uncaught Error: Class 'BitPaySDK\\Exceptions\\BitPayException' not found in wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/bitpay/sdk/src/BitPaySDK/Exceptions/SettlementException.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/bitpay/sdk/test/unit/BitPaySDK/Model/Invoice/ItemizedDetailsTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/squizlabs/php_codesniffer/tests/Core/Autoloader/DetermineLoadedClassTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'BitPaySDK\\Exceptions\\RateException' not found in wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/bitpay/sdk/src/BitPaySDK/Exceptions/RateQueryException.php:13
- > 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-easy-digital-downloads/vendor/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Tests/Debug/FirebugConsoleUnitTest.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: bitpay, payments, payment gateway, bitcoin, cryptocurrency...
bitpay-checkout-for-easy-digital-downloads/index.php 77% from 13 tests
"BitPay Checkout for Easy Digital Downloads" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 178 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("bitpay-checkout-for-easy-digital-downloads.php" instead of "index.php")
- Git Repository: Please remove the Git repository from this plugin
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
- ☣ wp-content/plugins/bitpay-checkout-for-easy-digital-downloads/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 241 | 38,577 | 0 | 131,408 |
PHP | 1,300 | 29,767 | 59,242 | 123,432 |
JavaScript | 60 | 790 | 899 | 11,120 |
XML | 238 | 566 | 935 | 8,182 |
Markdown | 33 | 2,584 | 0 | 7,558 |
Pascal | 130 | 3,231 | 7,118 | 6,576 |
JSON | 59 | 0 | 0 | 5,541 |
CSS | 37 | 480 | 267 | 2,123 |
YAML | 8 | 26 | 8 | 198 |
XSD | 1 | 6 | 0 | 130 |
DOS Batch | 2 | 4 | 10 | 10 |
reStructuredText | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 478)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 724.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 478.00 |
Code structure | ||
---|---|---|
Namespaces | 235 | |
Interfaces | 42 | |
Traits | 9 | |
Classes | 1,087 | |
▷ Abstract classes | 19 | 1.75% |
▷ Concrete classes | 1,068 | 98.25% |
▷ Final classes | 192 | 17.98% |
Methods | 5,478 | |
▷ Static methods | 485 | 8.85% |
▷ Public methods | 4,775 | 87.17% |
▷ Protected methods | 262 | 4.78% |
▷ Private methods | 441 | 8.05% |
Functions | 149 | |
▷ Named functions | 35 | 23.49% |
▷ Anonymous functions | 114 | 76.51% |
Constants | 542 | |
▷ Global constants | 115 | 21.22% |
▷ Class constants | 427 | 78.78% |
▷ Public constants | 404 | 94.61% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 4.37MB with 3.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 591.93KB | 134.17KB | ▼ 77.33% |
assets/screenshot-3.png | 331.45KB | 93.56KB | ▼ 71.77% |
assets/screenshot-12.png | 173.53KB | 50.77KB | ▼ 70.74% |
assets/banner-772x250.png | 159.55KB | 47.01KB | ▼ 70.54% |
assets/screenshot-4.png | 324.29KB | 102.14KB | ▼ 68.50% |