Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.18ms] Passed 4 tests
This is a short check of server-side resources used by AlphaPay Payment Plugin for WeChat Pay, Alipay, UnionPay, and Credit Card All-in-One Payment(微信支付,支付宝,银联,信用卡支付)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 36.96 ▼4.85 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.97 ▼16.40 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.30 ▲4.89 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.43 ▼13.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.02 ▲2.11 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
AlphaPay Payment Plugin for WeChat Pay, Alipay, UnionPay, and Credit Card All-in-One Payment(微信支付,支付宝,银联,信用卡支付): an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.13 | 1.78 ▼0.07 | 44.79 ▼5.55 |
Dashboard /wp-admin | 2,206 ▲21 | 5.86 ▲0.00 | 104.06 ▼13.25 | 38.25 ▼4.28 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.96 ▼0.08 | 39.65 ▲2.06 | 34.56 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.67 ▲0.21 | 672.27 ▼20.66 | 61.41 ▲5.04 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.21 ▲0.01 | 108.34 ▲10.16 | 45.03 ▼1.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined index: data in wp-content/plugins/alpha-pay-wechat-pay-alipay-for-woocommerce/includes/qrcode.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% 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
9 plugin tags: credit card, cad, wechat pay, unionpay, cny...
alpha-pay-wechat-pay-alipay-for-woocommerce/woocommerce-gateway-alphapay.php 69% from 13 tests
"AlphaPay Payment Plugin for WeChat Pay, Alipay, UnionPay, and Credit Card All-in-One Payment(微信支付,支付宝,银联,信用卡支付)" version 1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Plugin Name: A shorter plugin name is better (currently 149 characters long instead of max. 70)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("alpha-pay-wechat-pay-alipay-for-woocommerce.php" instead of "woocommerce-gateway-alphapay.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)
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
Good job! No executable or dangerous file extensions detected3,827 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 1,124 | 673 | 3,822 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 30.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 208 | |
▷ Static methods | 75 | 36.06% |
▷ Public methods | 206 | 99.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.96% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 34 | |
▷ Global constants | 34 | 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
8 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wechat-logo.png | 3.40KB | 2.06KB | ▼ 39.58% |
assets/images/wechat-scan.png | 54.89KB | 18.54KB | ▼ 66.22% |
assets/images/wechat-scan-note.png | 2.78KB | 1.08KB | ▼ 61.28% |
assets/images/unionpay-logo.png | 3.94KB | 2.19KB | ▼ 44.37% |
assets/images/credit-card-logo.png | 4.53KB | 2.39KB | ▼ 47.32% |