83% free-live-chat-support

Code Review | ZupportDesk Live Chat Plugin (Free & Paid Plans)

WordPress plugin ZupportDesk Live Chat Plugin (Free & Paid Plans) scored83%from 54 tests.

About plugin

  • Plugin page: free-live-chat-su...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: May 4, 2015
  • Latest release: Mar 12, 2018
  • Number of updates: 187
  • Update frequency: every 5.6 days
  • Top authors: dennis19814 (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

10+ active /8,504 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.37ms] Passed 4 tests

This is a short check of server-side resources used by ZupportDesk Live Chat Plugin (Free & Paid Plans)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.66 ▼1.61
Dashboard /wp-admin3.32 ▲0.0145.54 ▼9.40
Posts /wp-admin/edit.php3.37 ▲0.0146.12 ▼5.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.38 ▼4.89
Media Library /wp-admin/upload.php3.24 ▲0.0136.93 ▲1.60

Server storage [IO: ▲1.85MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 13 new options
New WordPress options
zupportdesk_userId
widget_recent-posts
zupportdesk_email
theysaidso_admin_options
zupportdesk_widgetId
zupportdesk_companyList
db_upgraded
widget_recent-comments
zupportdesk_password
zupportdesk_selectedCompanyId
...

Browser metrics Passed 4 tests

A check of browser resources used by ZupportDesk Live Chat Plugin (Free & Paid Plans)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9913.46 ▼1.281.93 ▼0.2443.87 ▼6.37
Dashboard /wp-admin2,237 ▲495.07 ▲0.20105.31 ▲2.0381.24 ▲42.63
Posts /wp-admin/edit.php2,125 ▲362.36 ▲0.3437.71 ▼0.9935.22 ▲1.52
Add New Post /wp-admin/post-new.php1,543 ▲1023.29 ▲0.18661.02 ▼17.3636.80 ▼22.50
Media Library /wp-admin/upload.php1,416 ▲314.44 ▲0.24104.93 ▲4.0170.96 ▲24.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-live-chat-support/zupport.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (36 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add images for these screenshots: #1 (Chat window on your website), #2 (ZupportDesk reports), #3 (ZupportDesk Live Chat Dashboard)
Please take inspiration from this readme.txt

free-live-chat-support/zupport.php 92% from 13 tests

"ZupportDesk Live Chat Plugin (Free & Paid Plans)" version 2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("free-live-chat-support.php" instead of "zupport.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected478 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24321317
CSS12195
JavaScript16466

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 1.30MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/pluging_login_back.png797.42KB505.78KB▼ 36.57%
img/font-awesome_4-6-3_times_256_0_471616_none.png5.23KB2.46KB▼ 52.93%
img/user.png2.84KB3.11KB0.00%
img/font-awesome_4-6-3_unlock-alt_256_0_222222_none.png2.24KB2.23KB0.48%
img/cursor.png1.01KB0.80KB▼ 20.47%