Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.33ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Eway Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.58 ▲1.47 |
Dashboard /wp-admin | 3.40 ▲0.10 | 50.86 ▼3.16 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 50.28 ▼0.53 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 87.04 ▼3.11 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.95 ▲8.11 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WooCommerce Eway Gateway: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.15 ▼1.12 | 1.95 ▲0.14 | 43.89 ▼0.69 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.05 | 110.08 ▼7.75 | 44.59 ▲1.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 38.39 ▲1.36 | 38.09 ▲3.77 |
Add New Post /wp-admin/post-new.php | 1,519 ▼18 | 23.38 ▲0.42 | 655.00 ▼23.13 | 63.38 ▲9.00 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.13 ▼0.10 | 105.31 ▼7.11 | 42.90 ▼6.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 46× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Eway\\Vendors\\Eway\\Rapid\\Model\\AbstractModel' not found in wp-content/plugins/woocommerce-gateway-eway/vendor/vendor-prefixed/eway/eway-rapid-php/src/Rapid/Model/Response/AbstractResponse.php:19
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Eway\\Vendors\\Eway\\Rapid\\Model\\AbstractModel' not found in wp-content/plugins/woocommerce-gateway-eway/vendor/vendor-prefixed/eway/eway-rapid-php/src/Rapid/Model/ShippingAddress.php:31
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Eway\\Vendors\\Eway\\Rapid\\Model\\AbstractModel' not found in wp-content/plugins/woocommerce-gateway-eway/vendor/vendor-prefixed/eway/eway-rapid-php/src/Rapid/Model/ProcessingDetails.php:18
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Eway\\Vendors\\Eway\\Rapid\\Enum\\AbstractEnum' not found in wp-content/plugins/woocommerce-gateway-eway/vendor/vendor-prefixed/eway/eway-rapid-php/src/Rapid/Enum/ShippingMethod.php:14
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/woocommerce-gateway-eway/includes/class-wc-gateway-eway-blocks-support.php:15
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Eway\\Vendors\\Eway\\Rapid\\Model\\AbstractModel' not found in wp-content/plugins/woocommerce-gateway-eway/vendor/vendor-prefixed/eway/eway-rapid-php/src/Rapid/Model/Verification.php:22
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Eway\\Vendors\\Eway\\Rapid\\Enum\\AbstractEnum' not found in wp-content/plugins/woocommerce-gateway-eway/vendor/vendor-prefixed/eway/eway-rapid-php/src/Rapid/Enum/LogLevel.php:16
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Eway\\Vendors\\Eway\\Rapid\\Model\\Response\\AbstractResponse' not found in wp-content/plugins/woocommerce-gateway-eway/vendor/vendor-prefixed/eway/eway-rapid-php/src/Rapid/Model/Response/QueryAccessCodeResponse.php:41
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Eway\\Vendors\\Eway\\Rapid\\Model\\Response\\AbstractResponse' not found in wp-content/plugins/woocommerce-gateway-eway/vendor/vendor-prefixed/eway/eway-rapid-php/src/Rapid/Model/Response/QueryTransactionResponse.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/woocommerce-gateway-eway/templates/eway-saved-card-list.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: eway, gateway, credit card, woocommerce, automattic...
woocommerce-gateway-eway/woocommerce-gateway-eway.php 85% from 13 tests
The primary PHP file in "WooCommerce Eway Gateway" version 3.7.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
Success! There were no dangerous files found in this plugin5,361 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 94 | 1,242 | 3,811 | 5,257 |
JSON | 1 | 0 | 0 | 65 |
Markdown | 1 | 11 | 0 | 18 |
SVG | 8 | 0 | 0 | 16 |
JavaScript | 3 | 0 | 0 | 4 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 4 | |
Traits | 16 | |
Classes | 58 | |
▷ Abstract classes | 15 | 25.86% |
▷ Concrete classes | 43 | 74.14% |
▷ Final classes | 1 | 2.33% |
Methods | 340 | |
▷ Static methods | 36 | 10.59% |
▷ Public methods | 262 | 77.06% |
▷ Protected methods | 21 | 6.18% |
▷ Private methods | 57 | 16.76% |
Functions | 21 | |
▷ Named functions | 12 | 57.14% |
▷ Anonymous functions | 9 | 42.86% |
Constants | 85 | |
▷ Global constants | 6 | 7.06% |
▷ Class constants | 79 | 92.94% |
▷ Public constants | 79 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin