Benchmarks
Plugin footprint 83% from 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.00MB] [CPU: ▼8.34ms] Passed 4 tests
This is a short check of server-side resources used by Decentralized Bitcoin CryptoDEC Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.25 ▼6.28 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.02 ▼8.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.39 ▼0.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.41 ▼18.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.69 ▲6.59 |
Reset Settings /wp-admin/admin.php?page=itls-cryptodecpaymentgateway-reset-options | 3.00 | 23.22 |
General Settings /wp-admin/admin.php?page=itls-cryptodecpaymentgateway-options-page | 3.00 | 25.69 |
Server storage [IO: ▲2.84MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 622 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cryptodec_payments |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
itls_cryptodecpaymentgateway4 |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Decentralized Bitcoin CryptoDEC Payment Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.09 | 1.67 ▼0.72 | 42.27 ▲0.43 |
Dashboard /wp-admin | 2,203 ▲12 | 5.79 ▼0.15 | 141.29 ▲35.31 | 49.94 ▲7.23 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▲0.01 | 37.50 ▼15.66 | 34.50 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.64 ▲6.18 | 648.46 ▼34.22 | 78.75 ▲7.99 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.28 ▲0.07 | 100.09 ▼11.51 | 44.76 ▼0.65 |
Reset Settings /wp-admin/admin.php?page=itls-cryptodecpaymentgateway-reset-options | 28 | 0.44 | 0.09 | 5.85 |
General Settings /wp-admin/admin.php?page=itls-cryptodecpaymentgateway-options-page | 28 | 0.44 | 0.08 | 4.26 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- itls_cryptodecpaymentgateway4
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=itls-cryptodecpaymentgateway-options-page
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=itls-cryptodecpaymentgateway-options-page
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 16 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=itls-cryptodecpaymentgateway-options-page
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=itls-cryptodecpaymentgateway-options-page
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
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 take a closer look at the following
- 298× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/btclib/pleonasm/merkle-tree/tests/Pleo/Merkle/FixedSizeTreeTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\Universal\\Sequence' not found in wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/btclib/fgrosse/phpasn1/lib/ASN1/Universal/Set.php:15
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Bitcoin\etwork\etwork' not found in wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/btclib/bitwasp/bitcoin/src/Network/Networks/Viacoin.php:8
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\Universal\\Sequence' not found in wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/btclib/fgrosse/phpasn1/lib/ASN1/Composite/AttributeTypeAndValue.php:17
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Buffertools\\Types\\AbstractType' not found in wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/btclib/bitwasp/buffertools/src/Buffertools/Types/Vector.php:9
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Buffertools\\Types\\AbstractSignedInt' not found in wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/btclib/bitwasp/buffertools/src/Buffertools/Types/Int256.php:7
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/qrlib/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/qrlib/chillerlan/php-qrcode/examples/imageWithLogo.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'BitWasp\\Buffertools\\Types\\TypeInterface' not found in wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/btclib/bitwasp/buffertools/src/Buffertools/Types/AbstractType.php:9
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\ASNObject' not found in wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/btclib/fgrosse/phpasn1/lib/ASN1/Universal/NullObject.php:18
- > PHP Fatal error
Uncaught Error: Class 'chillerlan\\QRCodeTest\\Output\\QROutputTestAbstract' not found in wp-content/plugins/decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/lib/qrlib/chillerlan/php-qrcode/tests/Output/QRFpdfTest.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=itls-cryptodecpaymentgateway-reset-options
- > Network (severe)
wp-admin/admin.php?page=itls-cryptodecpaymentgateway-reset-options - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=itls-cryptodecpaymentgateway-options-page
- > Network (severe)
wp-admin/admin.php?page=itls-cryptodecpaymentgateway-options-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: bitcoin payment, crypto, woocommerce gateway, bitcoin, payment gateway...
decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/cryptodec-payment-gateway.php 92% from 13 tests
The principal PHP file in "Decentralized Bitcoin CryptoDEC Payment Gateway for WooCommerce" v. 2.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce.php" instead of "cryptodec-payment-gateway.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin31,619 lines of code in 578 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 531 | 8,029 | 20,317 | 28,978 |
JSON | 9 | 1 | 0 | 980 |
Markdown | 11 | 235 | 0 | 659 |
YAML | 12 | 83 | 15 | 366 |
XML | 8 | 3 | 0 | 234 |
CSS | 2 | 40 | 1 | 203 |
HTML | 1 | 26 | 0 | 137 |
make | 1 | 14 | 0 | 41 |
Bourne Shell | 2 | 2 | 0 | 11 |
Dockerfile | 1 | 5 | 2 | 10 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 204)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 266.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 204.00 |
Code structure | ||
---|---|---|
Namespaces | 124 | |
Interfaces | 70 | |
Traits | 4 | |
Classes | 424 | |
▷ Abstract classes | 28 | 6.60% |
▷ Concrete classes | 396 | 93.40% |
▷ Final classes | 16 | 4.04% |
Methods | 2,600 | |
▷ Static methods | 262 | 10.08% |
▷ Public methods | 2,361 | 90.81% |
▷ Protected methods | 146 | 5.62% |
▷ Private methods | 93 | 3.58% |
Functions | 116 | |
▷ Named functions | 59 | 50.86% |
▷ Anonymous functions | 57 | 49.14% |
Constants | 394 | |
▷ Global constants | 5 | 1.27% |
▷ Class constants | 389 | 98.73% |
▷ Public constants | 382 | 98.20% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.17MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/qrlib/chillerlan/php-qrcode/examples/example_image.png | 2.23KB | 1.09KB | ▼ 50.94% |
assets/images/logox.png | 111.44KB | 41.74KB | ▼ 62.54% |
assets/images/logo-gw.png | 14.94KB | 3.71KB | ▼ 75.19% |
assets/images/btc-logo-3.png | 9.26KB | 1.13KB | ▼ 87.77% |
assets/images/btc-logo-2.png | 14.94KB | 3.71KB | ▼ 75.19% |