Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.86MB] [CPU: ▲7.28ms] Passed 4 tests
An overview of server-side resources used by 多合一搜索自动推送管理插件-支持Baidu/Google/Bing/IndexNow/Yandex/头条
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.34 ▲0.88 | 48.69 ▲7.48 |
Dashboard /wp-admin | 4.19 ▲0.89 | 59.60 ▲7.82 |
Posts /wp-admin/edit.php | 4.25 ▲0.89 | 54.45 ▲9.30 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.83 | 88.72 ▲4.50 |
Media Library /wp-admin/upload.php | 4.05 ▲0.83 | 50.51 ▲15.87 |
Server storage [IO: ▲2.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 57 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_wb_bsl_stats |
wp_wb_bsl_day |
wp_wb_bsl_log |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
bsl_version |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for 多合一搜索自动推送管理插件-支持Baidu/Google/Bing/IndexNow/Yandex/头条
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲123 | 13.32 ▼1.27 | 2.17 ▲0.47 | 44.35 ▲0.14 |
Dashboard /wp-admin | 2,235 ▲44 | 5.84 ▲0.93 | 111.22 ▼6.23 | 95.21 ▲54.14 |
Posts /wp-admin/edit.php | 2,130 ▲44 | 2.00 ▼0.06 | 34.41 ▼2.10 | 42.22 ▲5.52 |
Add New Post /wp-admin/post-new.php | 1,706 ▲175 | 22.24 ▲4.04 | 738.40 ▲109.03 | 54.12 ▲0.50 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.18 ▼0.04 | 96.46 ▼9.98 | 85.18 ▲41.76 |
数据统计 /wp-admin/admin.php?page=wb_bsl#/stats-base | 1,285 | 8.04 | 147.09 | 167.64 |
推送日志 /wp-admin/admin.php?page=wb_bsl#/log | 1,495 | 6.30 | 80.65 | 120.97 |
插件设置 /wp-admin/admin.php?page=wb_bsl#/setting | 1,525 | 6.24 | 74.83 | 93.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_wb_bsl_stats
- wp_wb_bsl_day
- wp_wb_bsl_log
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- bsl_version
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WB_BSL_Base' not found in wp-content/plugins/baidu-submit-link/classes/google.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'WB_BSL_Base' not found in wp-content/plugins/baidu-submit-link/classes/baidu.class.php:9
- > PHP Fatal error
Uncaught Error: Class 'WB_BSL_Base' not found in wp-content/plugins/baidu-submit-link/classes/app.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'WB_BSL_Base' not found in wp-content/plugins/baidu-submit-link/classes/yandex.class.php:9
- > PHP Fatal error
Uncaught Error: Class 'WB_BSL_Base' not found in wp-content/plugins/baidu-submit-link/classes/bing.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'WB_BSL_Base' not found in wp-content/plugins/baidu-submit-link/classes/daily.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'WB_BSL_Base' not found in wp-content/plugins/baidu-submit-link/classes/site.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'WB_BSL_Base' not found in wp-content/plugins/baidu-submit-link/classes/indexnow.class.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: yandex, bing, indexnow, baidu, google...
baidu-submit-link/index.php 77% from 13 tests
Analyzing the main PHP file in "多合一搜索自动推送管理插件-支持Baidu/Google/Bing/IndexNow/Yandex/头条" version 4.2.7
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("baidu-submit-link.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 405 characters long)
- Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "7.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin5,176 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,291 | 424 | 5,105 |
JavaScript | 23 | 0 | 32 | 66 |
SVG | 1 | 0 | 0 | 3 |
CSS | 2 | 0 | 3 | 2 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 218)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 68.14 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 345.00 |
Average method complexity | 7.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 218.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 139 | 93.92% |
▷ Public methods | 148 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
3 compressed PNG files occupy 0.08MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/bsl.png | 28.97KB | 28.95KB | 0.06% |
tpl/assets/img/bsl.abf3bf80.png | 28.97KB | 28.95KB | 0.06% |
tpl/assets/img/introduction_hd.88def992.png | 22.46KB | 22.46KB | 0.00% |