Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼9.34ms] Passed 4 tests
A check of server-side resources used by 公众号自动回复
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 36.58 ▼0.33 |
Dashboard /wp-admin | 3.52 ▲0.18 | 46.07 ▼13.22 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 46.88 ▼2.00 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 81.81 ▼21.80 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 35.32 ▲2.40 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 38 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_WechatReplay_keywords |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
wechatreplay_tongji |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 公众号自动回复
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲177 | 13.55 ▼0.80 | 8.78 ▲7.08 | 40.54 ▼3.68 |
Dashboard /wp-admin | 2,211 ▲37 | 5.51 ▼0.09 | 83.10 ▼5.01 | 44.81 ▲3.57 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.01 ▲0.02 | 32.78 ▼3.58 | 37.93 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.42 ▲0.33 | 630.05 ▼28.67 | 71.50 ▲17.70 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.16 ▼0.03 | 95.28 ▼1.95 | 42.92 ▼0.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_WechatReplay_keywords
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- wechatreplay_tongji
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/auto-reply-wechat/wechat_replay_book.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/auto-reply-wechat/wechat_replay.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/auto-reply-wechat/wechat_replay_qrcode.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/auto-reply-wechat/wechat_replay_pladd.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/auto-reply-wechat/wechat_replay_add.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/auto-reply-wechat/inc/wx_yzm.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/auto-reply-wechat/wechat_head.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/auto-reply-wechat/wechat_replay_html.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-reply-wechat/inc/wx_share.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/auto-reply-wechat/wechat_replay_share.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
Please fix the following attributes:
- Tags: Please add at least on tag
- Screenshots: Please describe screenshot #1 in auto-reply-wechat/assets to your readme.txt
auto-reply-wechat/wechat_replay.php 85% from 13 tests
The principal PHP file in "公众号自动回复" v. 0.2.7 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 186 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auto-reply-wechat.php" instead of "wechat_replay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,776 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 233 | 77 | 2,872 |
CSS | 1 | 71 | 1 | 843 |
JavaScript | 2 | 35 | 0 | 61 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 28.57% |
Functions | 25 | |
▷ Named functions | 25 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.46MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/wzt_chahao.png | 1.52KB | 0.59KB | ▼ 60.98% |
image/wztwangzhanshili.png | 60.50KB | 28.39KB | ▼ 53.07% |
image/logo.png | 59.53KB | 19.99KB | ▼ 66.41% |
image/weixinimg.png | 13.30KB | 5.37KB | ▼ 59.62% |
image/wzbbx.png | 81.06KB | 28.41KB | ▼ 64.95% |