Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▲0.59ms] Passed 4 tests
A check of server-side resources used by 优刻得UCloud对象存储插件
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 38.47 ▼1.12 |
Dashboard /wp-admin | 3.56 ▲0.25 | 45.34 ▲0.29 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 50.46 ▲4.82 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 92.77 ▲3.27 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 35.95 ▼0.08 |
UCloud云存储设置 /wp-admin/options-general.php?page=wpufile-ucloud/index.php | 3.49 | 35.95 |
Server storage [IO: ▲2.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
WPUFile_options |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
优刻得UCloud对象存储插件: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.56 ▼0.82 | 1.70 ▼0.18 | 44.03 ▼2.21 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.95 | 94.91 ▼4.17 | 43.12 ▼0.16 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.05 | 38.38 ▲3.28 | 39.81 ▲3.38 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 18.46 ▼4.92 | 664.12 ▼22.12 | 73.43 ▲19.48 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.21 ▼0.05 | 91.91 ▼6.22 | 43.95 ▼1.15 |
UCloud云存储设置 /wp-admin/options-general.php?page=wpufile-ucloud/index.php | 1,242 | 1.88 | 35.69 | 117.14 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wpufile-ucloud/setting.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: wordpress ucloud, wordpress, ufile
wpufile-ucloud/index.php 85% from 13 tests
The primary PHP file in "优刻得UCloud对象存储插件" version 2.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wpufile-ucloud.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,022 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 209 | 126 | 1,784 |
SVG | 1 | 356 | 3 | 195 |
Markdown | 2 | 5 | 0 | 28 |
JavaScript | 6 | 0 | 5 | 9 |
CSS | 6 | 0 | 4 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 81.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.92% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 15 | |
▷ Global constants | 4 | 26.67% |
▷ Class constants | 11 | 73.33% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.53MB with 0.41MB 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/css/modules/layer/default/icon-ext.png | 5.77KB | 2.91KB | ▼ 49.62% |
layui/images/footer_logo.png | 24.87KB | 0.95KB | ▼ 96.18% |
screenshot-1.png | 407.07KB | 60.80KB | ▼ 85.06% |
layui/images/logo.png | 24.44KB | 0.95KB | ▼ 96.10% |