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.13MB] [CPU: ▼8.08ms] Passed 4 tests
An overview of server-side resources used by WP Weixin Pay
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 40.79 ▲0.31 |
Dashboard /wp-admin | 3.45 ▲0.10 | 47.60 ▼7.50 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 42.27 ▼4.34 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.50 ▼20.78 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.47 ▲7.61 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
wp_weixin_pay_plugin_version |
Browser metrics Passed 4 tests
WP Weixin Pay: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.29 ▼1.10 | 1.92 ▲0.22 | 47.02 ▲6.09 |
Dashboard /wp-admin | 2,203 ▲18 | 4.84 ▼1.01 | 111.18 ▲8.59 | 42.87 ▼0.77 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.96 ▼0.03 | 35.74 ▼5.16 | 32.46 ▼5.44 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 23.42 ▲0.40 | 716.35 ▲95.99 | 57.56 ▲6.01 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.25 ▲0.04 | 108.57 ▲10.31 | 45.97 ▲4.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- wp_weixin_pay_plugin_version
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: money transfer, wechat, wechatpay, wechat payments, payments...
wp-weixin-pay/wp-weixin-pay.php Passed 13 tests
The main PHP file in "WP Weixin Pay" ver. 1.3.15 adds more information about the plugin and also serves as the entry point for this plugin
43 characters long description:
Simple WeChat Pay integration for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,526 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 209 | 42 | 893 |
JavaScript | 4 | 72 | 4 | 278 |
CSS | 2 | 21 | 0 | 171 |
Markdown | 1 | 55 | 0 | 134 |
PO File | 1 | 17 | 17 | 50 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 108.00 |
▷ Minimum class complexity | 108.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 30 | 81.08% |
▷ Protected methods | 7 | 18.92% |
▷ 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
No PNG files were detected