Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼4.01ms] Passed 4 tests
An overview of server-side resources used by KODO Qiniu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 43.10 ▼5.02 |
Dashboard /wp-admin | 3.60 ▲0.30 | 52.85 ▲2.58 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 47.69 ▼5.58 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 85.98 ▼8.02 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 39.90 ▲5.14 |
七牛云 KODO /wp-admin/options-general.php?page=kodo-qiniu/qiniu-kodo-wordpress.php | 3.43 | 36.50 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
kodo_options |
Browser metrics Passed 4 tests
KODO Qiniu: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.36 | 1.68 ▲0.01 | 44.42 ▼4.81 |
Dashboard /wp-admin | 2,193 ▲13 | 5.54 ▼0.08 | 85.33 ▼12.87 | 46.20 ▲3.01 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.03 | 38.62 ▲1.03 | 41.30 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.21 ▲0.11 | 652.32 ▼45.68 | 65.39 ▲1.30 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▼0.03 | 118.13 ▲14.42 | 55.23 ▲9.08 |
七牛云 KODO /wp-admin/options-general.php?page=kodo-qiniu/qiniu-kodo-wordpress.php | 1,198 | 2.16 | 24.70 | 88.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Qiniu\\Enum\\QiniuEnum' not found in wp-content/plugins/kodo-qiniu/sdk/vendor/qiniu/php-sdk/src/Qiniu/Enum/SplitUploadVersion.php:5
- > PHP Fatal error
Uncaught Error: Class 'Qiniu\\Config' not found in wp-content/plugins/kodo-qiniu/sdk/vendor/qiniu/php-sdk/src/Qiniu/functions.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Qiniu\\Http\\Middleware\\Middleware' not found in wp-content/plugins/kodo-qiniu/sdk/vendor/qiniu/php-sdk/src/Qiniu/Http/Middleware/RetryDomainsMiddleware.php:7
- > PHP Fatal error
Uncaught Error: Class 'Qiniu\\Region' not found in wp-content/plugins/kodo-qiniu/sdk/vendor/qiniu/php-sdk/src/Qiniu/Zone.php:6
- > PHP Fatal error
Uncaught Error: Class 'MyCLabs\\Enum\\Enum' not found in wp-content/plugins/kodo-qiniu/sdk/vendor/qiniu/php-sdk/src/Qiniu/Enum/QiniuEnum.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (设置页面), #2 (数据库替换)
kodo-qiniu/qiniu-kodo-wordpress.php 85% from 13 tests
The main file in "KODO Qiniu" v. 1.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kodo-qiniu.php" instead of "qiniu-kodo-wordpress.php")
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 plugin5,833 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 864 | 2,136 | 5,298 |
Markdown | 5 | 124 | 0 | 337 |
JSON | 4 | 0 | 0 | 194 |
Bourne Shell | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of 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.35 |
Average class complexity | 17.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 3 | 9.38% |
▷ Concrete classes | 29 | 90.62% |
▷ Final classes | 19 | 65.52% |
Methods | 306 | |
▷ Static methods | 83 | 27.12% |
▷ Public methods | 250 | 81.70% |
▷ Protected methods | 2 | 0.65% |
▷ Private methods | 54 | 17.65% |
Functions | 47 | |
▷ Named functions | 42 | 89.36% |
▷ Anonymous functions | 5 | 10.64% |
Constants | 18 | |
▷ Global constants | 3 | 16.67% |
▷ Class constants | 15 | 83.33% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.39MB with 0.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 61.75KB | 19.51KB | ▼ 68.41% |
screenshot-1.png | 333.51KB | 101.13KB | ▼ 69.68% |