Benchmarks
Plugin footprint 83% 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.35MB] [CPU: ▼4.91ms] Passed 4 tests
Server-side resources used by WPUPYUN又拍云云存储
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 38.33 ▼2.65 |
Dashboard /wp-admin | 3.70 ▲0.39 | 46.52 ▼0.61 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 47.12 ▼3.27 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 85.95 ▼13.12 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 38.64 ▲4.52 |
又拍云存储设置 /wp-admin/options-general.php?page=wpupyun/actions.php | 3.52 | 31.94 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 162 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
wpupyun_options |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WPUPYUN又拍云云存储
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.23 ▼0.95 | 1.55 ▼0.10 | 38.24 ▼2.98 |
Dashboard /wp-admin | 2,210 ▲28 | 5.90 ▼0.00 | 97.07 ▼2.91 | 44.12 ▼4.13 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.00 | 33.50 ▼8.72 | 37.97 ▲1.90 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.15 ▲5.66 | 667.11 ▲25.55 | 52.18 ▼5.53 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.18 ▼0.05 | 96.64 ▼3.69 | 45.57 ▲1.00 |
又拍云存储设置 /wp-admin/options-general.php?page=wpupyun/actions.php | 1,266 | 1.83 | 41.24 | 147.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
- 46× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wpupyun/sdk/vendor/guzzlehttp/psr7/src/AppendStream.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/wpupyun/sdk/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wpupyun/sdk/vendor/guzzlehttp/promises/src/Coroutine.php:43
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/wpupyun/sdk/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wpupyun/sdk/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wpupyun/sdk/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wpupyun/sdk/vendor/guzzlehttp/psr7/src/InflateStream.php:17
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/wpupyun/sdk/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/wpupyun/sdk/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/wpupyun/sdk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: wordpress
wpupyun/index.php 85% from 13 tests
The entry point to "WPUPYUN又拍云云存储" version 3.9.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpupyun.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
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 plugin13,655 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,829 | 5,186 | 9,469 |
Markdown | 12 | 1,196 | 0 | 3,493 |
JSON | 6 | 0 | 0 | 427 |
SVG | 1 | 356 | 3 | 195 |
XML | 1 | 0 | 0 | 25 |
YAML | 1 | 1 | 0 | 22 |
JavaScript | 6 | 0 | 5 | 9 |
make | 1 | 4 | 0 | 9 |
CSS | 6 | 0 | 4 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 73 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 73 | 100.00% |
▷ Final classes | 7 | 9.59% |
Methods | 686 | |
▷ Static methods | 72 | 10.50% |
▷ Public methods | 574 | 83.67% |
▷ Protected methods | 4 | 0.58% |
▷ Private methods | 108 | 15.74% |
Functions | 162 | |
▷ Named functions | 74 | 45.68% |
▷ Anonymous functions | 88 | 54.32% |
Constants | 62 | |
▷ Global constants | 4 | 6.45% |
▷ Class constants | 58 | 93.55% |
▷ Public constants | 58 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.44MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
layui/css/modules/layer/default/icon.png | 11.22KB | 4.36KB | ▼ 61.19% |
layui/images/footer_logo.png | 24.87KB | 0.95KB | ▼ 96.18% |
screenshot-1.png | 307.89KB | 53.76KB | ▼ 82.54% |
layui/css/modules/layer/default/icon-ext.png | 5.77KB | 2.91KB | ▼ 49.62% |
layui/images/logo.png | 24.44KB | 0.95KB | ▼ 96.10% |