Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.35ms] Passed 4 tests
Server-side resources used by Payment gateway for WooCommerce - Woo WeChatPay
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.23 ▲4.01 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.51 ▼9.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.34 ▲0.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.44 ▼25.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 31.90 ▲1.99 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
woo_wechatpay_plugin_version |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payment gateway for WooCommerce - Woo WeChatPay
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 14.81 ▲0.14 | 2.08 ▲0.09 | 43.92 ▲6.13 |
Dashboard /wp-admin | 2,203 ▲12 | 5.86 ▲1.02 | 99.63 ▼1.42 | 41.91 ▲4.49 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.04 | 33.44 ▼3.06 | 36.37 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,533 ▲16 | 23.27 ▲5.67 | 665.89 ▲17.05 | 61.38 ▲11.54 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.15 ▼0.06 | 94.95 ▼6.27 | 43.96 ▲1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: weixin, wechat, wechatpay, payments, wechat payments
woo-wechatpay/woo-wechatpay.php Passed 13 tests
"Payment gateway for WooCommerce - Woo WeChatPay" version 1.3.15's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
38 characters long description:
Integrate Woocommerce with WeChat Pay.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected4,208 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 456 | 104 | 1,731 |
SVG | 1 | 0 | 4 | 1,100 |
JavaScript | 8 | 145 | 43 | 721 |
Markdown | 1 | 131 | 0 | 326 |
PO File | 1 | 76 | 96 | 243 |
CSS | 4 | 16 | 0 | 87 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 78.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 5 | 6.76% |
▷ Public methods | 59 | 79.73% |
▷ Protected methods | 15 | 20.27% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/phone-bg.png | 21.40KB | 20.35KB | ▼ 4.88% |
images/wechatpay-logo.png | 10.23KB | 5.53KB | ▼ 45.99% |
images/browser-qr-footer.png | 7.00KB | 1.96KB | ▼ 72.05% |
images/qr-placeholder.png | 3.30KB | 1.17KB | ▼ 64.69% |