Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.90ms] Passed 4 tests
Server-side resources used by WeChat Payments for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.06 ▼0.53 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.31 ▼3.74 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.67 ▲3.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.06 ▼8.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.33 ▲1.65 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 448 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WeChat Payments for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 14.41 ▲0.12 | 1.90 ▼0.17 | 40.82 ▼2.09 |
Dashboard /wp-admin | 2,206 ▲21 | 5.86 ▲1.03 | 112.92 ▼5.14 | 41.52 ▼0.05 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.01 | 39.59 ▲2.08 | 36.56 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.55 ▼5.62 | 674.06 ▲25.96 | 63.91 ▲16.59 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.24 ▼0.08 | 93.55 ▼4.03 | 39.83 ▼2.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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
Good news, no errors were detected
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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wechat-payment-for-woo/lib/phpqrcode/index.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WxPayNotifyReply' not found in wp-content/plugins/wechat-payment-for-woo/lib/WxPay.Notify.php:8
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
- Screenshots: Add a description for screenshot #6 in wechat-payment-for-woo/assets to your readme.txt
wechat-payment-for-woo/weChatPay.php 85% from 13 tests
This is the main PHP file of "WeChat Payments for WooCommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and 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 ("wechat-payment-for-woo.php" instead of "weChatPay.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wechat-payment-for-woo/lib/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,854 | 3,767 | 8,332 |
PO File | 1 | 31 | 0 | 103 |
JavaScript | 2 | 8 | 1 | 49 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 21.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 55 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 755 | |
▷ Static methods | 138 | 18.28% |
▷ Public methods | 645 | 85.43% |
▷ Protected methods | 97 | 12.85% |
▷ Private methods | 13 | 1.72% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 97 | |
▷ Global constants | 97 | 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
47 compressed PNG files occupy 0.53MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/phpqrcode/cache/frame_28.png | 0.23KB | 0.21KB | ▼ 5.98% |
lib/phpqrcode/cache/frame_23.png | 0.21KB | 0.20KB | ▼ 8.18% |
lib/phpqrcode/cache/frame_22.png | 0.22KB | 0.21KB | ▼ 6.19% |
lib/phpqrcode/cache/frame_9.png | 0.19KB | 0.19KB | ▼ 2.01% |
lib/phpqrcode/cache/frame_39.png | 0.26KB | 0.23KB | ▼ 9.85% |