Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.60ms] Passed 4 tests
Server-side resources used by Pay With MetaMask For WooCommerce - Cryptocurrency Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.19 ▼0.78 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.78 ▲0.38 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.00 ▲1.35 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.86 ▼21.62 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.21 ▼0.37 |
MetaMask /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cpmw | 3.06 | 24.01 |
↳ Settings /wp-admin/admin.php?page=cpmw-metamask-settings | 3.06 | 23.62 |
↳ Transaction /wp-admin/admin.php?page=cpmw-metamask | 3.24 | 27.28 |
Server storage [IO: ▲7.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 145 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_cpmw_transaction |
New WordPress options |
---|
CPMW_FREE_VERSION |
widget_theysaidso_widget |
widget_recent-comments |
cpmw-already-rated |
can_compress_scripts |
cpmw_migarte_settings |
widget_recent-posts |
cpmw-installDate |
theysaidso_admin_options |
cpmw-v |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Pay With MetaMask For WooCommerce - Cryptocurrency Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,351 ▲1,590 | 14.61 ▲0.24 | 2.06 ▲0.41 | 38.67 ▼1.95 |
Dashboard /wp-admin | 3,744 ▲1,567 | 6.30 ▲0.70 | 77.03 ▼13.48 | 56.80 ▲10.65 |
Posts /wp-admin/edit.php | 3,644 ▲1,544 | 3.58 ▲1.63 | 45.71 ▲9.79 | 83.29 ▲40.09 |
Add New Post /wp-admin/post-new.php | 7,815 ▲6,289 | 28.00 ▲4.51 | 903.44 ▲222.21 | 70.40 ▲2.20 |
Media Library /wp-admin/upload.php | 2,946 ▲1,546 | 5.98 ▲1.80 | 120.88 ▲27.70 | 66.42 ▲25.84 |
MetaMask /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cpmw | 28 | 0.42 | 0.11 | 3.73 |
↳ Settings /wp-admin/admin.php?page=cpmw-metamask-settings | 28 | 0.42 | 0.07 | 3.80 |
↳ Transaction /wp-admin/admin.php?page=cpmw-metamask | 2,319 | 3.34 | 33.22 | 38.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_cpmw_transaction
- Zombie WordPress options were found after uninstall: 10 options
- CPMW_FREE_VERSION
- db_upgraded
- cpmw_activation_time
- can_compress_scripts
- cpmw_migarte_settings
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- wp_cpmw_transaction_db_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=cpmw-metamask
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'CPMW_TRANSACTION_TABLE' not found
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
The following issues need your attention
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Trait 'CPMW_HELPER' not found in wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/includes/class-rest-api.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/includes/cpmw-list-table.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/admin/table/cpmw-list-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/admin/class.review-notice.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function CPMW\\feedback\\add_action() in wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/admin/feedback/admin-feedback-form.php:18
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/includes/cpmw-list-table.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/admin/table/cpmw-list-table.php on line 3
- > PHP Warning
Use of undefined constant CPMW_URL - assumed 'CPMW_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/admin/feedback/admin-feedback-form.php on line 167
- > PHP Warning
Use of undefined constant CPMW_VERSION - assumed 'CPMW_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/admin/feedback/admin-feedback-form.php on line 167
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/admin/table/cpmw-list-table.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cpmw
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cpmw - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=cpmw-metamask-settings
- > Network (severe)
wp-admin/admin.php?page=cpmw-metamask-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cpmw-metamask
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'querySelector')" "TypeError: Cannot read properties of null (reading 'querySelector')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/cryptocurrency-payments-using-metamask-for-woocommerce/assets/js/cpmw-admin.js?ver=1.4:16:43)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cpmw-metamask
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'querySelector')
Optimizations
Plugin configuration 93% 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
10 plugin tags: crypto, crypto payments, cryptocurrency, web3, payment...
cryptocurrency-payments-using-metamask-for-woocommerce/cryptocurrency-payments-using-metamask-for-woocommerce.php 85% from 13 tests
This is the main PHP file of "Pay With MetaMask For WooCommerce - Cryptocurrency Payment Gateway" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin16,680 lines of code in 120 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 2,171 | 1,132 | 8,629 |
JavaScript | 25 | 349 | 221 | 7,054 |
CSS | 8 | 104 | 35 | 984 |
SVG | 8 | 0 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 21.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 66 | |
▷ Abstract classes | 2 | 3.03% |
▷ Concrete classes | 64 | 96.97% |
▷ Final classes | 1 | 1.56% |
Methods | 268 | |
▷ Static methods | 40 | 14.93% |
▷ Public methods | 255 | 95.15% |
▷ Protected methods | 12 | 4.48% |
▷ Private methods | 1 | 0.37% |
Functions | 31 | |
▷ Named functions | 30 | 96.77% |
▷ Anonymous functions | 1 | 3.23% |
Constants | 20 | |
▷ Global constants | 6 | 30.00% |
▷ Class constants | 14 | 70.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pro-features.png | 40.66KB | 40.32KB | ▼ 0.84% |
assets/images/icon-256x256.png | 9.55KB | 10.00KB | 0.00% |
assets/images/default-logo.png | 0.59KB | 0.53KB | ▼ 9.44% |
assets/images/wallets-promotion.png | 3.83KB | 3.82KB | 0.28% |
assets/images/metamask-pay.png | 6.37KB | 6.76KB | 0.00% |