Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.67MB] [CPU: ▼48.16ms] Passed 4 tests
A check of server-side resources used by 中文超级工具箱(China Super ToolS)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.21 ▼6.85 |
Dashboard /wp-admin | 2.28 ▼1.07 | 12.24 ▼45.30 |
Posts /wp-admin/edit.php | 2.28 ▼1.08 | 8.18 ▼36.21 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.61 | 5.84 ▼85.05 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 8.91 ▼26.09 |
CST自定义扩展 /wp-admin/admin.php?page=cst_user | 2.28 | 7.22 |
CST系统扩展 /wp-admin/admin.php?page=cst_system | 2.28 | 8.84 |
CST在线扩展 /wp-admin/admin.php?page=cst_install | 2.28 | 6.76 |
上传CST扩展 /wp-admin/admin.php?page=cst_upload | 2.28 | 7.60 |
Super ToolS /wp-admin/admin.php?page=cst_option | 2.28 | 5.97 |
Server storage [IO: ▲0.04MB] [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 found: 6 files (2.38KB) outside of "wp-content/plugins/china-super/" and "wp-content/uploads/"
- (new file) wp-content/CstPort/lib/jpcomment.php
- (new file) wp-content/CstPort/lib/QiNiuSEO.php
- (new file) wp-content/CstPort/option/.empty
- (new file) wp-content/CstPort/inc/.empty
- (new file) wp-content/CstPort/lib/cnNames.php
- (new file) wp-content/CstPort/lib/Md5Filename.php
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for 中文超级工具箱(China Super ToolS)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.62 ▼0.78 | 1.55 ▼0.29 | 40.94 ▼6.51 |
Dashboard /wp-admin | 2,322 ▲134 | 5.49 ▲0.47 | 106.40 ▼1.47 | 43.12 ▼1.24 |
Posts /wp-admin/edit.php | 2,208 ▲119 | 2.21 ▲0.19 | 34.31 ▼2.04 | 38.04 ▲6.90 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.28 ▲5.74 | 667.31 ▼18.77 | 36.45 ▼23.07 |
Media Library /wp-admin/upload.php | 1,501 ▲113 | 4.77 ▲0.56 | 96.84 ▼16.09 | 46.75 ▼0.32 |
CST自定义扩展 /wp-admin/admin.php?page=cst_user | 898 | 2.10 | 32.74 | 59.53 |
CST系统扩展 /wp-admin/admin.php?page=cst_system | 913 | 2.13 | 26.67 | 44.46 |
CST在线扩展 /wp-admin/admin.php?page=cst_install | 901 | 2.14 | 27.17 | 46.23 |
上传CST扩展 /wp-admin/admin.php?page=cst_upload | 913 | 2.14 | 27.76 | 39.34 |
Super ToolS /wp-admin/admin.php?page=cst_option | 943 | 2.13 | 26.37 | 47.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_localize_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wct_ajaxrequest handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cst_option
- > User notice in wp-includes/functions.php+5905
Function wp_localize_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wct_ajaxrequest handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cst_install
- > Notice in wp-content/plugins/china-super/private/ini.c.php+120
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=cst_install
- > Warning in wp-content/plugins/china-super/private/ini.c.php+110
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/china-super/china-tools.php:11
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/china-super/private/CstPort/lib/QiNiuSEO.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/china-super/private/CstPort/lib/jpcomment.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/china-super/private/system/GoogleFontsSYS.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/china-super/private/system/GravatarSYS.php:11
- > PHP Fatal error
Uncaught Error: Undefined constant 'CST_C' in wp-content/plugins/china-super/router.php:3
- > PHP Fatal error
Uncaught Error: Undefined constant 'CST_C' in wp-content/plugins/china-super/private/ini.c.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/china-super/private/CstPort/lib/cnNames.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/china-super/private/CstPort/lib/Md5Filename.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Super ToolS下可以插件当前安装的扩展数量,并且可以生成代码引用块), #2 (针对用户添加的代码,都进行压缩合并,并生成一个唯一的引用文件。), #3 (记录代码功能), #4 (可在线扩展功能), #5 (系统内置两个中文网站加速模块(google fonts to fonts,china gravatar cdn))
china-super/china-tools.php 92% from 13 tests
The main file in "中文超级工具箱(China Super ToolS)" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("china-super.php" instead of "china-tools.php")
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 plugin868 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 41 | 38 | 711 |
JavaScript | 1 | 0 | 0 | 117 |
CSS | 1 | 0 | 0 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 38.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 12 | 36.36% |
▷ Public methods | 31 | 93.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.06% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 10 | 83.33% |
▷ Class constants | 2 | 16.67% |
▷ Public constants | 2 | 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
There are no PNG files in this plugin