Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲1.03MB] [CPU: ▼131.35ms] Passed 4 tests
An overview of server-side resources used by Crypto Payments Woo - Bitcoin/FairCoin Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.98 | 47.05 ▲11.32 |
Dashboard /wp-admin | 4.17 ▲1.11 | 68.13 ▲20.06 |
Posts /wp-admin/edit.php | 4.23 ▲1.11 | 66.42 ▲20.60 |
Add New Post /wp-admin/post-new.php | 6.45 ▲1.01 | 104.39 ▼564.35 |
Media Library /wp-admin/upload.php | 4.03 ▲1.03 | 42.35 ▲7.58 |
BTC Gateway Settings /wp-admin/admin.php?page=wcp-settings-btc | 4.03 | 40.78 |
FAIR Gateway Settings /wp-admin/admin.php?page=wcp-settings-fair | 4.03 | 51.06 |
General Settings /wp-admin/admin.php?page=wcp-settings | 4.03 | 41.61 |
Server storage [IO: ▲1.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 53 new files
Database: 2 new tables, 5 new options
New tables |
---|
wp_wcp_addresses_btc |
wp_wcp_addresses_fair |
New WordPress options |
---|
WCP-Settings |
WCP_btc |
WCP_fair |
WCP_api |
WCP_general |
Browser metrics Passed 4 tests
Checking browser requirements for Crypto Payments Woo - Bitcoin/FairCoin Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,927 ▲345 | 17.43 ▲1.52 | 8.19 ▼0.48 | 50.78 ▼2.30 |
Dashboard /wp-admin | 3,206 ▲275 | 8.12 ▲2.17 | 173.02 ▲20.57 | 141.08 ▲18.34 |
Posts /wp-admin/edit.php | 3,038 ▲302 | 4.35 ▲1.65 | 92.42 ▲24.48 | 110.51 ▲12.52 |
Add New Post /wp-admin/post-new.php | 1,722 ▼1,980 | 18.33 ▲3.14 | 385.71 ▼82.26 | 113.33 ▼2.54 |
Media Library /wp-admin/upload.php | 1,878 ▲68 | 4.88 ▼0.15 | 124.57 ▼34.42 | 143.42 ▲14.12 |
BTC Gateway Settings /wp-admin/admin.php?page=wcp-settings-btc | 1,324 | 3.70 | 70.82 | 99.54 |
FAIR Gateway Settings /wp-admin/admin.php?page=wcp-settings-fair | 1,324 | 3.89 | 77.35 | 114.49 |
General Settings /wp-admin/admin.php?page=wcp-settings | 1,323 | 3.90 | 74.52 | 103.69 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- WCP_api
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
Good news, no errors were detected
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
Almost there! Just fix the following items
- 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/crypto-payments-woo/wcp-admin.php
- > /wp-content/plugins/crypto-payments-woo/wcp-woocommerce.php
- > /wp-content/plugins/crypto-payments-woo/wcp-crypto-exchange-rate-apis.php
- > /wp-content/plugins/crypto-payments-woo/wcp-include-all.php
- > /wp-content/plugins/crypto-payments-woo/wcp-crypto-gateway-btc.php
- > /wp-content/plugins/crypto-payments-woo/class-wp-osa.php
- > /wp-content/plugins/crypto-payments-woo/__log.php
- > /wp-content/plugins/crypto-payments-woo/wcp-utils.php
- > /wp-content/plugins/crypto-payments-woo/wcp-crypto-blockchain-apis.php
- > /wp-content/plugins/crypto-payments-woo/wcp-crypto-gateway-fair.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/crypto-payments-woo/wcp-checkout-template.php:2
- > PHP Fatal error
Uncaught Error: Class 'CashAddr\\Exception\\Base32Exception' not found in wp-content/plugins/crypto-payments-woo/libs/cashaddr/Exception/InvalidChecksumException.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 75% 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
Attributes that need to be fixed:
- Requires at least: Invalid plugin version format
- Tested up to: Invalid plugin version format
- Requires php: Invalid plugin version format
- Screenshots: No descriptions were found for these screenshots #6, #7 in crypto-payments-woo/assets to your readme.txt
crypto-payments-woo/wcp-woocommerce.php 85% from 13 tests
The entry point to "Crypto Payments Woo - Bitcoin/FairCoin Gateway for WooCommerce" version 1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("crypto-payments-woo.php" instead of "wcp-woocommerce.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 218 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected5,823 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,045 | 1,550 | 5,496 |
PO File | 1 | 35 | 37 | 123 |
Markdown | 2 | 37 | 0 | 110 |
JavaScript | 1 | 6 | 0 | 61 |
CSS | 1 | 6 | 1 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 233.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 6 | 17.65% |
▷ Concrete classes | 28 | 82.35% |
▷ Final classes | 0 | 0.00% |
Methods | 288 | |
▷ Static methods | 106 | 36.81% |
▷ Public methods | 246 | 85.42% |
▷ Protected methods | 36 | 12.50% |
▷ Private methods | 6 | 2.08% |
Functions | 41 | |
▷ Named functions | 40 | 97.56% |
▷ Anonymous functions | 1 | 2.44% |
Constants | 18 | |
▷ Global constants | 13 | 72.22% |
▷ Class constants | 5 | 27.78% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 1.05MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/checkout-icons/fair/fair_logo.png | 3.02KB | 2.33KB | ▼ 22.77% |
screenshots/screenshot-4.png | 165.39KB | 61.96KB | ▼ 62.54% |
images/checkout-icons/btc/btc_logo.png | 6.96KB | 2.95KB | ▼ 57.60% |
screenshots/banner-1544x500.png | 79.84KB | 34.02KB | ▼ 57.39% |
screenshots/icon-128x128.png | 6.24KB | 3.15KB | ▼ 49.52% |