Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼34.19ms] Passed 4 tests
Analyzing server-side resources used by Push Message To WeChat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.71 ▼3.64 |
Dashboard /wp-admin | 3.04 ▼0.26 | 23.76 ▼25.91 |
Posts /wp-admin/edit.php | 3.05 ▼0.31 | 25.46 ▼28.81 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.84 | 24.41 ▼71.53 |
Media Library /wp-admin/upload.php | 3.05 ▼0.18 | 23.26 ▼10.51 |
Push To WeChat /wp-admin/options-general.php?page=Push_To_WeChat | 3.05 | 24.57 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
PushMessageToWeChat |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Push Message To WeChat
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.10 ▼0.46 | 1.57 ▼0.13 | 39.38 ▼1.87 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▲0.05 | 89.01 ▼1.99 | 37.90 ▼2.25 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.00 ▼0.01 | 38.44 ▼1.22 | 52.42 ▲15.72 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.25 ▼0.39 | 686.57 ▼9.08 | 55.30 ▼3.24 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.29 ▲0.10 | 102.37 ▼2.53 | 45.60 ▲0.17 |
Push To WeChat /wp-admin/options-general.php?page=Push_To_WeChat | 856 | 1.99 | 23.15 | 73.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=Push_To_WeChat
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/push-message-to-wechat/push-message-to-wechat.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
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png)
push-message-to-wechat/push-message-to-wechat.php Passed 13 tests
"Push Message To WeChat" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
基于PushBear服务提供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
Success! There were no dangerous files found in this plugin402 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 40 | 350 |
Markdown | 1 | 34 | 0 | 52 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.30MB with 0.18MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
push-wordpress-to-wechat.png | 13.79KB | 7.27KB | ▼ 47.29% |
screenshot-2.png | 42.27KB | 12.90KB | ▼ 69.49% |
screenshot-1.png | 248.93KB | 78.49KB | ▼ 68.47% |