Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.13MB] [CPU: ▼7.77ms] Passed 4 tests
Analyzing server-side resources used by Check Baidu Result
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▼0.50 | 20.29 ▼20.42 |
Dashboard /wp-admin | 3.31 ▼0.03 | 60.41 ▼0.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.63 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.81 ▼10.56 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.14 ▲2.04 |
Check Baidu Result /wp-admin/options-general.php?page=check-baidu-result-options | 3.20 | 43.21 |
Server storage [IO: ▲0.05MB] [DB: ▲0.63MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
check_baidu_result_show_to |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
check_baidu_result_get_name |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Check Baidu Result
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.39 ▼0.82 | 6.43 ▲4.52 | 41.37 ▲0.21 |
Dashboard /wp-admin | 2,213 ▲21 | 5.88 ▲0.93 | 111.41 ▼4.55 | 43.37 ▲2.54 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.04 ▼0.04 | 36.34 ▼3.08 | 34.08 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,548 ▲6 | 18.16 ▼0.10 | 597.78 ▼58.60 | 76.46 ▲17.82 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.28 ▲0.09 | 99.60 ▲2.61 | 43.26 ▼1.05 |
Check Baidu Result /wp-admin/options-general.php?page=check-baidu-result-options | 842 | 2.05 | 31.66 | 41.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.63MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-posts
- check_baidu_result_show_to
- check_baidu_result_get_name
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/check-baidu-result/options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/check-baidu-result/check-baidu-result.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
3 plugin tags: baidu, seo, check
check-baidu-result/check-baidu-result.php Passed 13 tests
The main PHP file in "Check Baidu Result" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
检查你的文章是否在百度搜索结果内
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected182 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 25 | 104 |
PO File | 2 | 22 | 22 | 78 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin