Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.01MB] [CPU: ▼44.44ms] Passed 4 tests
A check of server-side resources used by Login and Pay with Metamask
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▼0.50 | 16.53 ▼28.73 |
Dashboard /wp-admin | 3.01 ▼0.30 | 18.67 ▼38.20 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 21.95 ▼31.91 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 21.27 ▼78.93 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 17.16 ▼20.07 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Login and Pay with Metamask
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.34 ▼0.02 | 1.89 ▼0.22 | 44.53 ▲0.09 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.06 | 84.32 ▼12.14 | 41.12 ▼0.78 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.97 ▼0.05 | 39.08 ▼2.33 | 39.63 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.39 ▲0.27 | 625.45 ▼76.30 | 48.08 ▼7.24 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.17 ▲0.06 | 98.16 ▼12.50 | 44.89 ▼1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/mine-metamask/inc/Woocommerce/Payment.php+25
Undefined index: request
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 7× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant MineMetamask_PATH - assumed 'MineMetamask_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mine-metamask/inc/Login.php on line 3
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/mine-metamask/vendor/symfony/polyfill-mbstring/bootstrap80.php on line 15
- > PHP Warning
require_once(MineMetamask_PATH/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/mine-metamask/inc/Login.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function gmp_init() in wp-content/plugins/mine-metamask/vendor/wmh/php-ecrecover/ecrecover_helper.php:25
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/mine-metamask/inc/Woocommerce/WC_Token_Gateway.php:4
- > PHP Fatal error
require_once(): Failed opening required 'MineMetamask_PATH/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/mine-metamask/inc/Login.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/mine-metamask/vendor/kornrunner/keccak/test/KeccakTest.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: bsc, login, web3, metamask, woocommerce...
mine-metamask/metamask.php 77% from 13 tests
This is the main PHP file of "Login and Pay with Metamask" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
- Git Repository: There should be no Git repositories present in your plugin
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mine-metamask.php" instead of "metamask.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
There were no executable files found in this plugin6,703 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 776 | 838 | 6,194 |
JSON | 4 | 0 | 0 | 284 |
Markdown | 3 | 36 | 0 | 115 |
YAML | 3 | 13 | 0 | 61 |
XML | 1 | 4 | 0 | 29 |
JavaScript | 5 | 1 | 54 | 18 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 23.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 2 | 10.53% |
Methods | 167 | |
▷ Static methods | 104 | 62.28% |
▷ Public methods | 148 | 88.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 11.38% |
Functions | 86 | |
▷ Named functions | 82 | 95.35% |
▷ Anonymous functions | 4 | 4.65% |
Constants | 16 | |
▷ Global constants | 9 | 56.25% |
▷ Class constants | 7 | 43.75% |
▷ Public constants | 1 | 14.29% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/layer/theme/default/icon-ext.png | 5.77KB | 2.91KB | ▼ 49.62% |
static/layer/theme/default/icon.png | 11.22KB | 4.36KB | ▼ 61.19% |