Benchmarks
Plugin footprint 83% 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: ▲0.00MB] [CPU: ▼7.40ms] Passed 4 tests
An overview of server-side resources used by emerchantpay Gateway Module for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.99 ▲3.32 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.56 ▼2.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.43 ▼8.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.61 ▼13.72 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.44 ▼4.53 |
Server storage [IO: ▲2.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 440 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for emerchantpay Gateway Module for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.16 ▼0.19 | 1.88 ▲0.03 | 42.77 ▲0.23 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▲0.03 | 90.30 ▲4.89 | 41.64 ▼0.08 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▼0.00 | 38.26 ▲0.31 | 35.12 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.92 ▼0.62 | 641.66 ▼60.03 | 51.82 ▲1.81 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.16 ▼0.06 | 92.73 ▼9.51 | 40.66 ▼6.45 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/emerchantpay-payment-page-for-woocommerce/templates/admin/order/totals/common.php
- 207× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Genesis\\API\\Request\\Base\\Financial\\Cards\\CreditCard' not found in wp-content/plugins/emerchantpay-payment-page-for-woocommerce/libraries/genesis/src/Genesis/API/Request/Financial/Cards/Authorize.php:54
- > PHP Fatal error
Uncaught Error: Class 'Genesis\\API\\Request\\Base\onFinancial\\Consumers\\BaseRequest' not found in wp-content/plugins/emerchantpay-payment-page-for-woocommerce/libraries/genesis/src/Genesis/API/Request/NonFinancial/Consumers/Enable.php:41
- > PHP Fatal error
Uncaught Error: Class 'Genesis\\API\\Request\\Base\onFinancial\\KYC\\BaseRequest' not found in wp-content/plugins/emerchantpay-payment-page-for-woocommerce/libraries/genesis/src/Genesis/API/Request/NonFinancial/KYC/Call/Update.php:40
- > PHP Fatal error
Uncaught Error: Class 'Genesis\\Exceptions\\Exception' not found in wp-content/plugins/emerchantpay-payment-page-for-woocommerce/libraries/genesis/src/Genesis/Exceptions/EnvironmentNotSet.php:32
- > PHP Fatal error
Uncaught Error: Class 'Genesis\\API\\Request\\Base\\Financial\\SouthAmericanPayment' not found in wp-content/plugins/emerchantpay-payment-page-for-woocommerce/libraries/genesis/src/Genesis/API/Request/Financial/CashPayments/Surtimax.php:35
- > PHP Fatal error
Uncaught Error: Class 'Genesis\\API\\Request' not found in wp-content/plugins/emerchantpay-payment-page-for-woocommerce/libraries/genesis/src/Genesis/API/Request/WPF/Create.php:75
- > PHP Fatal error
Uncaught Error: Class 'Genesis\\API\\Request\\Base\\Financial' not found in wp-content/plugins/emerchantpay-payment-page-for-woocommerce/libraries/genesis/src/Genesis/API/Request/Financial/Wallets/PayPal.php:52
- > PHP Fatal error
Uncaught Error: Class 'Genesis\\API\\Request\\Base\onFinancial\\Fx\\BaseRequest' not found in wp-content/plugins/emerchantpay-payment-page-for-woocommerce/libraries/genesis/src/Genesis/API/Request/NonFinancial/Fx/GetRates.php:39
- > PHP Fatal error
Uncaught Error: Class 'Genesis\\API\\Request\\Base\\Financial\\SouthAmericanPayment' not found in wp-content/plugins/emerchantpay-payment-page-for-woocommerce/libraries/genesis/src/Genesis/API/Request/Financial/OnlineBankingPayments/Webpay.php:32
- > PHP Fatal error
Uncaught Error: Class 'Genesis\\API\\Request\\Base\onFinancial\\TokenizationApi\\BaseRequest' not found in wp-content/plugins/emerchantpay-payment-page-for-woocommerce/libraries/genesis/src/Genesis/API/Request/NonFinancial/TokenizationApi/GetCard.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: payments, genesis, mastercard, visa, payment processing...
emerchantpay-payment-page-for-woocommerce/index.php 85% from 13 tests
The principal PHP file in "emerchantpay Gateway Module for WooCommerce" v. 1.14.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("emerchantpay-payment-page-for-woocommerce.php" instead of "index.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin29,281 lines of code in 432 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 411 | 6,114 | 28,151 | 26,650 |
PO File | 2 | 508 | 0 | 1,218 |
JavaScript | 12 | 134 | 288 | 1,131 |
Markdown | 1 | 34 | 0 | 177 |
CSS | 6 | 5 | 12 | 105 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 231.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 88.00 |
Code structure | ||
---|---|---|
Namespaces | 110 | |
Interfaces | 2 | |
Traits | 85 | |
Classes | 317 | |
▷ Abstract classes | 19 | 5.99% |
▷ Concrete classes | 298 | 94.01% |
▷ Final classes | 11 | 3.69% |
Methods | 1,711 | |
▷ Static methods | 301 | 17.59% |
▷ Public methods | 946 | 55.29% |
▷ Protected methods | 713 | 41.67% |
▷ Private methods | 52 | 3.04% |
Functions | 35 | |
▷ Named functions | 6 | 17.14% |
▷ Anonymous functions | 29 | 82.86% |
Constants | 1,171 | |
▷ Global constants | 1 | 0.09% |
▷ Class constants | 1,170 | 99.91% |
▷ Public constants | 1,170 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/emerchantpay_logo.png | 1.82KB | 0.95KB | ▼ 47.80% |
assets/images/emerchantpay_direct.png | 1.00KB | 1.06KB | 0.00% |
assets/images/logo.png | 0.25KB | 0.26KB | 0.00% |
assets/images/emerchantpay_checkout.png | 1.07KB | 1.14KB | 0.00% |