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
Installer ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼12.58ms] Passed 4 tests
This is a short check of server-side resources used by BaiduXZH Submit(百度熊掌号)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.84 ▼2.37 |
Dashboard /wp-admin | 3.13 ▼0.18 | 29.26 ▼21.82 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.25 ▲1.05 |
Add New Post /wp-admin/post-new.php | 5.28 ▼0.61 | 66.43 ▼26.70 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.00 ▲0.57 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
I3GEEK_XZH_SETTING |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for BaiduXZH Submit(百度熊掌号)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲109 | 13.29 ▼1.14 | 1.89 ▼0.08 | 46.15 ▼3.62 |
Dashboard /wp-admin | 2,247 ▲55 | 5.81 ▲0.85 | 100.69 ▼3.28 | 42.79 ▼1.76 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.02 ▼0.03 | 35.88 ▼3.46 | 38.23 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.34 ▲0.18 | 644.16 ▼39.02 | 50.57 ▼6.72 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.26 ▲0.05 | 95.87 ▼5.24 | 45.33 ▲2.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- I3GEEK_XZH_SETTING
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i3geek-baiduxzh/i3geek_baiduXZH.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/i3geek-baiduxzh/i3geek_baiduXZH_html.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: baidu, linksubmit, sitemap, seo
i3geek-baiduxzh/i3geek_baiduXZH.php 85% from 13 tests
The main PHP script in "BaiduXZH Submit(百度熊掌号)" version 1.4.6 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("i3geek-baiduxzh.php" instead of "i3geek_baiduXZH.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected861 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 5 | 9 | 652 |
CSS | 1 | 26 | 0 | 205 |
JavaScript | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 13 | 100.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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.16MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 164.19KB | 61.40KB | ▼ 62.60% |