Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.89ms] Passed 4 tests
Server-side resources used by 小蜜蜂-Beedia|图片管理插件,支持七牛云存储
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.20 ▼2.35 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.24 ▼0.62 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.61 ▲2.21 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.03 ▼10.81 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.66 ▲3.29 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for 小蜜蜂-Beedia|图片管理插件,支持七牛云存储
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲59 | 13.29 ▼1.36 | 4.41 ▲2.14 | 39.62 ▼6.30 |
Dashboard /wp-admin | 2,222 ▲36 | 4.82 ▼0.15 | 107.14 ▼8.76 | 38.80 ▼4.72 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▼0.01 | 38.62 ▼2.03 | 34.23 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.07 ▲4.88 | 671.34 ▲66.62 | 50.47 ▼3.94 |
Media Library /wp-admin/upload.php | 1,404 ▲22 | 4.12 ▼0.19 | 109.47 ▲8.89 | 47.53 ▲4.57 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/beedia/beedia.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/beedia/options-page.php:3
- > PHP Fatal error
Uncaught Error: Class 'Qiniu\\Config' not found in wp-content/plugins/beedia/lib/Qiniu/functions.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Tags: There were no tags found
beedia/beedia.php 92% from 13 tests
The main PHP file in "小蜜蜂-Beedia|图片管理插件,支持七牛云存储" ver. 2.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
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
There were no executable files found in this plugin2,321 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 356 | 721 | 2,209 |
JavaScript | 2 | 4 | 7 | 111 |
CSS | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 16 | 94.12% |
Methods | 134 | |
▷ Static methods | 37 | 27.61% |
▷ Public methods | 101 | 75.37% |
▷ Protected methods | 2 | 1.49% |
▷ Private methods | 31 | 23.13% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 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
No PNG files were detected