Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.90ms] Passed 4 tests
Analyzing server-side resources used by [凹凸曼]自动同步腾讯云对象存储COS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.88 ▼10.12 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.66 ▼2.87 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.59 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.12 ▲2.66 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.99 ▲2.48 |
settings /wp-admin/options-general.php?page=apoyl-tencentcos-settings | 3.29 | 32.47 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 276 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_apoyl_tencentcos |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
apoyl_tencentcos_db_version |
apoyl-tencentcos-settings |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for [凹凸曼]自动同步腾讯云对象存储COS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.20 ▼0.51 | 1.70 ▲0.02 | 38.92 ▼5.73 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.09 | 94.07 ▼9.84 | 40.35 ▼6.91 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.01 | 39.77 ▼3.97 | 39.95 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,532 ▼5 | 23.20 ▲0.05 | 585.43 ▼18.15 | 57.13 ▼1.35 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.16 ▼0.02 | 99.95 ▲0.22 | 39.90 ▼3.00 |
settings /wp-admin/options-general.php?page=apoyl-tencentcos-settings | 959 | 2.00 | 25.03 | 28.45 |
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
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_apoyl_tencentcos
- This plugin does not fully uninstall, leaving 7 options in the database
- apoyl_tencentcos_db_version
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 90× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\AbstractLocation' not found in wp-content/plugins/apoyl-tencentcos/api/cos-sdk-v5-7/vendor/guzzlehttp/guzzle-services/src/RequestLocation/MultiPartLocation.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/apoyl-tencentcos/api/cos-sdk-v5-7/vendor/guzzlehttp/psr7/src/InflateStream.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/apoyl-tencentcos/api/cos-sdk-v5-7/vendor/guzzlehttp/psr7/src/UploadedFile.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Command\\ServiceClientInterface' not found in wp-content/plugins/apoyl-tencentcos/api/cos-sdk-v5-7/vendor/guzzlehttp/command/src/ServiceClient.php:16
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\AbstractLocation' not found in wp-content/plugins/apoyl-tencentcos/api/cos-sdk-v5-7/vendor/guzzlehttp/guzzle-services/src/ResponseLocation/JsonLocation.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Command\\ToArrayInterface' not found in wp-content/plugins/apoyl-tencentcos/api/cos-sdk-v5-7/vendor/guzzlehttp/guzzle-services/src/Parameter.php:9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\AbstractLocation' not found in wp-content/plugins/apoyl-tencentcos/api/cos-sdk-v5-7/vendor/guzzlehttp/guzzle-services/src/RequestLocation/XmlLocation.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/apoyl-tencentcos/api/cos-sdk-v5-7/vendor/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/apoyl-tencentcos/api/cos-sdk-v5-7/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/apoyl-tencentcos/api/cos-sdk-v5-7/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add a description for screenshot #3 in apoyl-tencentcos/assets to your readme.txt
apoyl-tencentcos/apoyl-tencentcos.php 92% from 13 tests
The primary PHP file in "[凹凸曼]自动同步腾讯云对象存储COS" version 1.7.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected34,830 lines of code in 254 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 209 | 3,147 | 8,205 | 28,930 |
Markdown | 22 | 1,529 | 0 | 4,091 |
JSON | 17 | 0 | 0 | 1,742 |
XML | 2 | 0 | 0 | 46 |
make | 2 | 4 | 0 | 11 |
YAML | 1 | 0 | 0 | 7 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 11.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 35 | |
Traits | 4 | |
Classes | 149 | |
▷ Abstract classes | 2 | 1.34% |
▷ Concrete classes | 147 | 98.66% |
▷ Final classes | 37 | 25.17% |
Methods | 1,313 | |
▷ Static methods | 249 | 18.96% |
▷ Public methods | 1,135 | 86.44% |
▷ Protected methods | 26 | 1.98% |
▷ Private methods | 152 | 11.58% |
Functions | 168 | |
▷ Named functions | 51 | 30.36% |
▷ Anonymous functions | 117 | 69.64% |
Constants | 86 | |
▷ Global constants | 5 | 5.81% |
▷ Class constants | 81 | 94.19% |
▷ Public constants | 70 | 86.42% |
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
No PNG images were found in this plugin