Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲2.96MB] [CPU: ▲135.99ms] Passed 4 tests
A check of server-side resources used by WSChat - WordPress Live Chat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.28 ▲2.82 | 66.09 ▲27.43 |
Dashboard /wp-admin | 6.34 ▲3.03 | 231.96 ▲183.52 |
Posts /wp-admin/edit.php | 6.39 ▲3.03 | 223.50 ▲173.72 |
Add New Post /wp-admin/post-new.php | 8.85 ▲2.96 | 265.60 ▲165.29 |
Media Library /wp-admin/upload.php | 6.29 ▲3.05 | 213.00 ▲177.52 |
Live Chat /wp-admin/admin.php?page=wschat_chat | 6.26 | 238.30 |
Help & Support /wp-admin/admin.php?page=wschat_helpandsupport | 6.26 | 192.92 |
Go Premium! /wp-admin/admin.php?page=wschat_gopremium | 6.26 | 213.35 |
Chat History /wp-admin/admin.php?page=wschat_history | 8.82 | 214.18 |
Tags /wp-admin/admin.php?page=wschat_tags | 6.67 | 199.18 |
Settings /wp-admin/admin.php?page=wschat_settings | 6.27 | 205.49 |
Live Visitors [Premium] /wp-admin/admin.php?page=wschat_live_visitors | 9.38 | 232.07 |
Agents /wp-admin/admin.php?page=wschat_agents | 6.26 | 221.26 |
Server storage [IO: ▲36.38MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- Total filesystem usage must be limited to 25MB (currently using 36.38MB)
Filesystem: 5,387 new files
Database: 6 new tables, 7 new options
New tables |
---|
wp_wschat_conversations |
wp_wschat_users |
wp_wschat_tags |
wp_wschat_participants |
wp_wschat_messages |
wp_wschat_message_notifications |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
wschat-live-chat/wschat.php_activation_date |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WSChat - WordPress Live Chat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 12,894 ▲10,159 | 19.76 ▲5.36 | 175.87 ▲174.06 | 49.31 ▲2.75 |
Dashboard /wp-admin | 2,502 ▲314 | 5.98 ▲1.07 | 139.05 ▲22.33 | 72.48 ▲29.13 |
Posts /wp-admin/edit.php | 2,396 ▲307 | 3.03 ▲1.01 | 44.40 ▼0.27 | 62.92 ▲24.03 |
Add New Post /wp-admin/post-new.php | 1,682 ▲168 | 18.62 ▲1.02 | 635.18 ▲21.03 | 40.96 ▼14.87 |
Media Library /wp-admin/upload.php | 1,690 ▲305 | 5.24 ▲0.97 | 106.89 ▼1.63 | 56.53 ▲9.67 |
Live Chat /wp-admin/admin.php?page=wschat_chat | 11,263 | 5.44 | 170.25 | 79.16 |
Help & Support /wp-admin/admin.php?page=wschat_helpandsupport | 1,292 | 2.73 | 32.07 | 50.17 |
Go Premium! /wp-admin/admin.php?page=wschat_gopremium | 1,186 | 2.65 | 30.53 | 46.65 |
Chat History /wp-admin/admin.php?page=wschat_history | 1,374 | 4.36 | 67.54 | 48.98 |
Tags /wp-admin/admin.php?page=wschat_tags | 1,267 | 3.04 | 45.37 | 47.62 |
Settings /wp-admin/admin.php?page=wschat_settings | 1,791 | 3.97 | 54.96 | 75.19 |
Live Visitors [Premium] /wp-admin/admin.php?page=wschat_live_visitors | 1,088 | 2.81 | 37.33 | 41.52 |
Agents /wp-admin/admin.php?page=wschat_agents | 1,542 | 2.72 | 40.10 | 44.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 tables in the database
- wp_wschat_tags
- wp_wschat_conversations
- wp_wschat_participants
- wp_wschat_message_notifications
- wp_wschat_messages
- wp_wschat_users
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- wschat-live-chat/wschat.php_activation_date
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wschat-live-chat/tests/bootstrap.php
- > /wp-content/plugins/wschat-live-chat/resources/review_and_troubleshoot_notify/resources/logo.php
- 3284× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/wschat-live-chat/vendor/twilio/sdk/src/Twilio/Rest/Serverless/V1/Service/FunctionList.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\otifications\\Dispatcher' not found in wp-content/plugins/wschat-live-chat/vendor/illuminate/support/Testing/Fakes/NotificationFake.php:17
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_HChaCha20' not found in wp-content/plugins/wschat-live-chat/vendor/paragonie/sodium_compat/namespaced/Core/HChaCha20.php:4
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/wschat-live-chat/vendor/twilio/sdk/src/Twilio/Rest/IpMessaging/V2/Service/UserInstance.php:37
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/wschat-live-chat/vendor/twilio/sdk/src/Twilio/Rest/Verify/V2/Service/RateLimitOptions.php:33
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/wschat-live-chat/vendor/twilio/sdk/src/Twilio/Rest/Conversations/V1/Service/BindingInstance.php:31
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/wschat-live-chat/vendor/twilio/sdk/src/Twilio/Rest/Conversations/V1/Conversation/ParticipantPage.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/wschat-live-chat/vendor/twilio/sdk/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelOptions.php:27
- > PHP Fatal error
Uncaught Error: Class 'SebastianBergmann\\Comparator\\Comparator' not found in wp-content/plugins/wschat-live-chat/vendor/google/gax/src/Testing/ProtobufMessageComparator.php:28
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/wschat-live-chat/vendor/twilio/sdk/src/Twilio/Rest/Pricing/V1/Voice/NumberPage.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wschat_tags
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'addEventListener')" "TypeError: Cannot read properties of null (reading 'addEventListener')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wschat-live-chat/resources/dist/admin-tags.min.js?ver=2.0.0:273:77486)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=wschat_tags
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
- > GET request to /wp-admin/admin.php?page=wschat_settings
- > Rendering (severe) in unknown
/wp-admin/admin.php?page=wschat_settings 449 Error: attribute height: Unexpected end of attribute. Expected length, "".
- > GET request to /wp-admin/admin.php?page=wschat_settings
- > Rendering (severe) in unknown
/wp-admin/admin.php?page=wschat_settings 457 Error: attribute height: Unexpected end of attribute. Expected length, "".
- > GET request to /wp-admin/admin.php?page=wschat_live_visitors
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'classList')" "TypeError: Cannot read properties of undefined (reading 'classList')\n at ge._isAnimated (/wp-content/plugins/wschat-live-chat/resources/dist/live-visitors.js?ver=2.0.0:7:33633)\n at ge._initializeBackDrop (/wp-content/plugins/wschat-live-chat/resources/dist/live-visitors.js?ver=2.0.0:7:31848)\n at new ge (/wp-content/plugins/wschat-live-chat/resources/dist/live-visitors.js?ver=2.0.0:7:30404)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wschat-live-chat/resources/dist/live-visitors.js?ver=2.0.0:7:76421)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=wschat_live_visitors
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'classList')
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
wschat-live-chat/wschat.php 77% from 13 tests
"WSChat - WordPress Live Chat" version 3.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.3" instead of "3.0.0")
- Domain Path: The domain path is invalid: folder "/lang" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wschat-live-chat.php" instead of "wschat.php")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
It is important to fix the following items
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wschat-live-chat/vendor/nesbot/carbon/bin/carbon.bat
- ☣ wp-content/plugins/wschat-live-chat/vendor/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4,842 | 62,734 | 260,848 | 258,446 |
JSON | 65 | 0 | 0 | 32,687 |
JavaScript | 72 | 1,398 | 2,116 | 7,636 |
Markdown | 62 | 2,634 | 1 | 7,141 |
XSD | 3 | 92 | 48 | 2,803 |
Sass | 11 | 197 | 115 | 1,643 |
SVG | 8 | 0 | 0 | 280 |
YAML | 7 | 24 | 8 | 214 |
Bourne Shell | 4 | 28 | 11 | 146 |
XML | 6 | 9 | 6 | 121 |
Python | 2 | 33 | 71 | 101 |
reStructuredText | 1 | 74 | 78 | 74 |
Protocol Buffers | 2 | 14 | 38 | 64 |
HTML | 1 | 2 | 0 | 38 |
Dockerfile | 2 | 9 | 4 | 34 |
DOS Batch | 2 | 0 | 0 | 9 |
CSS | 3 | 0 | 5 | 5 |
INI | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 160)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 436.00 |
Average method complexity | 1.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 160.00 |
Code structure | ||
---|---|---|
Namespaces | 441 | |
Interfaces | 187 | |
Traits | 57 | |
Classes | 4,230 | |
▷ Abstract classes | 375 | 8.87% |
▷ Concrete classes | 3,855 | 91.13% |
▷ Final classes | 72 | 1.87% |
Methods | 26,948 | |
▷ Static methods | 2,861 | 10.62% |
▷ Public methods | 24,359 | 90.39% |
▷ Protected methods | 1,941 | 7.20% |
▷ Private methods | 648 | 2.40% |
Functions | 973 | |
▷ Named functions | 280 | 28.78% |
▷ Anonymous functions | 693 | 71.22% |
Constants | 1,284 | |
▷ Global constants | 20 | 1.56% |
▷ Class constants | 1,264 | 98.44% |
▷ Public constants | 1,242 | 98.26% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 1.74MB with 1.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/img/youtube.png | 78.70KB | 19.21KB | ▼ 75.58% |
resources/img/Advanced Bulk Edit.png | 69.40KB | 15.94KB | ▼ 77.03% |
resources/img/google_feed.png | 80.41KB | 19.81KB | ▼ 75.37% |
resources/img/WSDesk - Helpdesk _.png | 161.93KB | 43.90KB | ▼ 72.89% |
resources/img/dialogflow.png | 28.95KB | 14.39KB | ▼ 50.31% |