Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.04ms] Passed 4 tests
This is a short check of server-side resources used by [凹凸曼]文章自动推送Bing
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.05 ▲0.45 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.19 ▼1.97 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.00 ▲4.39 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.77 ▼4.16 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.60 ▼2.46 |
settings /wp-admin/options-general.php?page=apoyl-bingpush-settings | 3.26 | 30.77 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_apoyl_bingpush |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
apoyl-bingpush-settings |
widget_recent-comments |
apoyl_bingpush_db_version |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for [凹凸曼]文章自动推送Bing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲113 | 13.52 ▼0.84 | 8.65 ▲6.75 | 38.51 ▼9.07 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▲0.07 | 92.78 ▼0.66 | 42.24 ▼1.10 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.05 | 38.99 ▼0.51 | 36.37 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.08 ▼0.17 | 577.78 ▼69.18 | 53.68 ▼5.38 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.28 ▲0.11 | 95.71 ▼3.41 | 40.11 ▼2.19 |
settings /wp-admin/options-general.php?page=apoyl-bingpush-settings | 858 | 1.99 | 25.12 | 26.05 |
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 does not fully uninstall, leaving 1 table in the database
- wp_apoyl_bingpush
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- apoyl_bingpush_db_version
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/apoyl-bingpush/public/partials/apoyl-bingpush-public-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-bingpush/admin/partials/apoyl-bingpush-admin-display.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: url, seo, bing
apoyl-bingpush/apoyl-bingpush.php Passed 13 tests
The main PHP file in "[凹凸曼]文章自动推送Bing" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
实现文章内容推送到Bing里,让Bing第一时间抓取你的内容
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
Everything looks great! No dangerous files found in this plugin442 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 105 | 150 | 439 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/bing.png | 16.19KB | 1.62KB | ▼ 89.99% |