Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/tencentcloud-captcha/TencentCloudCaptchaActions.php+721
Undefined index: site_report_on
Server metrics [RAM: ▲0.59MB] [CPU: ▼283.49ms] Passed 4 tests
Server-side resources used by 腾讯云验证码 (CAPTCHA)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.62 | 65.74 ▲6.46 |
Dashboard /wp-admin | 3.98 ▲0.57 | 72.10 ▲32.06 |
Posts /wp-admin/edit.php | 4.26 ▲0.63 | 46.73 ▼1.75 |
Add New Post /wp-admin/post-new.php | 7.50 ▲0.53 | 103.41 ▼1,149.71 |
Media Library /wp-admin/upload.php | 3.92 ▲0.63 | 37.86 ▲11.05 |
腾讯云设置 /wp-admin/admin.php?page=TencentWordpressPluginsCommonSettingPage | 3.90 | 45.54 |
验证码 /wp-admin/admin.php?page=tencent_wordpress_plugin_captcha | 3.94 | 32.85 |
Server storage [IO: ▲2.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 499 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_tencent_wordpress_options |
New WordPress options |
---|
tencent_wordpress_common_options |
tencent_wordpress_captcha_options |
Browser metrics Passed 4 tests
An overview of browser requirements for 腾讯云验证码 (CAPTCHA)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,858 ▲104 | 16.04 ▲0.01 | 5.83 ▼0.51 | 2.47 ▲0.02 |
Dashboard /wp-admin | 2,957 ▲99 | 6.56 ▲0.30 | 131.84 ▼3.68 | 180.27 ▼38.10 |
Posts /wp-admin/edit.php | 2,739 ▲51 | 3.32 ▲0.08 | 88.50 ▲23.69 | 186.91 ▲45.73 |
Add New Post /wp-admin/post-new.php | 11,614 ▲9,953 | 21.07 ▲4.44 | 747.46 ▲322.91 | 242.38 ▲89.05 |
Media Library /wp-admin/upload.php | 1,768 ▲74 | 6.07 ▲0.54 | 128.77 ▼21.13 | 208.38 ▼18.68 |
腾讯云设置 /wp-admin/admin.php?page=TencentWordpressPluginsCommonSettingPage | 1,549 | 3.51 | 82.62 | 224.84 |
验证码 /wp-admin/admin.php?page=tencent_wordpress_plugin_captcha | 1,818 | 3.46 | 104.15 | 186.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/tencentcloud-captcha/TencentCloudCaptchaActions.php+721
Undefined index: site_report_on
- The uninstall procedure failed, leaving 1 table in the database
- wp_tencent_wordpress_options
- Zombie WordPress options were found after uninstall: 1 option
- tencent_wordpress_common_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tencentcloud-captcha/common/tencent-wordpress-plugins-setting-page.php
- 342× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TencentCloud\\Common\\AbstractModel' not found in wp-content/plugins/tencentcloud-captcha/common/vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Ms/V20180408/Models/ScanSensitiveList.php:26
- > PHP Fatal error
Uncaught Error: Class 'TencentCloud\\Common\\AbstractModel' not found in wp-content/plugins/tencentcloud-captcha/vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Captcha/V20190722/Models/DescribeCaptchaUserAllAppIdRequest.php:25
- > PHP Warning
Use of undefined constant QCLOUDAPI_ROOT_PATH - assumed 'QCLOUDAPI_ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tencentcloud-captcha/common/vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Batch.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TencentCloud\\Common\\AbstractModel' not found in wp-content/plugins/tencentcloud-captcha/vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Captcha/V20190722/Models/CaptchaQueryData.php:28
- > PHP Fatal error
require_once(): Failed opening required 'QCLOUDAPI_ROOT_PATH/Module/Base.php' (include_path='.:/usr/share/php') in wp-content/plugins/tencentcloud-captcha/common/vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Monitor.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/tencentcloud-captcha/common/vendor/tencentcloud/tencentcloud-sdk-php/vendor/GuzzleHttp/Psr7/LazyOpenStream.php:10
- > PHP Warning
Use of undefined constant QCLOUDAPI_ROOT_PATH - assumed 'QCLOUDAPI_ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tencentcloud-captcha/common/vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Redis.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TencentCloud\\Common\\AbstractModel' not found in wp-content/plugins/tencentcloud-captcha/vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Captcha/V20190722/Models/DescribeCaptchaDataResponse.php:36
- > PHP Fatal error
Uncaught Error: Class 'TencentCloud\\Common\\AbstractModel' not found in wp-content/plugins/tencentcloud-captcha/common/vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Ms/V20180408/Models/PlanInfo.php:56
- > PHP Warning
require_once(QCLOUDAPI_ROOT_PATH/Module/Base.php): failed to open stream: No such file or directory in wp-content/plugins/tencentcloud-captcha/common/vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tbaas.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
4 plugin tags: tencent, tencentcloud, captcha, qcloud
tencentcloud-captcha/tencentcloud-captcha.php Passed 13 tests
The principal PHP file in "腾讯云验证码 (CAPTCHA)" v. 1.0.2 is loaded by WordPress automatically on each request
63 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 detected29,879 lines of code in 340 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 299 | 4,426 | 13,537 | 23,291 |
Markdown | 17 | 1,538 | 0 | 4,980 |
JSON | 18 | 0 | 0 | 1,389 |
JavaScript | 2 | 15 | 59 | 192 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
CSS | 2 | 0 | 11 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 12.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 43 | |
Traits | 6 | |
Classes | 334 | |
▷ Abstract classes | 6 | 1.80% |
▷ Concrete classes | 328 | 98.20% |
▷ Final classes | 27 | 8.23% |
Methods | 2,289 | |
▷ Static methods | 302 | 13.19% |
▷ Public methods | 1,904 | 83.18% |
▷ Protected methods | 17 | 0.74% |
▷ Private methods | 368 | 16.08% |
Functions | 477 | |
▷ Named functions | 213 | 44.65% |
▷ Anonymous functions | 264 | 55.35% |
Constants | 285 | |
▷ Global constants | 62 | 21.75% |
▷ Class constants | 223 | 78.25% |
▷ Public constants | 223 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin