Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼1.41ms] Passed 4 tests
Server-side resources used by WPOSS阿里云对象存储
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.58 | 42.52 ▼4.49 |
Dashboard /wp-admin | 3.88 ▲0.57 | 50.20 ▼4.83 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 56.39 ▲5.81 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 101.85 ▼2.13 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 43.26 ▲6.61 |
WPOSS设置 /wp-admin/options-general.php?page=wposs/index.php | 3.75 | 39.06 |
Server storage [IO: ▲2.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 177 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
wposs_options |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WPOSS阿里云对象存储
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.72 ▲0.56 | 1.69 ▼0.37 | 43.12 ▼1.83 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▼0.02 | 102.77 ▲6.97 | 49.92 ▲4.17 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.03 | 41.66 ▲3.96 | 44.97 ▲7.04 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.18 ▲0.18 | 654.57 ▼15.54 | 52.21 ▼2.65 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▲0.01 | 106.03 ▲4.22 | 50.29 ▲3.58 |
WPOSS设置 /wp-admin/options-general.php?page=wposs/index.php | 1,306 | 1.81 | 38.63 | 124.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 14× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/samples/BucketLifecycle.php
- > /wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/samples/RunAll.php
- > /wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/samples/Callback.php
- > /wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/samples/BucketCors.php
- > /wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/samples/LiveChannel.php
- > /wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/samples/Bucket.php
- > /wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/samples/BucketReferer.php
- > /wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/samples/Object.php
- > /wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/samples/Image.php
- > /wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/samples/Signature.php
- 96× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/tests/OSS/Tests/CorsConfigTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/tests/OSS/Tests/MimeTypesTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'OSS\\Result\\Result' not found in wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/src/OSS/Result/SymlinkResult.php:12
- > PHP Fatal error
Uncaught Error: Class 'OSS\\Result\\Result' not found in wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/src/OSS/Result/GetLocationResult.php:12
- > PHP Fatal error
Uncaught Error: Interface 'OSS\\Model\\XmlConfig' not found in wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/src/OSS/Model/RefererConfig.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/tests/OSS/Tests/BucketInfoTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/tests/OSS/Tests/TestOssClientBase.php:9
- > PHP Fatal error
Uncaught Error: Class 'OSS\\Result\\Result' not found in wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/src/OSS/Result/DeleteObjectsResult.php:10
- > PHP Fatal error
Uncaught Error: Class 'OSS\\Result\\Result' not found in wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/src/OSS/Result/GetStorageCapacityResult.php:13
- > PHP Fatal error
Uncaught Error: Interface 'OSS\\Model\\XmlConfig' not found in wp-content/plugins/wposs/sdk/aliyun-oss-php-sdk/src/OSS/Model/LifecycleConfig.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: wordpress oss, oss
wposs/index.php 85% from 13 tests
The main PHP script in "WPOSS阿里云对象存储" version 4.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wposs.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin11,398 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 1,769 | 3,300 | 10,842 |
Markdown | 4 | 136 | 0 | 276 |
SVG | 1 | 356 | 3 | 195 |
JSON | 1 | 0 | 0 | 24 |
YAML | 2 | 0 | 0 | 23 |
XML | 1 | 1 | 0 | 18 |
JavaScript | 6 | 0 | 5 | 9 |
CSS | 6 | 0 | 4 | 6 |
Bourne Shell | 1 | 4 | 4 | 5 |
PHP code Passed 2 tests
A brief analysis 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.19 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 118 | |
▷ Abstract classes | 1 | 0.85% |
▷ Concrete classes | 117 | 99.15% |
▷ Final classes | 1 | 0.85% |
Methods | 641 | |
▷ Static methods | 32 | 4.99% |
▷ Public methods | 552 | 86.12% |
▷ Protected methods | 37 | 5.77% |
▷ Private methods | 52 | 8.11% |
Functions | 46 | |
▷ Named functions | 45 | 97.83% |
▷ Anonymous functions | 1 | 2.17% |
Constants | 135 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 135 | 100.00% |
▷ Public constants | 135 | 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
5 PNG files occupy 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
layui/images/logo.png | 24.44KB | 0.95KB | ▼ 96.10% |
layui/images/qrcode.png | 72.54KB | 12.37KB | ▼ 82.94% |
layui/css/modules/layer/default/icon-ext.png | 5.77KB | 2.91KB | ▼ 49.62% |
layui/images/footer_logo.png | 24.87KB | 0.95KB | ▼ 96.18% |
layui/css/modules/layer/default/icon.png | 11.22KB | 4.36KB | ▼ 61.19% |