Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/qiniu-speed/QiniuSpeed.php+11
date_default_timezone_set(): Timezone ID '' is invalid
Server metrics [RAM: ▼1.89MB] [CPU: ▼56.70ms] Passed 4 tests
This is a short check of server-side resources used by QiniuSpeed for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 4.71 ▼33.95 |
Dashboard /wp-admin | 2.13 ▼1.18 | 6.93 ▼46.94 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.62 ▼48.79 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.77 | 5.91 ▼97.12 |
Media Library /wp-admin/upload.php | 2.13 ▼1.11 | 4.84 ▼33.36 |
七牛云存储 /wp-admin/options-general.php?page=QiniuSpeed | 2.13 | 5.56 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
QiniuSpeed for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 14.78 ▲0.42 | 2.03 ▲0.32 | 43.44 ▲2.32 |
Dashboard /wp-admin | 2,215 ▲38 | 5.68 ▲0.00 | 90.28 ▼2.58 | 45.69 ▲6.92 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 2.19 ▲0.17 | 35.18 ▼0.23 | 40.35 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,534 ▼4 | 23.11 ▲0.06 | 641.01 ▼52.90 | 51.50 ▼9.93 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.39 ▲0.21 | 101.91 ▲0.71 | 46.65 ▼0.59 |
七牛云存储 /wp-admin/options-general.php?page=QiniuSpeed | 898 | 2.07 | 24.17 | 70.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/qiniu-speed/QiniuSpeed.php+11
date_default_timezone_set(): Timezone ID '' is invalid
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=QiniuSpeed
- > Notice in wp-content/plugins/qiniu-speed/QiniuSpeed.php+11
date_default_timezone_set(): Timezone ID '' is invalid
- > GET request to /wp-admin/options-general.php?page=QiniuSpeed
- > Notice in wp-content/plugins/qiniu-speed/QiniuSpeed.php+15
Undefined index: bucket
- > GET request to /wp-admin/options-general.php?page=QiniuSpeed
- > Notice in wp-content/plugins/qiniu-speed/QiniuSpeed.php+18
Undefined index: accesskey
- > GET request to /wp-admin/options-general.php?page=QiniuSpeed
- > Notice in wp-content/plugins/qiniu-speed/QiniuSpeed.php+19
Undefined index: secretkey
- > GET request to /wp-admin/options-general.php?page=QiniuSpeed
- > Notice in wp-content/plugins/qiniu-speed/QiniuSpeed.php+20
Undefined index: storagepath
- > GET request to /wp-admin/options-general.php?page=QiniuSpeed
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the QiniuSpeed_scripts handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=QiniuSpeed
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the QiniuSpeed_scripts handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=QiniuSpeed
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-form handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=QiniuSpeed
- > Notice in wp-content/plugins/qiniu-speed/QiniuSpeed.php+238
Undefined variable: value
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 fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qiniu-speed/InfoFromQiniu.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/qiniu-speed/QiniuSpeed.php:11
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 ([1.png Screenshots](http://qiniuspeed.qiniudn.com/1.png)), #2 ([2.png Screenshots](http://qiniuspeed.qiniudn.com/2.png))
qiniu-speed/QiniuSpeed.php 85% from 13 tests
This is the main PHP file of "QiniuSpeed for WordPress" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("qiniu-speed.php" instead of "QiniuSpeed.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 925 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,080 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 216 | 128 | 1,021 |
JavaScript | 1 | 10 | 24 | 59 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 61 | |
▷ Named functions | 61 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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
4 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 46.46KB | 16.02KB | ▼ 65.53% |
screenshot-1.png | 6.61KB | 3.52KB | ▼ 46.78% |
qiniulogo.png | 4.69KB | 1.31KB | ▼ 72.09% |
alipaylogo.png | 2.52KB | 1.04KB | ▼ 58.59% |