Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼297.16ms] Passed 4 tests
A check of server-side resources used by BTCPay for WooCommerce (Legacy)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 56.48 ▲6.48 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.22 ▼6.28 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 34.90 ▼4.61 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.97 ▼1,178.07 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.80 ▲0.31 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 96 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for BTCPay for WooCommerce (Legacy)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲53 | 15.86 ▲0.14 | 6.03 ▼0.12 | 2.91 ▲0.86 |
Dashboard /wp-admin | 2,892 ▲37 | 6.16 ▼0.01 | 115.99 ▼19.71 | 148.22 ▼11.32 |
Posts /wp-admin/edit.php | 2,688 ▲3 | 3.24 ▼0.00 | 62.06 ▼2.24 | 140.03 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,711 ▲16 | 20.65 ▼0.53 | 411.31 ▼77.03 | 158.37 ▲3.33 |
Media Library /wp-admin/upload.php | 1,692 ▲3 | 5.54 ▼0.04 | 135.21 ▼26.09 | 186.94 ▼0.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 38× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Bitpay\\Util\\CurveParameterInterface' not found in wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Util/Secp256k1.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Bitpay\\ApplicationInterface' not found in wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Application.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Bitpay\etwork\etworkInterface' not found in wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Network/Customnet.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Bitpay\\CurrencyInterface' not found in wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Currency.php:17
- > PHP Fatal error
Uncaught Error: Class 'Bitpay\\Key' not found in wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/SinKey.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Bitpay\\Storage\\StorageInterface' not found in wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Storage/MockStorage.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Bitpay\etwork\etworkInterface' not found in wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Network/Livenet.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Bitpay\\ItemInterface' not found in wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Item.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Bitpay\\Storage\\StorageInterface' not found in wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Storage/FilesystemStorage.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Bitpay\\Crypto\\CryptoInterface' not found in wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Crypto/OpenSSLExtension.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
btcpay-for-woocommerce/class-wc-gateway-btcpay.php 77% from 13 tests
This is the main PHP file of "BTCPay for WooCommerce (Legacy)" version 3.0.16, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("btcpay-for-woocommerce.php" instead of "class-wc-gateway-btcpay.php")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
It is important to fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Client/Adapter/ca-bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 76 | 1,638 | 3,933 | 5,684 |
CSS | 3 | 0 | 0 | 64 |
JavaScript | 1 | 33 | 74 | 58 |
XML | 1 | 5 | 6 | 34 |
Smarty | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 24 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 1 | 2.08% |
Methods | 643 | |
▷ Static methods | 36 | 5.60% |
▷ Public methods | 628 | 97.67% |
▷ Protected methods | 11 | 1.71% |
▷ Private methods | 4 | 0.62% |
Functions | 24 | |
▷ Named functions | 15 | 62.50% |
▷ Anonymous functions | 9 | 37.50% |
Constants | 41 | |
▷ Global constants | 2 | 4.88% |
▷ Class constants | 39 | 95.12% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.34MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 1.36KB | 1.50KB | 0.00% |
assets/screenshot-5.png | 90.37KB | 24.56KB | ▼ 72.83% |
assets/screenshot-2.png | 86.72KB | 22.37KB | ▼ 74.20% |
assets/img/icon.png | 2.11KB | 1.30KB | ▼ 38.43% |
assets/screenshot-3.png | 76.09KB | 18.82KB | ▼ 75.26% |