Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.66ms] Passed 4 tests
Analyzing server-side resources used by WP百度翻译插件
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.47 ▲3.64 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.50 ▲2.72 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.01 ▲2.87 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 83.57 ▼11.86 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.95 ▲6.72 |
WP百度翻译管理 /wp-admin/options-general.php?page=wp_bdfy_pack | 3.25 | 35.47 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP百度翻译插件
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.80 ▲0.42 | 1.96 ▲0.34 | 43.16 ▲3.53 |
Dashboard /wp-admin | 2,210 ▲25 | 5.79 ▼0.03 | 104.66 ▼0.70 | 40.96 ▲0.61 |
Posts /wp-admin/edit.php | 2,093 ▲22 | 1.99 ▼0.03 | 39.84 ▲0.46 | 40.38 ▲8.35 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.06 ▲4.88 | 618.26 ▲25.50 | 46.78 ▼10.12 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.21 ▼0.03 | 93.86 ▼10.57 | 48.89 ▲2.66 |
WP百度翻译管理 /wp-admin/options-general.php?page=wp_bdfy_pack | 1,000 | 2.21 | 23.95 | 87.75 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=wp_bdfy_pack
- > Network (severe)
https://www.wbolt.com/wb-api/v1/news/lastest - Failed to load resource: the server responded with a status of 500 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: baidu
wp-baidu-fanyi/index.php 85% from 13 tests
"WP百度翻译插件" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-baidu-fanyi.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin700 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 122 | 53 | 663 |
JavaScript | 3 | 29 | 0 | 34 |
CSS | 3 | 0 | 12 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 4 | 25.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 1.29MB with 0.93MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot/banner-1544x500.png | 779.55KB | 241.22KB | ▼ 69.06% |
screenshot/banner-772x250.png | 211.27KB | 72.64KB | ▼ 65.62% |
screenshot/icon-128x128.png | 73.01KB | 18.78KB | ▼ 74.28% |
screenshot/icon-256x256.png | 259.12KB | 57.39KB | ▼ 77.85% |