Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼8.37ms] Passed 4 tests
Analyzing server-side resources used by Eyoung Service Online System - Eyoung在线客服系统
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 45.52 ▲1.14 |
Dashboard /wp-admin | 3.63 ▲0.28 | 54.79 ▼16.53 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 55.12 ▼0.66 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 94.51 ▼17.43 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 41.39 ▲1.87 |
客服中心 /wp-admin/admin.php?page=ey_serviceonline-gocenter | 3.52 | 37.52 |
客户管理 /wp-admin/admin.php?page=ey_serviceonline-customer | 3.53 | 38.33 |
沟通记录 /wp-admin/admin.php?page=ey_serviceonline-chat | 3.53 | 34.80 |
客服设置 /wp-admin/admin.php?page=ey_serviceonline-setsever | 3.53 | 35.99 |
参数设置 /wp-admin/admin.php?page=ey_serviceonline-setting | 3.58 | 33.80 |
Server storage [IO: ▲1.35MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 148 new files
Database: 7 new tables, 7 new options
New tables |
---|
wp_ey_serviceonline_attach |
wp_ey_serviceonline_customer |
wp_ey_serviceonline_maillog |
wp_ey_serviceonline_setting |
wp_ey_serviceonline_editlog |
wp_ey_serviceonline_content |
wp_ey_serviceonline_track |
New WordPress options |
---|
eyser_options |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Eyoung Service Online System - Eyoung在线客服系统: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,083 ▲322 | 14.35 ▼0.36 | 9.50 ▲7.68 | 44.26 ▲2.73 |
Dashboard /wp-admin | 2,338 ▲161 | 5.77 ▲0.10 | 91.39 ▲0.21 | 45.41 ▲3.70 |
Posts /wp-admin/edit.php | 2,253 ▲153 | 2.72 ▲0.70 | 45.17 ▲9.51 | 40.28 ▲4.11 |
Add New Post /wp-admin/post-new.php | 1,823 ▲287 | 23.72 ▲5.64 | 705.37 ▲84.08 | 42.76 ▼37.46 |
Media Library /wp-admin/upload.php | 1,555 ▲152 | 5.15 ▲0.92 | 109.48 ▲4.41 | 51.73 ▲5.34 |
客服中心 /wp-admin/admin.php?page=ey_serviceonline-gocenter | 1,476 | 3.05 | 32.57 | 66.46 |
客户管理 /wp-admin/admin.php?page=ey_serviceonline-customer | 1,096 | 2.83 | 47.18 | 75.63 |
沟通记录 /wp-admin/admin.php?page=ey_serviceonline-chat | 1,059 | 2.70 | 48.35 | 52.71 |
客服设置 /wp-admin/admin.php?page=ey_serviceonline-setsever | 1,172 | 2.37 | 40.34 | 49.01 |
参数设置 /wp-admin/admin.php?page=ey_serviceonline-setting | 1,682 | 2.57 | 41.60 | 52.07 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/eyoung/assets/servicecenter.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eyoung/assets/setting.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eyoung/assets/scripth5.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eyoung/assets/customer.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eyoung/assets/chat.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eyoung/assets/sever.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eyoung/assets/scriptpc.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: contact, chat, email, qq, webim...
eyoung/index.php 92% from 13 tests
The main PHP script in "Eyoung Service Online System - Eyoung在线客服系统" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("eyoung.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,896 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 230 | 74 | 2,687 |
SVG | 1 | 356 | 3 | 195 |
JavaScript | 4 | 0 | 0 | 8 |
CSS | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 25.44 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 89 | 96.74% |
▷ Public methods | 70 | 76.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 23.91% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/css/modules/layer/default/icon-ext.png | 5.77KB | 2.91KB | ▼ 49.62% |
images/ver.png | 1.70KB | 1.58KB | ▼ 7.16% |
images/ser.png | 8.01KB | 2.51KB | ▼ 68.63% |
dist/css/modules/layer/default/icon.png | 11.22KB | 4.36KB | ▼ 61.19% |