Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.65ms] Passed 4 tests
Analyzing server-side resources used by ABA PayWay Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 31.64 ▼8.29 |
Dashboard /wp-admin | 3.35 ▲0.04 | 57.50 ▼3.81 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 54.62 ▲6.92 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.53 ▲3.67 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.48 ▲5.85 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for ABA PayWay Payment Gateway for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,465 ▼297 | 14.64 ▲0.29 | 0.75 ▼0.79 | 13.15 ▼26.45 |
Dashboard /wp-admin | 2,192 ▲18 | 5.62 ▲0.08 | 97.30 ▼8.93 | 43.18 ▲1.65 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.96 ▲0.02 | 35.98 ▼3.68 | 31.60 ▼4.92 |
Add New Post /wp-admin/post-new.php | 1,525 ▼1 | 22.06 ▼1.41 | 682.62 ▲55.97 | 70.68 ▲15.99 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.22 ▲0.00 | 103.92 ▲8.26 | 48.80 ▲7.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/aba-payway-woocommerce-payment-gateway/aba-payway-for-woocommerce.php
- 1× PHP files trigger server errors 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 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: online payment gateway, e-commerce
aba-payway-woocommerce-payment-gateway/aba-payway-for-woocommerce.php 92% from 13 tests
The principal PHP file in "ABA PayWay Payment Gateway for WooCommerce" v. 2.1.3 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 ("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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,609 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 135 | 43 | 714 |
PHP | 2 | 90 | 56 | 703 |
SVG | 8 | 0 | 0 | 180 |
CSS | 1 | 3 | 3 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.50 |
▷ 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 | 24 | |
▷ Static methods | 20 | 83.33% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
55 PNG files occupy 0.23MB 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/alipay.png | 0.99KB | 0.57KB | ▼ 42.19% |
images/color/1x/cards.png | 1.61KB | 0.71KB | ▼ 56.09% |
images/color/3x/wechat.png | 2.35KB | 1.24KB | ▼ 47.20% |
images/color/1x/alipay.png | 0.99KB | 0.57KB | ▼ 42.19% |
images/color/3x/aba.png | 7.36KB | 2.35KB | ▼ 68.03% |