Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼142.90ms] Passed 4 tests
This is a short check of server-side resources used by WordPress WooCommerce 微信支付插件
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 42.18 ▲20.58 |
Dashboard /wp-admin | 3.06 ▲0.01 | 45.27 ▼0.63 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 44.83 ▲0.30 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 87.99 ▼562.17 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 29.93 ▼9.10 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WordPress WooCommerce 微信支付插件: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.78 ▲0.30 | 7.64 ▼2.07 | 47.97 ▲0.15 |
Dashboard /wp-admin | 2,967 ▲36 | 6.07 ▲0.17 | 135.90 ▼0.46 | 104.84 ▲4.84 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 64.36 ▼2.42 | 90.41 ▲12.86 |
Add New Post /wp-admin/post-new.php | 1,500 ▼115 | 18.61 ▼2.45 | 363.90 ▲98.35 | 107.91 ▲9.01 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▲0.01 | 140.43 ▼8.14 | 111.52 ▼1.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
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
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #8 in wechat-weixin-payments-for-woocommerce/assets to your readme.txt
wechat-weixin-payments-for-woocommerce/init.php 77% from 13 tests
The main PHP script in "WordPress WooCommerce 微信支付插件" version 1.8.5 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("wechat-weixin-payments-for-woocommerce.php" instead of "init.php")
- Description: Keep the plugin description shorter than 140 characters (currently 191 characters long)
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
There were no executable files found in this plugin3,029 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 369 | 1,668 | 2,209 |
JavaScript | 2 | 81 | 128 | 750 |
PO File | 1 | 19 | 19 | 70 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 382 | |
▷ Static methods | 17 | 4.45% |
▷ Public methods | 372 | 97.38% |
▷ Protected methods | 1 | 0.26% |
▷ Private methods | 9 | 2.36% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ep_new_sprites1.png | 2.89KB | 0.20KB | ▼ 92.93% |
images/weixin.png | 3.57KB | 2.02KB | ▼ 43.49% |
images/logo.png | 3.09KB | 2.47KB | ▼ 20.10% |