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.08MB] [CPU: ▼2.02ms] Passed 4 tests
An overview of server-side resources used by [凹凸曼]百度推送百度收录SEO
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 38.45 ▼3.87 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.53 ▼1.27 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.91 ▲1.41 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.51 ▲2.75 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 31.23 ▼4.33 |
Baidu pushes Baidu to include SEO /wp-admin/options-general.php?page=apoyl-baidupush-settings | 3.28 | 32.89 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_apoyl_baidupush |
New WordPress options |
---|
can_compress_scripts |
apoyl_baidupush_db_version |
widget_recent-posts |
apoyl-baidupush-settings |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
[凹凸曼]百度推送百度收录SEO: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲88 | 13.76 ▼0.95 | 8.46 ▲6.68 | 38.21 ▼4.47 |
Dashboard /wp-admin | 2,202 ▲22 | 5.59 ▼0.05 | 95.04 ▼3.60 | 41.65 ▲1.87 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▲0.03 | 39.34 ▲0.63 | 34.18 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.74 ▼0.26 | 583.82 ▼82.37 | 51.98 ▼9.55 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.23 ▲0.06 | 96.15 ▼12.54 | 39.95 ▼8.22 |
Baidu pushes Baidu to include SEO /wp-admin/options-general.php?page=apoyl-baidupush-settings | 877 | 2.15 | 22.98 | 44.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_apoyl_baidupush
- Zombie WordPress options detected upon uninstall: 7 options
- apoyl_baidupush_db_version
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: seo, baidu
apoyl-baidupush/apoyl-baidupush.php Passed 13 tests
"[凹凸曼]百度推送百度收录SEO" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
实现文章内容推送到百度里,让百度第一时间抓取你的内容
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin482 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 112 | 150 | 479 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 4 | 11.43% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/baidu.png | 3.28KB | 1.98KB | ▼ 39.47% |