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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.14ms] Passed 4 tests
Server-side resources used by 百度翻译别名
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.58 ▼11.73 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.76 ▼3.25 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.90 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.84 ▼8.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.59 ▲7.73 |
百度翻译别名 /wp-admin/options-general.php?page=wp-slug-baidu-translate/wp-slug-baidu-translate.php | 3.21 | 31.08 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
百度翻译别名: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.41 ▲0.11 | 1.59 ▼0.77 | 41.41 ▲4.94 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▼0.02 | 100.20 ▼5.75 | 44.03 ▲3.07 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.00 | 40.65 ▲1.02 | 41.55 ▲6.82 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 23.35 ▲4.99 | 606.14 ▲2.45 | 47.11 ▼0.35 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.20 ▲0.02 | 98.25 ▼6.05 | 44.66 ▼2.51 |
百度翻译别名 /wp-admin/options-general.php?page=wp-slug-baidu-translate/wp-slug-baidu-translate.php | 842 | 2.02 | 23.73 | 72.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
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 add_action() in wp-content/plugins/wp-slug-baidu-translate/wp-slug-baidu-translate.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: postname, title, slug
wp-slug-baidu-translate/wp-slug-baidu-translate.php Passed 13 tests
The main file in "百度翻译别名" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
93 characters long description:
输入和编辑文章、页面标题时,通过百度翻译自动将别名翻译成英文。
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 plugin82 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 13 | 82 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-1.png | 14.54KB | 6.20KB | ▼ 57.37% |
images/qr-alipay.png | 16.18KB | 9.46KB | ▼ 41.53% |
images/screenshot-2.png | 17.77KB | 7.54KB | ▼ 57.57% |