Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.47ms] Passed 4 tests
A check of server-side resources used by zhanzhangb-share
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.83 ▼5.69 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.73 ▼3.91 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 53.84 ▲0.95 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 87.23 ▼17.21 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.66 ▲3.14 |
站长帮 - 分享插件 /wp-admin/options-general.php?page=zhanzhangb_share | 3.28 | 31.59 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
zhanzhangb_share_location |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for zhanzhangb-share
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.64 ▼0.66 | 5.47 ▲3.32 | 43.68 ▲1.02 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.95 | 99.82 ▼12.41 | 43.50 ▼1.58 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.04 | 39.59 ▼1.19 | 39.80 ▲3.80 |
Add New Post /wp-admin/post-new.php | 1,546 ▲16 | 18.11 ▼0.37 | 676.70 ▲31.03 | 76.13 ▲22.36 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.06 | 103.38 ▲0.37 | 45.08 ▼5.24 |
站长帮 - 分享插件 /wp-admin/options-general.php?page=zhanzhangb_share | 867 | 2.05 | 24.31 | 68.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: weixin, share
zhanzhangb-share/zhanzhangb-share.php 92% from 13 tests
Analyzing the main PHP file in "zhanzhangb-share" version 1.0.0
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
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
Success! There were no dangerous files found in this plugin582 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 36 | 37 | 376 |
JavaScript | 3 | 1 | 0 | 163 |
CSS | 1 | 0 | 15 | 43 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 23.08% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin