Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼13.13ms] Passed 4 tests
A check of server-side resources used by YabandPay For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.64 ▼10.07 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.53 ▼8.31 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.18 ▲0.22 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.93 ▼34.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.95 ▲1.76 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- There were 4 files (0.00KB) illegally modified outside of "wp-content/plugins/yabandpay-for-woocommerce/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/yabandpay-for-woocommerce/vendor/persi/yabandpay/src_LAPTOP-GNMEIBN3_11\346\234\210-10-091600-2021_conflict_parent/Account.php"
- (new file) "wp-content/plugins/yabandpay-for-woocommerce/vendor/yabandpayment/api/src_LAPTOP-GNMEIBN3_11\346\234\210-10-092244-2021_conflict_parent/Exception/RequestErrorException.php"
- (new file) "wp-content/plugins/yabandpay-for-woocommerce/vendor/persi/yabandpay/src_LAPTOP-GNMEIBN3_11\346\234\210-10-091600-2021_conflict_parent/Exception/RequestErrorException.php"
- (new file) "wp-content/plugins/yabandpay-for-woocommerce/vendor/yabandpayment/api/src_LAPTOP-GNMEIBN3_11\346\234\210-10-092244-2021_conflict_parent/Api.php"
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for YabandPay For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.48 ▲0.10 | 1.80 ▲0.12 | 42.01 ▼2.41 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲1.03 | 104.73 ▼15.62 | 40.24 ▼1.24 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.01 ▼0.05 | 40.91 ▼8.81 | 44.67 ▲10.48 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 23.06 ▲5.37 | 592.16 ▼64.08 | 52.29 ▼1.54 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.22 ▼0.00 | 101.22 ▲0.56 | 44.59 ▲1.42 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_YabandPay' not found in wp-content/plugins/yabandpay-for-woocommerce/class-wc-yabandpayunionpaycard.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_YabandPay' not found in wp-content/plugins/yabandpay-for-woocommerce/class-wc-yabandpayunionpayquickpass.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_YabandPay' not found in wp-content/plugins/yabandpay-for-woocommerce/class-wc-yabandpayvisa.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_YabandPay' not found in wp-content/plugins/yabandpay-for-woocommerce/class-wc-yabandpayideal.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_YabandPay' not found in wp-content/plugins/yabandpay-for-woocommerce/class-wc-yabandpaywechatpay.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_YabandPay' not found in wp-content/plugins/yabandpay-for-woocommerce/class-wc-yabandpayunionpaywap.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/yabandpay-for-woocommerce/class-wc-yabandpay.php:21
- > PHP Fatal error
Uncaught Error: Class 'WC_YabandPay' not found in wp-content/plugins/yabandpay-for-woocommerce/class-wc-yabandpayklarna.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_YabandPay' not found in wp-content/plugins/yabandpay-for-woocommerce/class-wc-yabandpayalipay.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_YabandPay' not found in wp-content/plugins/yabandpay-for-woocommerce/class-wc-yabandpaybancontact.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== yabandpay-for-woocommerce ===
)
yabandpay-for-woocommerce/YaBandPay.php 77% from 13 tests
This is the main PHP file of "YabandPay For WooCommerce" version 2.31, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yabandpay-for-woocommerce.php" instead of "YaBandPay.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
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 plugin2,796 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 562 | 721 | 2,230 |
JavaScript | 2 | 73 | 128 | 415 |
JSON | 4 | 0 | 0 | 81 |
Markdown | 1 | 34 | 0 | 70 |
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.29 |
Average class complexity | 6.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 1 | 2.33% |
▷ Concrete classes | 42 | 97.67% |
▷ Final classes | 0 | 0.00% |
Methods | 213 | |
▷ Static methods | 49 | 23.00% |
▷ Public methods | 177 | 83.10% |
▷ Protected methods | 28 | 13.15% |
▷ Private methods | 8 | 3.76% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 97 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 97 | 100.00% |
▷ Public constants | 97 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
26 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/yabandpay_unionpayquickpass_zh.png | 3.43KB | 1.84KB | ▼ 46.37% |
images/yabandpay_unionpay_en.png | 3.33KB | 1.73KB | ▼ 48.02% |
images/yabandpay_unionpayquickpass_en.png | 3.43KB | 1.84KB | ▼ 46.37% |
images/yabandpay_klarna_zh.png | 2.34KB | 1.26KB | ▼ 45.93% |
images/yabandpay_sofort_zh.png | 3.19KB | 1.66KB | ▼ 47.93% |