Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.81ms] Passed 4 tests
This is a short check of server-side resources used by WPTimhbw Tools
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.89 ▼0.95 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.36 ▼3.00 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.65 ▲1.61 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 95.65 ▲1.15 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.82 ▼0.42 |
设置 /wp-admin/admin.php?page=wptimhbw-setting | 3.21 | 33.24 |
工具介绍 /wp-admin/admin.php?page=wptimhbw-about | 3.21 | 33.58 |
Server storage [IO: ▲0.43MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
wtht_exts |
wptimhbw_tools |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WPTimhbw Tools
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.68 ▼0.75 | 1.93 ▲0.06 | 37.88 ▼5.47 |
Dashboard /wp-admin | 2,229 ▲41 | 5.02 ▲0.09 | 109.03 ▲7.46 | 46.80 ▲3.97 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.05 ▲0.05 | 38.71 ▼0.44 | 44.32 ▲5.22 |
Add New Post /wp-admin/post-new.php | 1,554 ▲12 | 23.18 ▲4.82 | 632.38 ▼16.01 | 56.34 ▲2.94 |
Media Library /wp-admin/upload.php | 1,411 ▲29 | 4.22 ▲0.03 | 96.78 ▼4.87 | 45.46 ▲1.04 |
设置 /wp-admin/admin.php?page=wptimhbw-setting | 1,078 | 1.95 | 29.11 | 102.06 |
工具介绍 /wp-admin/admin.php?page=wptimhbw-about | 785 | 2.02 | 25.51 | 46.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptimhbw-tools/includes/imgcenter.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptimhbw-tools/includes/pagehtml.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wptimhbw-tools/wptimhbw-tools.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptimhbw-tools/includes/qiniucdn.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wptimhbw-tools/includes/setgravatar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptimhbw-tools/includes/disable_functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptimhbw-tools/includes/tongji.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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: gravatar, cdn, qiniu
wptimhbw-tools/wptimhbw-tools.php Passed 13 tests
This is the main PHP file of "WPTimhbw Tools" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
设置博客静态资源使用七牛云CDN
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin448 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 66 | 20 | 345 |
CSS | 1 | 0 | 5 | 102 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 PNG files occupy 0.41MB with 0.29MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 186.22KB | 49.46KB | ▼ 73.44% |
assets/screenshot-2.png | 233.62KB | 71.91KB | ▼ 69.22% |