Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲2.46MB] [CPU: ▲9.51ms] Passed 4 tests
Analyzing server-side resources used by Wechat Social login 微信QQ钉钉登录插件
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.84 ▲2.37 | 62.34 ▲24.72 |
Dashboard /wp-admin | 5.82 ▲2.47 | 64.31 ▲5.78 |
Posts /wp-admin/edit.php | 5.94 ▲2.58 | 64.03 ▲16.93 |
Add New Post /wp-admin/post-new.php | 8.40 ▲2.51 | 95.34 ▼9.39 |
Media Library /wp-admin/upload.php | 5.72 ▲2.49 | 61.53 ▲29.47 |
Wechat Social /wp-admin/admin.php?page=wsocial | 5.50 | 40.17 |
Settings /wp-admin/admin.php?page=social_page_default | 5.70 | 56.50 |
代理登录 /wp-admin/admin.php?page=social_page_wp_open | 5.70 | 56.03 |
Add-Ons /wp-admin/admin.php?page=social_page_add_ons | 5.95 | 56.04 |
Server storage [IO: ▲3.33MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 183 new files
Database: 4 new tables, 14 new options
New tables |
---|
wp_xh_social_channel_weibo |
wp_xh_social_channel_qq |
wp_xh_social_channel_wechat |
wp_xh_sessions |
New WordPress options |
---|
xh_social_plugins_installed |
xh_social_add_ons_login_settings |
widget_xh_social_login_wide |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_xh_social_share_bar |
widget_xh_social_login_short |
xh_social_addons_versions |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Wechat Social login 微信QQ钉钉登录插件
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,186 ▲400 | 15.36 ▲1.01 | 8.62 ▲6.81 | 43.52 ▲3.17 |
Dashboard /wp-admin | 2,382 ▲208 | 6.58 ▲1.06 | 112.65 ▲23.45 | 44.30 ▲4.02 |
Posts /wp-admin/edit.php | 2,323 ▲223 | 3.70 ▲1.56 | 52.15 ▲13.92 | 37.87 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,572 ▲45 | 21.27 ▼1.66 | 650.79 ▲33.82 | 30.30 ▼23.51 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.54 ▲0.38 | 95.27 ▼10.14 | 53.77 ▲7.76 |
Wechat Social /wp-admin/admin.php?page=wsocial | 28 | 0.42 | 0.07 | 3.55 |
Settings /wp-admin/admin.php?page=social_page_default | 1,204 | 3.50 | 44.92 | 89.62 |
代理登录 /wp-admin/admin.php?page=social_page_wp_open | 1,050 | 3.43 | 45.76 | 87.58 |
Add-Ons /wp-admin/admin.php?page=social_page_add_ons | 1,447 | 3.39 | 45.04 | 54.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 4 tables
- wp_xh_social_channel_qq
- wp_xh_social_channel_wechat
- wp_xh_social_channel_weibo
- wp_xh_sessions
- The uninstall procedure has failed, leaving 14 options in the database
- xh_social_addons_versions
- widget_xh_social_share_bar
- widget_recent-posts
- widget_xh_social_login_short
- widget_xh_social_login_wide
- can_compress_scripts
- xh_social_add_ons_login_settings
- xh_install_plugins
- xh_social_plugins_installed
- db_upgraded
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wechat-social-login/templates/___.php
- > /wp-content/plugins/wechat-social-login/add-ons/login/templates/account/___.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Gregwar\\Captcha\\CaptchaBuilderInterface' not found in wp-content/plugins/wechat-social-login/includes/captcha/CaptchaBuilder.php:14
- > PHP Fatal error
Uncaught Error: Class 'Abstract_XH_Social_Add_Ons' not found in wp-content/plugins/wechat-social-login/includes/abstracts/__abstract-xh-add-ons-update.php:6
- > PHP Fatal error
Uncaught Error: Class 'XH_Social_Temp_Helper' not found in wp-content/plugins/wechat-social-login/add-ons/login/templates/account/__login.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Gregwar\\Captcha\\PhraseBuilderInterface' not found in wp-content/plugins/wechat-social-login/includes/captcha/PhraseBuilder.php:10
- > PHP Fatal error
Uncaught Error: Class 'Abstract_WSocial_Captcha' not found in wp-content/plugins/wechat-social-login/includes/social/class-xh-social-captcha.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/wechat-social-login/test.php:2
- > PHP Fatal error
Uncaught Error: Class 'XH_Social_Temp_Helper' not found in wp-content/plugins/wechat-social-login/add-ons/social-wechat/templates/account/wechat/authorize-loading.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wsocial
- > Network (severe)
wp-admin/admin.php?page=wsocial - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: A description for screenshot #11 is required in wechat-social-login/assets to your readme.txt
- Screenshots: These screenshots do not have images: #8 (账号绑定解绑设置), #10 (手机注册设置)
wechat-social-login/init.php 77% from 13 tests
The main PHP script in "Wechat Social login 微信QQ钉钉登录插件" version 1.3.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 336 characters long)
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wechat-social-login.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected35,067 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 3,674 | 6,084 | 18,514 |
JavaScript | 15 | 2,559 | 820 | 10,570 |
CSS | 9 | 260 | 41 | 3,823 |
PO File | 2 | 838 | 1,310 | 2,151 |
SVG | 9 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 25.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 256.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 108 | |
▷ Abstract classes | 13 | 12.04% |
▷ Concrete classes | 95 | 87.96% |
▷ Final classes | 1 | 1.05% |
Methods | 1,016 | |
▷ Static methods | 208 | 20.47% |
▷ Public methods | 922 | 90.75% |
▷ Protected methods | 34 | 3.35% |
▷ Private methods | 60 | 5.91% |
Functions | 50 | |
▷ Named functions | 11 | 22.00% |
▷ Anonymous functions | 39 | 78.00% |
Constants | 59 | |
▷ Global constants | 43 | 72.88% |
▷ Class constants | 16 | 27.12% |
▷ Public constants | 16 | 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
25 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/dingding.png | 1.96KB | 1.52KB | ▼ 22.63% |
assets/image/v2.ui2.close2.png | 1.15KB | 0.24KB | ▼ 79.27% |
assets/image/linkendin-icon.png | 1.76KB | 0.67KB | ▼ 61.67% |
assets/image/icon_popup19fb81.png | 2.14KB | 1.83KB | ▼ 14.55% |
assets/image/mobile-icon.png | 1.45KB | 0.49KB | ▼ 66.51% |