Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼317.38ms] Passed 4 tests
This is a short check of server-side resources used by Addon for Eway and WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 40.82 ▲10.84 |
Dashboard /wp-admin | 3.06 ▲0.00 | 43.74 ▲1.46 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 40.16 ▼6.45 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 92.93 ▼1,262.05 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 35.40 ▼2.48 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 151 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Addon for Eway and WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,650 ▲69 | 16.18 ▲0.61 | 7.30 ▼0.29 | 49.11 ▲2.47 |
Dashboard /wp-admin | 2,931 ▲78 | 6.12 ▲0.30 | 135.40 ▼8.27 | 102.61 ▲9.61 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.69 ▼0.12 | 64.79 ▲3.66 | 96.51 ▲15.48 |
Add New Post /wp-admin/post-new.php | 1,577 ▼276 | 18.51 ▼0.68 | 368.95 ▼6.97 | 109.56 ▼1.63 |
Media Library /wp-admin/upload.php | 1,775 ▼0 | 5.02 ▲0.02 | 152.42 ▼4.87 | 118.88 ▲3.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 72× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Eway\\Rapid\\Model\\AbstractModel' not found in wp-content/plugins/woo-eway-addon/src/Rapid/Model/ShippingAddress.php:25
- > PHP Fatal error
Uncaught Error: Class 'Eway\\Rapid\\Model\\AbstractModel' not found in wp-content/plugins/woo-eway-addon/src/Rapid/Model/ProcessingDetails.php:12
- > PHP Fatal error
Uncaught Error: Class 'Eway\\Rapid\\Model\\Response\\AbstractResponse' not found in wp-content/plugins/woo-eway-addon/vendor/eway/eway-rapid-php/src/Rapid/Model/Response/QueryCustomerResponse.php:14
- > PHP Fatal error
Uncaught Error: Class 'Eway\\Rapid\\Enum\\AbstractEnum' not found in wp-content/plugins/woo-eway-addon/vendor/eway/eway-rapid-php/src/Rapid/Enum/TransactionType.php:10
- > PHP Fatal error
Uncaught Error: Class 'Eway\\Rapid\\Enum\\AbstractEnum' not found in wp-content/plugins/woo-eway-addon/src/Rapid/Enum/TransactionType.php:10
- > PHP Fatal error
Uncaught Error: Class 'Eway\\Rapid\\Enum\\AbstractEnum' not found in wp-content/plugins/woo-eway-addon/src/Rapid/Enum/FraudAction.php:8
- > PHP Fatal error
Uncaught Error: Class 'Eway\\Rapid\\Model\\AbstractModel' not found in wp-content/plugins/woo-eway-addon/vendor/eway/eway-rapid-php/src/Rapid/Model/SettlementSearch.php:22
- > PHP Fatal error
Uncaught Error: Class 'Eway\\Rapid\\Model\\AbstractModel' not found in wp-content/plugins/woo-eway-addon/vendor/eway/eway-rapid-php/src/Rapid/Model/Item.php:16
- > PHP Fatal error
Uncaught Error: Class 'Eway\\Rapid\\Model\\Response\\AbstractResponse' not found in wp-content/plugins/woo-eway-addon/vendor/eway/eway-rapid-php/src/Rapid/Model/Response/QueryTransactionResponse.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Eway\\Rapid\\Contract\\Http\\ResponseInterface' not found in wp-content/plugins/woo-eway-addon/src/Rapid/Service/Http/Response.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Requires at least: Invalid version format
- Tags: You are using too many tags: 23 tag instead of maximum 10
woo-eway-addon/woo-eway-addon.php 92% from 13 tests
"Addon for Eway and WooCommerce" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin4,196 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 989 | 2,918 | 3,677 |
INI | 1 | 0 | 0 | 245 |
Markdown | 3 | 60 | 0 | 127 |
JSON | 3 | 0 | 0 | 106 |
JavaScript | 1 | 2 | 0 | 41 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 3.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 8 | |
Traits | 32 | |
Classes | 88 | |
▷ Abstract classes | 29 | 32.95% |
▷ Concrete classes | 59 | 67.05% |
▷ Final classes | 0 | 0.00% |
Methods | 376 | |
▷ Static methods | 29 | 7.71% |
▷ Public methods | 302 | 80.32% |
▷ Protected methods | 8 | 2.13% |
▷ Private methods | 66 | 17.55% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 147 | |
▷ Global constants | 6 | 4.08% |
▷ Class constants | 141 | 95.92% |
▷ Public constants | 141 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mastercard.png | 2.03KB | 1.48KB | ▼ 26.86% |
images/discover.png | 1.45KB | 1.56KB | 0.00% |
images/dinersclub.png | 1.34KB | 1.53KB | 0.00% |
images/jcb.png | 1.65KB | 1.39KB | ▼ 15.51% |
images/visa.png | 1.44KB | 1.10KB | ▼ 23.51% |