Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.98ms] Passed 4 tests
A check of server-side resources used by 博客优化
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.68 ▲3.30 |
Dashboard /wp-admin | 3.38 ▲0.07 | 57.32 ▲8.46 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.40 ▼3.12 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.52 ▼6.11 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.25 ▼1.97 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for 博客优化
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.28 ▼1.37 | 2.88 ▲1.25 | 44.77 ▲4.12 |
Dashboard /wp-admin | 2,222 ▲34 | 6.00 ▲1.11 | 100.88 ▼5.80 | 40.31 ▼0.20 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.05 ▲0.01 | 36.80 ▲2.18 | 40.83 ▲5.13 |
Add New Post /wp-admin/post-new.php | 1,527 ▼1 | 17.42 ▼0.89 | 670.42 ▲50.95 | 54.05 ▲4.41 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.23 ▼0.05 | 95.79 ▼31.71 | 48.96 ▼4.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/blog-optimize/blog-optimize.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== blog-optimize ===
)
blog-optimize/blog-optimize.php Passed 13 tests
The main PHP file in "博客优化" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
134 characters long description:
WordPress优化、功能增强、使用SMTP发邮件、CDN加速、站点地图(sitemap,包括移动sitemap)、数据库清理等。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,211 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1 | 24 | 577 |
PHP | 1 | 5 | 10 | 526 |
CSS | 1 | 0 | 0 | 108 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wp_admin_map.png | 7.70KB | 3.27KB | ▼ 57.51% |
images/wp_admin_icon_map.png | 2.07KB | 1.00KB | ▼ 51.63% |
images/on_off_slide.png | 1.30KB | 1.86KB | 0.00% |
images/checkbox-switch-on.png | 4.85KB | 1.99KB | ▼ 58.93% |
images/check-off.png | 0.64KB | 0.72KB | 0.00% |