Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-xintaoke/wp-xintaoke.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Xintaoke has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼53.35ms] Passed 4 tests
Server-side resources used by 新淘客WordPress插件
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.16 ▼32.29 |
Dashboard /wp-admin | 2.20 ▼1.14 | 5.99 ▼46.72 |
Posts /wp-admin/edit.php | 2.20 ▼1.15 | 8.36 ▼35.82 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.68 | 6.11 ▼98.55 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 5.70 ▼29.46 |
Tags /wp-admin/edit-tags.php?taxonomy=daogou_tag&post_type=daogou | 2.20 | 6.35 |
新建导购 /wp-admin/post-new.php?post_type=daogou | 2.20 | 6.08 |
所有导购 /wp-admin/edit.php?post_type=daogou | 2.20 | 6.90 |
会员 /wp-admin/admin.php?page=xt_menu_member | 2.20 | 5.73 |
Categories /wp-admin/edit-tags.php?taxonomy=daogou_category&post_type=daogou | 2.20 | 5.66 |
新建帮助 /wp-admin/post-new.php?post_type=help | 2.20 | 7.23 |
返现 /wp-admin/admin.php?page=xt_menu_fanxian | 2.20 | 7.22 |
新淘客 /wp-admin/admin.php?page=xt_menu_sys | 2.20 | 5.60 |
分享 /wp-admin/admin.php?page=xt_menu_share | 2.20 | 6.33 |
Tags /wp-admin/edit-tags.php?taxonomy=help_tag&post_type=help | 2.20 | 6.50 |
Server storage [IO: ▲22.05MB] [DB: ▲0.26MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 563 new files
Database: 26 new tables, 14 new options
New tables |
---|
wp_xt_fanxian_log |
wp_xt_catalog_itemcat |
wp_xt_album |
wp_xt_user_jifen_item |
wp_xt_share_album |
wp_xt_user_notice |
wp_xt_catalog |
wp_xt_share_tag |
wp_xt_tixian |
wp_xt_share_catalog |
... |
New WordPress options |
---|
xt_option_env |
xt_option_platform |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
xt_option_mail |
xt_option_version_db |
xt_option_version |
xt_option_global |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for 新淘客WordPress插件
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 13.95 ▼0.80 | 13.94 ▲12.34 | 50.73 ▲6.88 |
Dashboard /wp-admin | 2,339 ▲147 | 5.87 ▲0.93 | 99.84 ▼10.95 | 63.56 ▲22.17 |
Posts /wp-admin/edit.php | 2,231 ▲142 | 2.04 ▲0.04 | 39.49 ▲3.54 | 54.59 ▲18.66 |
Add New Post /wp-admin/post-new.php | 1,652 ▲114 | 18.21 ▼4.96 | 610.90 ▼61.00 | 67.86 ▲9.52 |
Media Library /wp-admin/upload.php | 1,524 ▲136 | 4.23 ▲0.02 | 97.47 ▼8.57 | 58.92 ▲13.00 |
Tags /wp-admin/edit-tags.php?taxonomy=daogou_tag&post_type=daogou | 1,367 | 2.28 | 30.78 | 52.57 |
新建导购 /wp-admin/post-new.php?post_type=daogou | 3,007 | 7.95 | 184.29 | 147.44 |
所有导购 /wp-admin/edit.php?post_type=daogou | 1,244 | 2.02 | 36.68 | 60.47 |
会员 /wp-admin/admin.php?page=xt_menu_member | 1,228 | 1.89 | 29.00 | 51.80 |
Categories /wp-admin/edit-tags.php?taxonomy=daogou_category&post_type=daogou | 1,398 | 2.31 | 30.14 | 44.71 |
新建帮助 /wp-admin/post-new.php?post_type=help | 2,876 | 7.94 | 171.78 | 84.47 |
返现 /wp-admin/admin.php?page=xt_menu_fanxian | 1,356 | 3.85 | 77.83 | 48.75 |
新淘客 /wp-admin/admin.php?page=xt_menu_sys | 1,292 | 1.95 | 34.19 | 68.24 |
分享 /wp-admin/admin.php?page=xt_menu_share | 3,268 | 1.84 | 27.51 | 84.12 |
Tags /wp-admin/edit-tags.php?taxonomy=help_tag&post_type=help | 1,367 | 2.31 | 29.19 | 51.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.28MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-xintaoke/wp-xintaoke.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Xintaoke has a deprecated constructor
- This plugin does not fully uninstall, leaving 26 tables in the database
- wp_xt_share_tag
- wp_xt_fanxian
- wp_xt_user_follow
- wp_xt_user_jifen_item
- wp_xt_taobao_report
- wp_xt_paipai_report
- wp_xt_taobao_itemcat
- wp_xt_share_comment
- wp_xt_share_match
- wp_xt_user_jifen_log
- ...
- The uninstall procedure has failed, leaving 14 options in the database
- db_upgraded
- xt_option_mail
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- xt_option_platform
- xt_option_catalog_share
- widget_recent-posts
- xt_option_fanxian
- xt_option_global
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 13 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=help_tag&post_type=help
- > Deprecated in wp-content/plugins/wp-xintaoke/wp-xintaoke.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Xintaoke has a deprecated constructor
- 13 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=help_tag&post_type=help
- > Deprecated in wp-content/plugins/wp-xintaoke/xt-core/xt-constants.php+342
Function create_function() is deprecated
- 13 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=help_tag&post_type=help
- > Deprecated in wp-content/plugins/wp-xintaoke/xt-includes/widgets.php+1875
Methods with the same name as their class will not be constructors in a future version of PHP; XT_Widget_Factory has a deprecated constructor
- 13 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=help_tag&post_type=help
- > Deprecated in wp-content/plugins/wp-xintaoke/xt-includes/breadcrumbs.class.php+111
Methods with the same name as their class will not be constructors in a future version of PHP; xt_breadcrumbs has a deprecated constructor
SRP 0% from 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
Please fix the following items
- 18× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wp-xintaoke/xt-core/js/ueditor/php/getContent.php
- > /wp-content/plugins/wp-xintaoke/xt-core/sdks/weibo/index.php
- > /wp-content/plugins/wp-xintaoke/xt-core/sdks/yiqifa/test.php
- > /wp-content/plugins/wp-xintaoke/xt-admin/widget_itemcats.php
- > /wp-content/plugins/wp-xintaoke/xt-themes/xt-share_box.php
- > /wp-content/plugins/wp-xintaoke/xt-admin/sys_pages.php
- > /wp-content/plugins/wp-xintaoke/xt-admin/sys_theme.php
- > /wp-content/plugins/wp-xintaoke/xt-core/sdks/weibo/weibolist.php
- > /wp-content/plugins/wp-xintaoke/xt-core/js/ueditor/php/fileUp.php
- > /wp-content/plugins/wp-xintaoke/xt-core/js/ueditor/php/scrawlUp.php
- 98× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(XT_PLUGIN_DIR/xt-core/sdks/paipai/lib/HttpClient.class.php): failed to open stream: No such file or directory in wp-content/plugins/wp-xintaoke/xt-core/sdks/paipai/src/PaiPaiOpenApiOauth.php on line 10
- > PHP Warning
Use of undefined constant XT_PLUGIN_DIR - assumed 'XT_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-xintaoke/xt-core/sdks/paipai/src/PaiPaiOpenApiOauth.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-xintaoke/xt-themes/account/xt-tuiguang-order.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-xintaoke/xt-admin/sys_tool.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-xintaoke/xt-themes/xt-header.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_User' not found in wp-content/plugins/wp-xintaoke/xt-admin/user_box.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/wp-xintaoke/xt-themes/account/xt-info.php:4
- > PHP Notice
Undefined index: ed in wp-content/plugins/wp-xintaoke/xt-themes/account/xt-orders-yiqifa.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-xintaoke/xt-admin/fanxian_paipai.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_users() in wp-content/plugins/wp-xintaoke/xt-admin/user_box_list.php:6
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=xt_menu_member
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=xt_menu_member:289:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=xt_menu_share
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
- > GET request to /wp-admin/admin.php?page=xt_menu_sys
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=xt_menu_sys:373:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=xt_menu_sys
- > Network (severe)
http://plugin.xintaonet.com/version.js?_=1696850390787 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=xt_menu_share
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=xt_menu_share:1045:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-xintaoke ===
)
wp-xintaoke/wp-xintaoke.php 92% from 13 tests
Analyzing the main PHP file in "新淘客WordPress插件" version 1.1.2
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 203 characters long)
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
It is important to fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/wp-xintaoke/xt-core/js/ueditor/third-party/snapscreen/UEditorSnapscreen.exe
- ☣ wp-content/plugins/wp-xintaoke/xt-core/js/ueditor/third-party/snapscreen/setup.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 239 | 5,375 | 6,574 | 71,055 |
JavaScript | 44 | 2,996 | 5,333 | 24,756 |
CSS | 27 | 388 | 332 | 4,040 |
HTML | 23 | 50 | 2 | 1,914 |
INI | 2 | 56 | 68 | 458 |
PO File | 1 | 99 | 215 | 103 |
YAML | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 319.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 181 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 181 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2,012 | |
▷ Static methods | 32 | 1.59% |
▷ Public methods | 1,975 | 98.16% |
▷ Protected methods | 22 | 1.09% |
▷ Private methods | 15 | 0.75% |
Functions | 954 | |
▷ Named functions | 954 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 345 | |
▷ Global constants | 344 | 99.71% |
▷ Class constants | 1 | 0.29% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
119 PNG files occupy 0.65MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
xt-core/js/ueditor/themes/default/images/filescan.png | 4.18KB | 1.58KB | ▼ 62.19% |
xt-themes/images/fanxian_box_paipai.png | 23.88KB | 10.36KB | ▼ 56.63% |
xt-themes/images/temai-990-220.png | 12.48KB | 11.82KB | ▼ 5.25% |
xt-core/js/datepicker/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
xt-core/js/ueditor/dialogs/template/images/list.png | 10.57KB | 4.12KB | ▼ 61.02% |