Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/live-chat-support-system/supportsystem.php+63
date_default_timezone_set(): Timezone ID '' is invalid
Server metrics [RAM: ▼1.94MB] [CPU: ▼49.25ms] Passed 4 tests
Analyzing server-side resources used by Live Chat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.05 ▼33.54 |
Dashboard /wp-admin | 2.07 ▼1.24 | 6.56 ▼40.86 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 5.10 ▼41.54 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 5.85 ▼81.04 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.56 ▼28.95 |
Support Live chat /wp-admin/admin.php?page=support_page | 2.07 | 5.03 |
/wp-admin/admin.php?page=support_chat | 2.07 | 6.27 |
Offline Messages /wp-admin/admin.php?page=offline_messages | 2.07 | 5.20 |
Settings /wp-admin/admin.php?page=support_settings | 2.07 | 5.76 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 69 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_tbl_offlinechat |
wp_tbl_messages |
wp_tbl_conversation |
wp_tbl_agents |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
support_page_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Live Chat: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,061 ▲326 | 13.59 ▼0.79 | 5.21 ▲3.46 | 54.20 ▲12.76 |
Dashboard /wp-admin | 2,241 ▲53 | 5.18 ▼0.70 | 101.00 ▼0.47 | 35.56 ▼5.93 |
Posts /wp-admin/edit.php | 2,141 ▲49 | 2.41 ▲0.37 | 36.20 ▼0.10 | 29.13 ▼5.95 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 23.59 ▲6.05 | 672.26 ▼33.84 | 66.20 ▲9.97 |
Media Library /wp-admin/upload.php | 1,433 ▲42 | 4.49 ▲0.26 | 98.55 ▼6.26 | 42.64 ▼5.93 |
Support Live chat /wp-admin/admin.php?page=support_page | 1,041 | 2.53 | 44.64 | 58.24 |
/wp-admin/admin.php?page=support_chat | 700 | 1.63 | 11.74 | 21.04 |
Offline Messages /wp-admin/admin.php?page=offline_messages | 1,044 | 2.47 | 41.74 | 31.38 |
Settings /wp-admin/admin.php?page=support_settings | 1,266 | 2.46 | 31.63 | 39.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% 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 plugin did not uninstall gracefully
- > Notice in wp-content/plugins/live-chat-support-system/supportsystem.php+63
date_default_timezone_set(): Timezone ID '' is invalid
- The uninstall procedure failed, leaving 4 tables in the database
- wp_tbl_agents
- wp_tbl_messages
- wp_tbl_conversation
- wp_tbl_offlinechat
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- support_page_options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=support_settings
- > Notice in wp-content/plugins/live-chat-support-system/supportsystem.php+63
date_default_timezone_set(): Timezone ID '' is invalid
- 26 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=offline_messages
- > Warning in wp-content/plugins/live-chat-support-system/inc/offline_messages.php+63
Use of undefined constant supportsystem - assumed 'supportsystem' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=support_page
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/live-chat-support-system/supportsystem.php+76
Undefined index: page
- > GET request to /wp-admin/admin.php?page=support_settings
- > Notice in wp-content/plugins/live-chat-support-system/inc/setting_dashboard.php+32
Undefined variable: user_ID
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/live-chat-support-system/index.php
- > /wp-content/plugins/live-chat-support-system/inc/setting_dashboard.php
- 2× 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/live-chat-support-system/supportsystem.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/live-chat-support-system/inc/lvcht_agent_dashboard.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=support_page
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=support_page 0:0 Uncaught SyntaxError: Unexpected end of JSON input
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: customer support system, attachments, live chat, chat sytem, support system...
live-chat-support-system/supportsystem.php 85% from 13 tests
The main file in "Live Chat" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("live-chat-support-system.php" instead of "supportsystem.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7,069 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 556 | 122 | 2,725 |
PHP | 25 | 98 | 163 | 2,559 |
CSS | 9 | 8 | 9 | 1,100 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.18MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/yes.png | 0.45KB | 0.60KB | 0.00% |
inc/img/icon-upload.png | 0.33KB | 0.33KB | 0.30% |
inc/img/emozi-icon.png | 1.02KB | 1.05KB | 0.00% |
inc/img/icon-upload-white.png | 1.10KB | 0.30KB | ▼ 73.07% |
inc/img/image-default-3.png | 29.34KB | 20.77KB | ▼ 29.20% |