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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.80MB] [CPU: ▲3.17ms] Passed 4 tests
An overview of server-side resources used by Smart SEO Tool - SEO优化插件
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.82 | 47.94 ▲6.71 |
Dashboard /wp-admin | 4.14 ▲0.84 | 54.42 ▲2.04 |
Posts /wp-admin/edit.php | 4.19 ▲0.84 | 57.95 ▲6.59 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.78 | 100.60 ▼2.68 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 44.66 ▲7.36 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 54 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wb_sst_redirection_url |
wp_wb_sst_broken_url |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
wb_sst_db_ver |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Smart SEO Tool - SEO优化插件: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.72 ▲0.54 | 1.67 ▼0.17 | 47.61 ▲2.99 |
Dashboard /wp-admin | 2,230 ▲53 | 5.51 ▼0.14 | 86.03 ▼7.13 | 96.25 ▲55.82 |
Posts /wp-admin/edit.php | 2,147 ▲50 | 1.98 ▼0.06 | 35.48 ▼2.40 | 46.85 ▲11.37 |
Add New Post /wp-admin/post-new.php | 1,578 ▲52 | 23.05 ▲0.08 | 646.85 ▼48.11 | 52.90 ▲0.43 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.27 ▲0.04 | 106.86 ▼8.60 | 72.62 ▲19.38 |
TDK优化 /wp-admin/admin.php?page=wb_sst#/tdk | 1,228 | 6.22 | 131.99 | 151.99 |
网站地图 /wp-admin/admin.php?page=wb_sst#/sitemap | 1,231 | 6.22 | 126.58 | 108.44 |
图片优化 /wp-admin/admin.php?page=wb_sst#/image | 1,245 | 6.28 | 121.33 | 74.37 |
链接优化 /wp-admin/admin.php?page=wb_sst#/url | 1,233 | 6.19 | 136.55 | 112.01 |
插件设置 /wp-admin/admin.php?page=wb_sst#/setting | 1,228 | 6.18 | 122.26 | 113.39 |
其他杂项 /wp-admin/admin.php?page=wb_sst#/other | 1,233 | 6.17 | 115.47 | 106.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_wb_sst_redirection_url
- wp_wb_sst_broken_url
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- wb_sst_db_ver
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
7 plugin tags: url rewrite, description, title, keyword, alt...
smart-seo-tool/index.php 77% from 13 tests
This is the main PHP file of "Smart SEO Tool - SEO优化插件" version 4.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-seo-tool.php" instead of "index.php")
- Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.0.0")
- Description: Please keep the plugin description shorter than 140 characters (currently 227 characters long)
Code Analysis 97% from 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
No dangerous file extensions were detected5,361 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 1,024 | 396 | 5,112 |
XSLT | 1 | 24 | 0 | 174 |
SQL | 1 | 3 | 1 | 36 |
JavaScript | 33 | 0 | 56 | 35 |
CSS | 2 | 0 | 3 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 158)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 118.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 351.00 |
Average method complexity | 7.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 158.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 | 160 | |
▷ Static methods | 144 | 90.00% |
▷ Public methods | 157 | 98.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.88% |
Functions | 10 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 10 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tpl/assets/img/bsl.abf3bf80.png | 28.97KB | 28.95KB | 0.06% |