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: ▼5.76ms] Passed 4 tests
A check of server-side resources used by 自动提交百度收录插件
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.39 ▼1.70 |
Dashboard /wp-admin | 3.38 ▲0.04 | 46.91 ▼12.84 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 48.15 ▼2.92 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.18 ▼4.83 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 33.90 ▼2.46 |
站长帮 - 自动提交百度收录设置 /wp-admin/options-general.php?page=zhanzhangb_baidu_submit | 3.27 | 30.74 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
zhanzhangb_baidu_submit_number |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
自动提交百度收录插件: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲58 | 14.72 ▲0.37 | 1.64 ▲0.03 | 40.51 ▼4.04 |
Dashboard /wp-admin | 2,202 ▲28 | 5.64 ▲0.00 | 91.72 ▼5.91 | 46.56 ▲6.16 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▼0.01 | 40.78 ▼0.85 | 41.66 ▲4.26 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.14 ▲0.05 | 587.67 ▼61.16 | 52.91 ▲0.77 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▼0.04 | 96.18 ▼0.93 | 46.17 ▲0.38 |
站长帮 - 自动提交百度收录设置 /wp-admin/options-general.php?page=zhanzhangb_baidu_submit | 834 | 2.15 | 25.43 | 105.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: baidu, seo
zhanzhangb-baidu-submit/zhanzhangb-baidu-submit.php Passed 13 tests
The main file in "自动提交百度收录插件" v. 1.8.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
121 characters long description:
发布/更新文章或页面时,实时推送URL至百度搜索资源平台,支持普通收录与快速收录提交。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin241 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 1 | 21 | 241 |
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.19 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 68.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 31.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin