Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.86MB] [CPU: ▲2.06ms] 75% from 4 tests
Analyzing server-side resources used by Sync QCloud COS
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 9,727.45ms on /wp-admin/admin.php?page=sync-qcloud-cos-metric)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 40.77 ▲3.64 |
Dashboard /wp-admin | 4.32 ▲1.01 | 55.45 ▲4.93 |
Posts /wp-admin/edit.php | 4.37 ▲1.01 | 52.48 ▲6.46 |
Add New Post /wp-admin/post-new.php | 6.84 ▲0.95 | 88.60 ▼5.65 |
Media Library /wp-admin/upload.php | 4.18 ▲0.95 | 39.28 ▲5.31 |
联系作者 /wp-admin/admin.php?page=sync-qcloud-cos-contact | 4.14 | 34.37 |
数据监控 /wp-admin/admin.php?page=sync-qcloud-cos-metric | 5.41 | 9,727.45 |
配置 /wp-admin/admin.php?page=sync-qcloud-cos-config | 4.14 | 35.25 |
数据迁移 /wp-admin/admin.php?page=sync-qcloud-cos-sync | 4.14 | 34.57 |
腾讯云 COS /wp-admin/admin.php?page=sync-qcloud-cos | 4.14 | 34.13 |
腾讯云 COS /wp-admin/options-general.php?page=sync-qcloud-cos/sync-qcloud-cos.php | 4.15 | 35.58 |
文档处理 /wp-admin/admin.php?page=sync-qcloud-cos-document | 4.14 | 34.16 |
文本审核 /wp-admin/admin.php?page=sync-qcloud-cos-text | 4.14 | 31.85 |
图片极智压缩 /wp-admin/admin.php?page=sync-qcloud-cos-slim | 4.14 | 35.37 |
Server storage [IO: ▲3.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 297 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cos_options |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Sync QCloud COS
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲83 | 14.29 ▼0.06 | 1.57 ▼0.08 | 35.74 ▼8.21 |
Dashboard /wp-admin | 2,253 ▲75 | 5.63 ▼0.05 | 97.72 ▼11.33 | 51.41 ▲8.94 |
Posts /wp-admin/edit.php | 2,152 ▲55 | 2.00 ▲0.06 | 39.08 ▲0.42 | 46.81 ▲13.52 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.69 ▲0.31 | 677.97 ▲46.23 | 51.73 ▼10.47 |
Media Library /wp-admin/upload.php | 1,452 ▲55 | 4.17 ▼0.09 | 99.91 ▲0.11 | 50.45 ▲6.63 |
联系作者 /wp-admin/admin.php?page=sync-qcloud-cos-contact | 959 | 2.00 | 28.09 | 91.78 |
数据监控 /wp-admin/admin.php?page=sync-qcloud-cos-metric | 1,658 | 4.22 | 116.27 | 99.25 |
配置 /wp-admin/admin.php?page=sync-qcloud-cos-config | 1,399 | 2.00 | 23.06 | 102.87 |
数据迁移 /wp-admin/admin.php?page=sync-qcloud-cos-sync | 1,034 | 2.00 | 22.52 | 76.35 |
腾讯云 COS /wp-admin/admin.php?page=sync-qcloud-cos | 1,402 | 1.97 | 25.30 | 86.29 |
腾讯云 COS /wp-admin/options-general.php?page=sync-qcloud-cos/sync-qcloud-cos.php | 1,399 | 2.00 | 23.21 | 94.41 |
文档处理 /wp-admin/admin.php?page=sync-qcloud-cos-document | 970 | 2.13 | 24.96 | 61.48 |
文本审核 /wp-admin/admin.php?page=sync-qcloud-cos-text | 1,036 | 2.14 | 24.81 | 65.51 |
图片极智压缩 /wp-admin/admin.php?page=sync-qcloud-cos-slim | 1,045 | 2.13 | 23.87 | 73.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 take a closer look at the following
- 103× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/sync-qcloud-cos/cos-sdk-v5/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'Qcloud\\Cos\\ImageParamTemplate\\ImageTemplate' not found in wp-content/plugins/sync-qcloud-cos/cos-sdk-v5/vendor/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageQrcodeTemplate.php:5
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\AbstractLocation' not found in wp-content/plugins/sync-qcloud-cos/cos-sdk-v5/vendor/guzzlehttp/guzzle-services/src/RequestLocation/FormParamLocation.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Guzzle\\Serializer' not found in wp-content/plugins/sync-qcloud-cos/cos-sdk-v5/vendor/qcloud/cos-sdk-v5/src/Serializer.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\ResponseLocationInterface' not found in wp-content/plugins/sync-qcloud-cos/cos-sdk-v5/vendor/guzzlehttp/guzzle-services/src/ResponseLocation/AbstractLocation.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/sync-qcloud-cos/cos-sdk-v5/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\AbstractLocation' not found in wp-content/plugins/sync-qcloud-cos/cos-sdk-v5/vendor/guzzlehttp/guzzle-services/src/ResponseLocation/BodyLocation.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Exception\\CommandException' not found in wp-content/plugins/sync-qcloud-cos/cos-sdk-v5/vendor/guzzlehttp/command/src/Exception/CommandServerException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\AbstractLocation' not found in wp-content/plugins/sync-qcloud-cos/cos-sdk-v5/vendor/guzzlehttp/guzzle-services/src/RequestLocation/MultiPartLocation.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\AbstractLocation' not found in wp-content/plugins/sync-qcloud-cos/cos-sdk-v5/vendor/guzzlehttp/guzzle-services/src/ResponseLocation/JsonLocation.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: tencent, qcloud, cos
sync-qcloud-cos/sync-qcloud-cos.php 92% from 13 tests
Analyzing the main PHP file in "Sync QCloud COS" version 2.3.6
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 163 characters long)
Code Analysis 97% from 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
There were no executable files found in this plugin68,103 lines of code in 275 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 234 | 3,973 | 10,054 | 61,604 |
Markdown | 21 | 1,673 | 0 | 4,684 |
JSON | 17 | 0 | 0 | 1,776 |
XML | 1 | 0 | 0 | 19 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 5 | 0 | 10 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 13.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 24 | |
Traits | 3 | |
Classes | 175 | |
▷ Abstract classes | 4 | 2.29% |
▷ Concrete classes | 171 | 97.71% |
▷ Final classes | 25 | 14.62% |
Methods | 1,654 | |
▷ Static methods | 491 | 29.69% |
▷ Public methods | 1,436 | 86.82% |
▷ Protected methods | 32 | 1.93% |
▷ Private methods | 186 | 11.25% |
Functions | 243 | |
▷ Named functions | 126 | 51.85% |
▷ Anonymous functions | 117 | 48.15% |
Constants | 202 | |
▷ Global constants | 48 | 23.76% |
▷ Class constants | 154 | 76.24% |
▷ Public constants | 154 | 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 are no PNG files in this plugin