Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.29ms] Passed 4 tests
Server-side resources used by Bosima WeChat Page Sharing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 54.96 ▲13.58 |
Dashboard /wp-admin | 3.44 ▲0.09 | 48.59 ▼11.26 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 49.40 ▼3.83 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 88.20 ▼11.97 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.87 ▲1.91 |
微信分享设置 /wp-admin/options-general.php?page=wechat-appid-config | 3.30 | 39.31 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/bosima-wechat-page-sharing/" and "wp-content/uploads/"
- (new file) wp-content/bps-wechat/config/.empty
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bosima WeChat Page Sharing
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 13.46 ▼0.90 | 10.88 ▲9.35 | 42.34 ▼0.72 |
Dashboard /wp-admin | 2,196 ▲15 | 5.50 ▼0.19 | 82.80 ▼18.34 | 46.05 ▲7.73 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.03 | 38.16 ▼2.31 | 42.10 ▲6.44 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 23.11 ▲0.10 | 654.31 ▼28.60 | 48.36 ▼16.32 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.11 | 95.01 ▼7.26 | 51.61 ▲9.42 |
微信分享设置 /wp-admin/options-general.php?page=wechat-appid-config | 944 | 2.04 | 24.63 | 47.20 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+89
Undefined property: Bosima_WeChat_AccessConfig::$sharing_page_title
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+90
Undefined property: Bosima_WeChat_AccessConfig::$sharing_page_description
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+91
Undefined property: Bosima_WeChat_AccessConfig::$sharing_tag_title
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+92
Undefined property: Bosima_WeChat_AccessConfig::$sharing_tag_description
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+93
Undefined property: Bosima_WeChat_AccessConfig::$sharing_search_title
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+94
Undefined property: Bosima_WeChat_AccessConfig::$sharing_search_description
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+95
Undefined property: Bosima_WeChat_AccessConfig::$sharing_archive_title
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+96
Undefined property: Bosima_WeChat_AccessConfig::$sharing_archive_description
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+97
Undefined property: Bosima_WeChat_AccessConfig::$sharing_img_option
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+98
Undefined property: Bosima_WeChat_AccessConfig::$sharing_home_title
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+99
Undefined property: Bosima_WeChat_AccessConfig::$sharing_home_img_useicon
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+100
Undefined property: Bosima_WeChat_AccessConfig::$sharing_home_description
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+101
Undefined property: Bosima_WeChat_AccessConfig::$sharing_single_description
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+102
Undefined property: Bosima_WeChat_AccessConfig::$sharing_single_title
- > GET request to /wp-admin/options-general.php?page=wechat-appid-config
- > Notice in wp-content/plugins/bosima-wechat-page-sharing/sharing-admin.php+103
Undefined property: Bosima_WeChat_AccessConfig::$sharing_category_title
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
2 plugin tags: wechat, sharing
bosima-wechat-page-sharing/sharing.php 85% from 13 tests
"Bosima WeChat Page Sharing" version 0.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("bosima-wechat-page-sharing.php" instead of "sharing.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 236 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin856 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 128 | 126 | 758 |
PO File | 1 | 37 | 41 | 98 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 14 | 46.67% |
▷ Public methods | 16 | 53.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 46.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.48MB with 0.33MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 191.23KB | 64.80KB | ▼ 66.11% |
screenshot-1.png | 169.86KB | 49.03KB | ▼ 71.14% |
screenshot-2.png | 135.07KB | 44.63KB | ▼ 66.96% |