Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.24MB] [CPU: ▼326.87ms] Passed 4 tests
Server-side resources used by 腾讯云短信(SMS)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.67 | 60.09 ▲7.19 |
Dashboard /wp-admin | 4.11 ▲0.70 | 40.36 ▲7.13 |
Posts /wp-admin/edit.php | 4.33 ▲0.69 | 40.80 ▲3.05 |
Add New Post /wp-admin/post-new.php | 3.97 ▼3.03 | 33.74 ▼1,322.14 |
Media Library /wp-admin/upload.php | 3.99 ▲0.70 | 29.86 ▲4.49 |
短信 /wp-admin/admin.php?page=TencentWordpressSMSSettingPage | 3.99 | 25.41 |
腾讯云设置 /wp-admin/admin.php?page=TencentWordpressPluginsCommonSettingPage | 3.97 | 27.38 |
Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 506 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_tencent_wordpress_sms_sent_records |
wp_tencent_wordpress_options |
New WordPress options |
---|
tencent_wordpress_common_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 腾讯云短信(SMS)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,968 ▲214 | 16.86 ▲1.18 | 8.49 ▲1.45 | 2.18 ▼0.20 |
Dashboard /wp-admin | 2,932 ▲74 | 6.14 ▼0.06 | 119.98 ▼14.70 | 167.67 ▲8.12 |
Posts /wp-admin/edit.php | 2,728 ▲37 | 3.27 ▲0.04 | 64.21 ▲3.34 | 145.52 ▲6.51 |
Add New Post /wp-admin/post-new.php | 34 ▼1,718 | 0.94 ▼20.20 | 0.04 ▼444.53 | 43.31 ▼111.87 |
Media Library /wp-admin/upload.php | 1,735 ▲37 | 5.63 ▲0.12 | 142.70 ▲5.17 | 205.93 ▲25.29 |
短信 /wp-admin/admin.php?page=TencentWordpressSMSSettingPage | 1,585 | 2.71 | 59.71 | 219.57 |
腾讯云设置 /wp-admin/admin.php?page=TencentWordpressPluginsCommonSettingPage | 1,334 | 2.72 | 57.07 | 147.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_tencent_wordpress_options
- This plugin does not fully uninstall, leaving 1 option in the database
- tencent_wordpress_common_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tencentcloud-sms/common/tencent-wordpress-plugins-setting-page.php
- 364× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TencentCloud\\Common\\AbstractModel' not found in wp-content/plugins/tencentcloud-sms/common/vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Ms/V20180408/Models/VulInfo.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/tencentcloud-sms/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/tencentcloud-sms/common/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/tencentcloud-sms/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
require_once(): Failed opening required 'QCLOUDAPI_ROOT_PATH/Module/Base.php' (include_path='.:/usr/share/php') in wp-content/plugins/tencentcloud-sms/common/vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Eip.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tencentcloud-sms/tencentcloud-sms.php:30
- > PHP Warning
require_once(QCLOUDAPI_ROOT_PATH/Module/Base.php): failed to open stream: No such file or directory in wp-content/plugins/tencentcloud-sms/common/vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bill.php on line 2
- > PHP Warning
require_once(QCLOUDAPI_ROOT_PATH/Module/Base.php): failed to open stream: No such file or directory in wp-content/plugins/tencentcloud-sms/common/vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cns.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TencentCloud\\Common\\AbstractModel' not found in wp-content/plugins/tencentcloud-sms/common/vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Ms/V20180408/Models/AppScanSet.php:50
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/tencentcloud-sms/common/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add a description for screenshot #6 in tencentcloud-sms/assets to your readme.txt
tencentcloud-sms/tencentcloud-sms.php Passed 13 tests
The main PHP script in "腾讯云短信(SMS)" version 1.0.2 is automatically included on every request by WordPress
113 characters long description:
通过腾讯云短信服务使网站支持手机号登录,通过手机号+短信验证码找回密码等功能。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected28,944 lines of code in 354 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 323 | 4,626 | 14,817 | 24,061 |
Markdown | 9 | 917 | 0 | 3,106 |
JSON | 17 | 0 | 0 | 1,391 |
JavaScript | 3 | 16 | 80 | 376 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 0 | 11 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 11.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 43 | |
Traits | 6 | |
Classes | 359 | |
▷ Abstract classes | 6 | 1.67% |
▷ Concrete classes | 353 | 98.33% |
▷ Final classes | 27 | 7.65% |
Methods | 2,373 | |
▷ Static methods | 300 | 12.64% |
▷ Public methods | 1,989 | 83.82% |
▷ Protected methods | 17 | 0.72% |
▷ Private methods | 367 | 15.47% |
Functions | 478 | |
▷ Named functions | 214 | 44.77% |
▷ Anonymous functions | 264 | 55.23% |
Constants | 279 | |
▷ Global constants | 60 | 21.51% |
▷ Class constants | 219 | 78.49% |
▷ Public constants | 219 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin