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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.95ms] Passed 4 tests
Analyzing server-side resources used by 双标题
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.05 ▼5.64 |
Dashboard /wp-admin | 3.33 ▲0.02 | 53.60 ▲1.30 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 54.68 ▲7.21 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.94 ▼3.60 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.64 ▼3.85 |
双标题 /wp-admin/options-general.php?page=double-title-setting | 3.23 | 30.77 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
double_title_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
双标题: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.43 | 1.89 ▼0.22 | 46.66 ▲3.38 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▲0.01 | 90.59 ▼0.68 | 45.21 ▲6.87 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.00 ▲0.02 | 38.69 ▲1.99 | 42.84 ▲8.63 |
Add New Post /wp-admin/post-new.php | 1,529 ▼151 | 23.49 ▲1.55 | 683.37 ▲19.94 | 48.57 ▼5.97 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.08 ▼0.09 | 99.54 ▼5.42 | 47.95 ▲3.13 |
双标题 /wp-admin/options-general.php?page=double-title-setting | 1,102 | 2.04 | 29.61 | 118.33 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: double title
double-title/double-title.php Passed 13 tests
This is the main PHP file of "双标题" version 0.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
108 characters long description:
支持文章双标题显示,自定义双标题显示模板,支持手动或自动设置文章副标题。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin897 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 43 | 166 | 780 |
JavaScript | 4 | 3 | 9 | 117 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 24 | 100.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin