Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/laobuluo-baidu-submit/index.php+381
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▼1.79MB] [CPU: ▼53.11ms] Passed 4 tests
A check of server-side resources used by 老部落百度快速提交插件
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 5.08 ▼34.35 |
Dashboard /wp-admin | 2.21 ▼1.09 | 6.61 ▼45.74 |
Posts /wp-admin/edit.php | 2.21 ▼1.14 | 6.22 ▼42.90 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.67 | 6.57 ▼89.43 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 5.57 ▼29.18 |
百度提交插件 /wp-admin/admin.php?page=laobuluo-baidu-submit/setting | 2.21 | 6.45 |
批量提交 /wp-admin/admin.php?page=laobuluo-baidu-submit/manually_submit | 2.21 | 7.05 |
Server storage [IO: ▲1.95MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
laobuluo_bs_options |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by 老部落百度快速提交插件
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲56 | 14.64 ▲0.00 | 1.71 ▼0.26 | 41.87 ▼5.37 |
Dashboard /wp-admin | 2,233 ▲56 | 5.89 ▼0.02 | 100.98 ▼0.00 | 46.91 ▲2.50 |
Posts /wp-admin/edit.php | 2,119 ▲27 | 2.02 ▲0.00 | 40.39 ▼1.53 | 43.17 ▲7.72 |
Add New Post /wp-admin/post-new.php | 1,564 ▲41 | 18.36 ▼4.66 | 637.37 ▼20.52 | 50.67 ▼8.59 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.21 ▲0.01 | 96.02 ▼3.09 | 48.61 ▲3.13 |
百度提交插件 /wp-admin/admin.php?page=laobuluo-baidu-submit/setting | 1,102 | 1.81 | 30.93 | 121.90 |
批量提交 /wp-admin/admin.php?page=laobuluo-baidu-submit/manually_submit | 1,033 | 1.80 | 30.00 | 55.83 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/laobuluo-baidu-submit/index.php+381
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=laobuluo-baidu-submit/manually_submit
- > Deprecated in wp-content/plugins/laobuluo-baidu-submit/index.php+381
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=laobuluo-baidu-submit/manually_submit
- > Warning in wp-content/plugins/laobuluo-baidu-submit/api.php+153
file_get_contents(wp-content/plugins/laobuluo-baidu-submit/tmp/cache_check): failed to open stream: No such file or directory
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=laobuluo-baidu-submit/manually_submit
- > Notice in wp-content/plugins/laobuluo-baidu-submit/index.php+321
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=laobuluo-baidu-submit/manually_submit
- > Warning in wp-content/plugins/laobuluo-baidu-submit/api.php+153
file_get_contents(wp-content/plugins/laobuluo-baidu-submit/tmp/cache_remain): failed to open stream: No such file or directory
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/laobuluo-baidu-submit/manually_submit.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/laobuluo-baidu-submit/setting_page.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please add at least on tag
laobuluo-baidu-submit/index.php 85% from 13 tests
The primary PHP file in "老部落百度快速提交插件" version 2.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("laobuluo-baidu-submit.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected983 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 104 | 52 | 773 |
SVG | 1 | 356 | 3 | 195 |
JavaScript | 6 | 0 | 5 | 9 |
CSS | 6 | 0 | 4 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.17% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.39MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
layui/css/modules/layer/default/icon.png | 11.22KB | 4.36KB | ▼ 61.19% |
screenshot-2.png | 67.30KB | 22.74KB | ▼ 66.20% |
layui/images/footer_logo.png | 24.74KB | 0.87KB | ▼ 96.48% |
layui/images/qrcode.png | 72.54KB | 12.37KB | ▼ 82.94% |
layui/images/logo.png | 25.43KB | 0.87KB | ▼ 96.58% |