Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.25ms] Passed 4 tests
A check of server-side resources used by BTCPay for WooCommerce V2
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.12 ▼3.36 |
Dashboard /wp-admin | 3.48 ▲0.14 | 51.83 ▼16.66 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 55.61 ▲5.38 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 89.75 ▼9.34 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 39.97 ▲4.38 |
Server storage [IO: ▲1.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 138 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
btcpay_gf_version |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
btcpaygf_permalinks_flushed |
can_compress_scripts |
Browser metrics Passed 4 tests
BTCPay for WooCommerce V2: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲69 | 14.47 ▲0.22 | 2.17 ▲0.19 | 43.61 ▼0.79 |
Dashboard /wp-admin | 2,236 ▲36 | 5.90 ▲0.11 | 110.59 ▼3.27 | 39.76 ▼5.73 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.17 ▲0.14 | 44.90 ▲2.62 | 36.07 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,560 ▲24 | 23.18 ▲0.19 | 645.88 ▲38.95 | 55.55 ▲7.35 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.27 ▲0.05 | 101.46 ▲0.70 | 41.53 ▼2.43 |
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
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- btcpay_gf_version
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- btcpaygf_permalinks_flushed
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/examples/manual_autoloading.php
- 99× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/examples/lightning_store.php on line 3
- > PHP Warning
require(wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/examples/health.php on line 3
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/examples/payout_usage.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'BTCPayServer\\Result\\AbstractResult' not found in wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/src/Result/ServerInfo.php:7
- > PHP Fatal error
Uncaught Error: Class 'BTCPayServer\\Result\\Webhook' not found in wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/src/Result/WebhookCreated.php:7
- > PHP Fatal error
Uncaught Error: Class 'BTCPayServer\\Result\\AbstractResult' not found in wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/src/Result/InvoiceCheckoutHTML.php:7
- > PHP Fatal error
Uncaught Error: Class 'BTCPayServer\\Result\\AbstractResult' not found in wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/src/Result/AbstractListResult.php:7
- > PHP Fatal error
Uncaught Error: Class 'BTCPayServer\\Result\\AbstractResult' not found in wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/src/Result/InvoicePayment.php:7
- > PHP Fatal error
Uncaught Error: Interface 'BTCPayServer\\Http\\ClientInterface' not found in wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/src/Http/CurlClient.php:12
- > PHP Fatal error
Uncaught Error: Class 'BTCPayServer\\Client\\AbstractClient' not found in wp-content/plugins/btcpay-greenfield-for-woocommerce/vendor/btcpayserver/btcpayserver-greenfield-php/src/Client/PullPayment.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
btcpay-greenfield-for-woocommerce/btcpay-greenfield-for-woocommerce.php 92% from 13 tests
The principal PHP file in "BTCPay for WooCommerce V2" v. 2.3.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 183 characters long)
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
Everything looks great! No dangerous files found in this plugin7,238 lines of code in 122 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 1,413 | 1,185 | 6,952 |
JavaScript | 3 | 35 | 49 | 202 |
JSON | 1 | 0 | 0 | 62 |
XML | 1 | 0 | 0 | 15 |
CSS | 1 | 0 | 0 | 6 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 98 | |
▷ Abstract classes | 5 | 5.10% |
▷ Concrete classes | 93 | 94.90% |
▷ Final classes | 0 | 0.00% |
Methods | 494 | |
▷ Static methods | 51 | 10.32% |
▷ Public methods | 474 | 95.95% |
▷ Protected methods | 12 | 2.43% |
▷ Private methods | 8 | 1.62% |
Functions | 17 | |
▷ Named functions | 1 | 5.88% |
▷ Anonymous functions | 16 | 94.12% |
Constants | 39 | |
▷ Global constants | 5 | 12.82% |
▷ Class constants | 34 | 87.18% |
▷ Public constants | 34 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 1.05MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/screenshot-4.png | 52.62KB | 17.52KB | ▼ 66.70% |
assets/images/btcpay-logo.png | 15.20KB | 2.65KB | ▼ 82.57% |
.wordpress-org/banner-772x250.png | 19.36KB | 10.05KB | ▼ 48.09% |
.wordpress-org/screenshot-2.png | 97.61KB | 27.75KB | ▼ 71.57% |
.wordpress-org/banner-1544x500.png | 43.35KB | 21.84KB | ▼ 49.62% |