Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-utils.php+687
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.34MB] [CPU: ▼50.91ms] Passed 4 tests
This is a short check of server-side resources used by P2P Electronic Cash Payments for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.66 ▼0.80 | 8.61 ▼31.64 |
Dashboard /wp-admin | 2.68 ▼0.66 | 10.25 ▼49.91 |
Posts /wp-admin/edit.php | 2.68 ▼0.67 | 8.88 ▼41.71 |
Add New Post /wp-admin/post-new.php | 2.68 ▼3.20 | 9.61 ▼80.39 |
Media Library /wp-admin/upload.php | 2.68 ▼0.55 | 9.08 ▼21.97 |
General Settings /wp-admin/admin.php?page=ecp-settings | 2.68 | 10.48 |
API Settings /wp-admin/admin.php?page=ecp-settings-advanced | 2.68 | 9.76 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 37 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_p2pecp_addresses_bsv |
wp_p2pecp_addresses_bch |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
ECP-Settings |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by P2P Electronic Cash Payments for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲55 | 14.61 ▲0.17 | 1.74 ▼0.32 | 44.85 ▲1.00 |
Dashboard /wp-admin | 2,235 ▲44 | 5.84 ▲0.03 | 98.08 ▼8.41 | 81.63 ▲41.76 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 1.97 ▼0.04 | 34.69 ▼6.66 | 34.46 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 18.40 ▲0.12 | 725.64 ▲118.65 | 68.83 ▲10.75 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.19 ▼0.07 | 97.63 ▼4.07 | 79.19 ▲34.43 |
General Settings /wp-admin/admin.php?page=ecp-settings | 949 | 2.03 | 22.44 | 30.57 |
API Settings /wp-admin/admin.php?page=ecp-settings-advanced | 889 | 2.03 | 24.60 | 27.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-utils.php+687
Array and string offset access syntax with curly braces is deprecated
- Zombie tables detected upon uninstall: 2 tables
- wp_p2pecp_addresses_bsv
- wp_p2pecp_addresses_bch
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- ECP-Settings
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ecp-settings-advanced
- > Deprecated in wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-utils.php+687
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/admin.php?page=ecp-settings-advanced
- > Notice in wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-render-settings.php+188
Undefined index: api
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ecp-settings-advanced
- > Notice in wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-render-settings.php+221
Trying to access array offset on value of type null
SRP 0% 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
Almost there! Just fix the following items
- 13× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/p2pecp-woocommerce.php
- > /wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-bitcoin-gateway.php
- > /wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-utils.php
- > /wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-mpkgen.php
- > /wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-render-settings.php
- > /wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-bitcoin-blockchain-apis.php
- > /wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-include-all.php
- > /wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-cron.php
- > /wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/ecp-bitcoin-gateway-bsv.php
- > /wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/classes/class-table.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'CashAddr\\Exception\\Base32Exception' not found in wp-content/plugins/p2p-electronic-cash-payments-for-woocommerce/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)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires at least: Version format is invalid
- Tested up to: Version format is invalid
p2p-electronic-cash-payments-for-woocommerce/p2pecp-woocommerce.php 85% from 13 tests
The entry point to "P2P Electronic Cash Payments for WooCommerce" version 1.00 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("p2p-electronic-cash-payments-for-woocommerce.php" instead of "p2pecp-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,428 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 945 | 1,110 | 4,412 |
Markdown | 1 | 3 | 0 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 19.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 233.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 6 | 17.14% |
▷ Concrete classes | 29 | 82.86% |
▷ Final classes | 0 | 0.00% |
Methods | 272 | |
▷ Static methods | 106 | 38.97% |
▷ Public methods | 222 | 81.62% |
▷ Protected methods | 37 | 13.60% |
▷ Private methods | 13 | 4.78% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 9 | 64.29% |
▷ Class constants | 5 | 35.71% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bitcoin_16x.png | 0.45KB | 0.45KB | 0.22% |
images/checkout-icons/bch/orange-1.png | 7.20KB | 3.41KB | ▼ 52.72% |
images/checkout-icons/bsv/bitcoin_sv.png | 6.24KB | 2.79KB | ▼ 55.25% |
images/btc_buyitnow_32x.png | 9.37KB | 3.08KB | ▼ 67.14% |
images/checkout-icons/bch/green-1.png | 7.71KB | 3.56KB | ▼ 53.83% |