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.06MB] [CPU: ▼7.09ms] Passed 4 tests
A check of server-side resources used by 微信群发助手(WeChat Helper)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.26 ▲1.51 |
Dashboard /wp-admin | 3.38 ▲0.03 | 45.98 ▼12.03 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.22 ▼1.93 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.08 ▼13.07 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.05 ▼1.33 |
手动群发 /wp-admin/admin.php?page=weixin-helper&tag=hand | 3.24 | 28.91 |
General Settings /wp-admin/admin.php?page=weixin-helper | 3.24 | 29.77 |
群发记录 /wp-admin/admin.php?page=weixin-helper-log | 3.24 | 30.06 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by 微信群发助手(WeChat Helper)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.36 ▼1.28 | 1.57 ▼0.18 | 40.35 ▼8.57 |
Dashboard /wp-admin | 2,233 ▲45 | 4.88 ▼1.03 | 95.73 ▼10.67 | 79.38 ▲37.35 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.01 ▲0.01 | 39.06 ▲2.83 | 41.10 ▲5.50 |
Add New Post /wp-admin/post-new.php | 1,550 ▲31 | 18.47 ▼4.91 | 656.14 ▲19.03 | 62.72 ▲12.70 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.23 ▲0.11 | 95.45 ▼2.91 | 75.31 ▲33.05 |
手动群发 /wp-admin/admin.php?page=weixin-helper&tag=hand | 1,142 | 2.19 | 25.95 | 78.78 |
General Settings /wp-admin/admin.php?page=weixin-helper | 1,663 | 2.19 | 25.02 | 76.12 |
群发记录 /wp-admin/admin.php?page=weixin-helper-log | 789 | 2.01 | 27.16 | 31.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+71
Undefined variable: helper
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper&tag=hand
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+343
Undefined variable: type
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper&tag=hand
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+365
Undefined variable: msg
- > GET request to /wp-admin/admin.php?page=weixin-helper&tag=hand
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+361
Undefined variable: content
- > GET request to /wp-admin/admin.php?page=weixin-helper&tag=hand
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+370
Undefined variable: site0
- > GET request to /wp-admin/admin.php?page=weixin-helper&tag=hand
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+370
Undefined variable: material
- > GET request to /wp-admin/admin.php?page=weixin-helper&tag=hand
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+371
Undefined variable: site2
- > GET request to /wp-admin/admin.php?page=weixin-helper&tag=hand
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+372
Undefined variable: site1
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+308
Undefined index: weixin
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+106
Undefined index: item
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+115
Undefined index: nopic
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+117
Undefined index: image
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+121
Undefined index: top
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+130
Undefined index: content
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+135
Undefined index: bottom
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+228
Trying to access array offset on value of type null
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+228
Undefined variable: mp_users
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+178
Undefined index: comment
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+309
Undefined index: weibo
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+310
Undefined index: yixin
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+247
Undefined index: open
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+256
Undefined index: date
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+272
Undefined index: min
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+282
Undefined index: nopost
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+291
Undefined index: post
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+298
Undefined index: send
- > GET request to /wp-admin/admin.php?page=weixin-helper
- > Notice in wp-content/plugins/weixin-helper/weixin-helper.php+303
Undefined index: email
- > GET request to /wp-admin/admin.php?page=weixin-helper-log
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'weixin_helper_log_do_page' not found or invalid function name
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/weixin-helper/weixin-helper.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3 in weixin-helper/assets to your readme.txt
- Plugin Name: Please specify the plugin name on the first line (
=== weixin-helper ===
)
weixin-helper/weixin-helper.php Passed 13 tests
The entry point to "微信群发助手(WeChat Helper)" version 1.0.1 is a PHP file that has certain tags in its header comment area
101 characters long description:
使用微信公众号、微博粉丝服务的[高级群发接口]实现WordPress自动群发给用户
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin660 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 3 | 9 | 424 |
PO File | 2 | 198 | 415 | 236 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/weixin-logo.png | 1.50KB | 0.55KB | ▼ 63.18% |
images/icon_weixin.png | 4.15KB | 1.33KB | ▼ 68.03% |