Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼4.05ms] Passed 4 tests
Server-side resources used by MyCryptoCheckout - Bitcoin, Ethereum, and 100+ altcoins for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 38.51 ▼3.72 |
Dashboard /wp-admin | 3.51 ▲0.21 | 49.37 ▼1.45 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 46.25 ▲0.49 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 80.28 ▼11.53 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.34 ▲3.05 |
MyCryptoCheckout /wp-admin/options-general.php?page=mycryptocheckout | 3.82 | 37.93 |
Server storage [IO: ▲7.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,206 new files
Database: no new tables, 14 new options
New WordPress options |
---|
MyCryptoCheckout_markup_percent |
MyCryptoCheckout_markup_amount |
MyCryptoCheckout_qr_code_enabled |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
MyCryptoCheckout_qr_code_html |
widget_recent-comments |
MyCryptoCheckout_payment_timer_html |
... |
Browser metrics Passed 4 tests
Checking browser requirements for MyCryptoCheckout - Bitcoin, Ethereum, and 100+ altcoins for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.71 ▲0.50 | 1.85 ▲0.20 | 43.83 ▲1.23 |
Dashboard /wp-admin | 2,201 ▲21 | 5.78 ▲0.15 | 88.08 ▼5.08 | 38.66 ▼3.71 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.30 ▲0.28 | 36.44 ▲1.94 | 33.92 ▼4.33 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.01 ▼0.41 | 588.64 ▼119.81 | 54.62 ▼4.84 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.39 ▲0.21 | 104.66 ▲3.52 | 44.29 ▼1.02 |
MyCryptoCheckout /wp-admin/options-general.php?page=mycryptocheckout | 803 | 1.93 | 27.97 | 23.78 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 14 options
- MyCryptoCheckout_payment_timer_enabled
- db_upgraded
- MyCryptoCheckout_markup_amount
- MyCryptoCheckout_qr_code_enabled
- widget_recent-comments
- can_compress_scripts
- MyCryptoCheckout_qr_code_html
- theysaidso_admin_options
- MyCryptoCheckout_payment_timer_html
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=mycryptocheckout
- > Warning in wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php+47
gzuncompress(): data error
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mycryptocheckout/vendor/mdanter/ecc/tests/bootstrap.php
- 539× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Bitcoin\etwork\etwork' not found in wp-content/plugins/mycryptocheckout/vendor/bitwasp/bitcoin/src/Network/Networks/Bitcoin.php:8
- > PHP Warning
include(wp-content/plugins/mycryptocheckout/vendor/mdanter/ecc/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/mycryptocheckout/vendor/mdanter/ecc/tests/bootstrap.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_mcc\\form2\\tests\\TestCase' not found in wp-content/plugins/mycryptocheckout/vendor/plainview/sdk/form2/tests/DescriptionTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Bitcoin\\Key\\KeyToScript\\ScriptDataFactory' not found in wp-content/plugins/mycryptocheckout/vendor/bitwasp/bitcoin/src/Key/KeyToScript/Factory/KeyToScriptDataFactory.php:13
- > PHP Fatal error
Uncaught Error: Interface 'BitWasp\\Bitcoin\\Crypto\\EcAdapter\\Adapter\\EcAdapterInterface' not found in wp-content/plugins/mycryptocheckout/vendor/bitwasp/bitcoin/src/Crypto/EcAdapter/Impl/Secp256k1/Adapter/EcAdapter.php:20
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_mcc\\tests\\TestCase' not found in wp-content/plugins/mycryptocheckout/vendor/plainview/sdk/tests/BaseTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\AbstractString' not found in wp-content/plugins/mycryptocheckout/vendor/fgrosse/phpasn1/lib/ASN1/Universal/GeneralString.php:16
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Bitcoin\\Key\\KeyToScript\\Factory\\KeyToScriptDataFactory' not found in wp-content/plugins/mycryptocheckout/vendor/bitwasp/bitcoin/src/Key/KeyToScript/Factory/P2wpkhScriptDataFactory.php:11
- > PHP Fatal error
Uncaught Error: Class 'mycryptocheckout\\actions\\action' not found in wp-content/plugins/mycryptocheckout/src/actions/woocommerce_create_order.php:10
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Bitcoin\\Transaction\\SignatureHash\\SigHash' not found in wp-content/plugins/mycryptocheckout/vendor/bitwasp/bitcoin/src/Transaction/SignatureHash/Hasher.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: ethereum, woocommerce, bitcoin woocommerce, bitcoin, payments
mycryptocheckout/MyCryptoCheckout.php 92% from 13 tests
"MyCryptoCheckout - Bitcoin, Ethereum, and 100+ altcoins for WooCommerce" version 2.129's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("mycryptocheckout.php" instead of "MyCryptoCheckout.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected85,284 lines of code in 1,151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 931 | 10,955 | 23,180 | 45,366 |
JSON | 21 | 0 | 0 | 11,417 |
YAML | 21 | 135 | 114 | 9,235 |
JavaScript | 18 | 2,958 | 4,405 | 8,554 |
SVG | 81 | 29 | 41 | 3,877 |
CSS | 1 | 652 | 2 | 2,206 |
Markdown | 29 | 622 | 0 | 1,376 |
Sass | 8 | 18 | 34 | 1,011 |
C | 1 | 241 | 132 | 982 |
Bourne Shell | 25 | 93 | 20 | 555 |
C/C++ Header | 2 | 23 | 27 | 173 |
XML | 6 | 7 | 0 | 145 |
Dockerfile | 1 | 11 | 0 | 142 |
PO File | 1 | 40 | 43 | 98 |
make | 2 | 24 | 0 | 72 |
m4 | 1 | 9 | 3 | 39 |
Ant | 2 | 6 | 0 | 36 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 204)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 266.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 204.00 |
Code structure | ||
---|---|---|
Namespaces | 188 | |
Interfaces | 67 | |
Traits | 60 | |
Classes | 610 | |
▷ Abstract classes | 32 | 5.25% |
▷ Concrete classes | 578 | 94.75% |
▷ Final classes | 0 | 0.00% |
Methods | 3,791 | |
▷ Static methods | 372 | 9.81% |
▷ Public methods | 3,582 | 94.49% |
▷ Protected methods | 82 | 2.16% |
▷ Private methods | 127 | 3.35% |
Functions | 154 | |
▷ Named functions | 60 | 38.96% |
▷ Anonymous functions | 94 | 61.04% |
Constants | 378 | |
▷ Global constants | 27 | 7.14% |
▷ Class constants | 351 | 92.86% |
▷ Public constants | 351 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/static/images/currencies/KDU.png | 29.35KB | 12.99KB | ▼ 55.76% |