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.03MB] [CPU: ▼288.35ms] Passed 4 tests
A check of server-side resources used by ABA PayWay Payment Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 56.40 ▲4.50 |
Dashboard /wp-admin | 3.49 ▲0.09 | 39.76 ▲7.94 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 44.36 ▲4.77 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 107.55 ▼1,169.66 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 38.47 ▲6.99 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for ABA PayWay Payment Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,181 ▼573 | 15.72 ▼0.07 | 0.41 ▼6.12 | 32.96 ▲30.26 |
Dashboard /wp-admin | 2,888 ▲34 | 6.17 ▲0.01 | 121.25 ▼13.68 | 154.21 ▼3.69 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.23 ▼0.01 | 60.73 ▼0.50 | 133.32 ▼8.54 |
Add New Post /wp-admin/post-new.php | 1,633 ▼119 | 21.99 ▲1.00 | 409.49 ▼41.05 | 149.36 ▼7.95 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.56 ▲0.03 | 137.88 ▼6.40 | 194.13 ▲4.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/aba-payway-woocommerce-payment-gateway/aba-payway-for-woocommerce.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/aba-payway-woocommerce-payment-gateway/PayWayApiCheckout.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: online payment gateway, e-commerce
aba-payway-woocommerce-payment-gateway/aba-payway-for-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "ABA PayWay Payment Gateway for WooCommerce" version 2.0.0
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("aba-payway-woocommerce-payment-gateway.php" instead of "aba-payway-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,393 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 132 | 56 | 706 |
PHP | 2 | 79 | 50 | 638 |
SVG | 2 | 0 | 0 | 37 |
CSS | 1 | 3 | 3 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 16 | 76.19% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/white/1x/credit_debit.png | 2.84KB | 1.81KB | ▼ 36.29% |
images/color/2x/credit_debit_old.png | 7.89KB | 2.92KB | ▼ 63.00% |
images/white/3x/aba.png | 7.36KB | 2.35KB | ▼ 68.03% |
images/color/1x/master.png | 3.71KB | 0.95KB | ▼ 74.31% |
images/color/3x/credit_debit_old.png | 10.78KB | 4.11KB | ▼ 61.88% |