Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼305.13ms] Passed 4 tests
Server-side resources used by Ether and ERC20 tokens WooCommerce Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 61.18 ▼43.27 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.63 ▼2.75 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 38.19 ▼1.42 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 94.83 ▼1,171.37 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 25.17 ▼3.11 |
Server storage [IO: ▲14.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 953 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Ether and ERC20 tokens WooCommerce Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.90 ▲0.25 | 5.72 ▼0.95 | 2.82 ▲0.13 |
Dashboard /wp-admin | 2,892 ▲46 | 6.10 ▼0.08 | 121.94 ▼5.02 | 214.23 ▼15.63 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▼0.01 | 63.93 ▼6.75 | 139.94 ▼6.76 |
Add New Post /wp-admin/post-new.php | 1,759 ▲98 | 16.79 ▲0.56 | 403.01 ▼26.25 | 213.63 ▲59.14 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.55 ▼0.00 | 152.89 ▼10.32 | 227.37 ▲12.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 347× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ethereumico\\Epg\\Dependencies\\Web3\\Methods\\EthMethod' not found in wp-content/plugins/ether-and-erc20-tokens-woocommerce-payment-gateway/vendor/olegabr/web3.php/src/Methods/Eth/GetLogs.php:16
- > PHP Fatal error
Uncaught Error: Class 'Ethereumico\\Epg\\Dependencies\\GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/ether-and-erc20-tokens-woocommerce-payment-gateway/vendor/guzzlehttp/promises/src/CancellationException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Ethereumico\\Epg\\Dependencies\\Web3\\Methods\\EthMethod' not found in wp-content/plugins/ether-and-erc20-tokens-woocommerce-payment-gateway/vendor/olegabr/web3.php/src/Methods/Eth/GetBlockTransactionCountByHash.php:18
- > PHP Fatal error
Uncaught Error: Class 'Ethereumico\\Epg\\Dependencies\\phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/ether-and-erc20-tokens-woocommerce-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp112r2.php:19
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/ether-and-erc20-tokens-woocommerce-payment-gateway/vendor/woocommerce/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php:10
- > PHP Fatal error
Uncaught Error: Class 'Ethereumico\\Epg\\Dependencies\\phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/ether-and-erc20-tokens-woocommerce-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/prime192v3.php:19
- > PHP Fatal error
Uncaught Error: Class 'Ethereumico\\Epg\\Dependencies\\Web3\\Methods\\EthMethod' not found in wp-content/plugins/ether-and-erc20-tokens-woocommerce-payment-gateway/vendor/olegabr/web3.php/src/Methods/Eth/GetBlockByHash.php:19
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/ether-and-erc20-tokens-woocommerce-payment-gateway/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Ethereumico\\Epg\\Dependencies\\GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/ether-and-erc20-tokens-woocommerce-payment-gateway/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:19
- > PHP Fatal error
Uncaught Error: Class 'Ethereumico\\Epg\\Dependencies\\Web3\\Methods\\EthMethod' not found in wp-content/plugins/ether-and-erc20-tokens-woocommerce-payment-gateway/vendor/olegabr/web3.php/src/Methods/Eth/GetTransactionByBlockNumberAndIndex.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
ether-and-erc20-tokens-woocommerce-payment-gateway/ether-and-erc20-tokens-woocommerce-payment-gateway.php 85% from 13 tests
The main PHP script in "Ether and ERC20 tokens WooCommerce Payment Gateway" version 4.12.9 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.5.1")
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected122,676 lines of code in 867 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 797 | 11,190 | 56,570 | 86,191 |
CSS | 18 | 1,065 | 58 | 10,447 |
JavaScript | 17 | 2,767 | 7,440 | 9,546 |
PO File | 14 | 2,886 | 3,446 | 9,255 |
SVG | 7 | 2 | 5 | 4,991 |
JSON | 6 | 0 | 0 | 1,802 |
XML | 6 | 6 | 3 | 371 |
Markdown | 1 | 22 | 0 | 70 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,029)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 18.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,029.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 69 | |
Interfaces | 39 | |
Traits | 7 | |
Classes | 661 | |
▷ Abstract classes | 222 | 33.59% |
▷ Concrete classes | 439 | 66.41% |
▷ Final classes | 50 | 11.39% |
Methods | 4,243 | |
▷ Static methods | 913 | 21.52% |
▷ Public methods | 3,149 | 74.22% |
▷ Protected methods | 390 | 9.19% |
▷ Private methods | 704 | 16.59% |
Functions | 336 | |
▷ Named functions | 195 | 58.04% |
▷ Anonymous functions | 141 | 41.96% |
Constants | 542 | |
▷ Global constants | 105 | 19.37% |
▷ Class constants | 437 | 80.63% |
▷ Public constants | 426 | 97.48% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
img/ethereum-icon.png | 2.09KB | 1.57KB | ▼ 24.85% |
images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/icon-256x256.png | 8.02KB | 3.85KB | ▼ 52.04% |