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.29MB] [CPU: ▼0.74ms] Passed 4 tests
A check of server-side resources used by Eyoung Chat - Ey聊天极简版
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 37.74 ▼3.24 |
Dashboard /wp-admin | 3.59 ▲0.29 | 45.41 ▼4.25 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 46.58 ▲1.44 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 89.51 ▲3.11 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 42.25 ▲6.59 |
设置 /wp-admin/admin.php?page=ey_chat-setting | 3.51 | 31.22 |
访问 /wp-admin/admin.php?page=ey_chat-gochat | 3.49 | 33.23 |
Server storage [IO: ▲1.59MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 178 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_ey_chat_room_apply |
wp_ey_chat_room_member |
wp_ey_chat_content |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
eychat_options |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Eyoung Chat - Ey聊天极简版
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,086 ▲351 | 14.73 ▲0.50 | 8.87 ▲7.13 | 39.60 ▼8.98 |
Dashboard /wp-admin | 2,342 ▲157 | 5.97 ▲0.10 | 119.76 ▲11.30 | 47.92 ▲3.22 |
Posts /wp-admin/edit.php | 2,234 ▲145 | 2.69 ▲0.68 | 45.46 ▲11.97 | 42.48 ▲6.71 |
Add New Post /wp-admin/post-new.php | 1,805 ▲286 | 23.63 ▲0.45 | 638.30 ▼41.45 | 40.64 ▼11.57 |
Media Library /wp-admin/upload.php | 1,527 ▲136 | 5.16 ▲0.91 | 108.79 ▲5.76 | 48.60 ▲3.33 |
设置 /wp-admin/admin.php?page=ey_chat-setting | 2,244 | 3.31 | 66.47 | 79.38 |
访问 /wp-admin/admin.php?page=ey_chat-gochat | 1,555 | 3.54 | 47.69 | 104.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=ey_chat-setting
- > Notice in wp-content/plugins/eychat/assets/admin.php+39
Undefined index: limitdate
- > GET request to /wp-admin/admin.php?page=ey_chat-gochat
- > Notice in wp-content/plugins/eychat/assets/chat.php+7
Undefined variable: cfg
- > GET request to /wp-admin/admin.php?page=ey_chat-gochat
- > Notice in wp-content/plugins/eychat/assets/chat.php+7
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/eychat/assets/tip.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eychat/assets/admin.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/eychat/assets/chath5.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/eychat/assets/chat.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: webim, chat
eychat/index.php 92% from 13 tests
Analyzing the main PHP file in "Eyoung Chat - Ey聊天极简版" version 1.0
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("eychat.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,335 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 200 | 58 | 2,060 |
SVG | 1 | 356 | 3 | 195 |
CSS | 5 | 13 | 0 | 74 |
JavaScript | 4 | 0 | 2 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 39.40 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 73 | 97.33% |
▷ Public methods | 53 | 70.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 29.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
44 PNG files occupy 0.32MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/30.png | 8.32KB | 3.24KB | ▼ 61.00% |
images/6.png | 7.21KB | 2.91KB | ▼ 59.63% |
images/4.png | 8.25KB | 2.64KB | ▼ 68.00% |
images/22.png | 7.92KB | 3.10KB | ▼ 60.88% |
images/23.png | 7.84KB | 2.99KB | ▼ 61.94% |