83% zebchat-live-chat

Code Review | ZebChat - Live Support Chat

WordPress plugin ZebChat - Live Support Chat scored83%from 54 tests.

About plugin

  • Plugin page: zebchat-live-chat
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9
  • WordPress version: 6.3.1
  • First release: Dec 27, 2018
  • Latest release: Apr 2, 2019
  • Number of updates: 17
  • Update frequency: every 6.3 days
  • Top authors: zebchat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /637 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.66ms] Passed 4 tests

A check of server-side resources used by ZebChat - Live Support Chat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.33 ▲0.33
Dashboard /wp-admin3.38 ▲0.0748.07 ▼2.88
Posts /wp-admin/edit.php3.50 ▲0.1346.91 ▼2.61
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.99 ▼17.24
Media Library /wp-admin/upload.php3.31 ▲0.0737.73 ▲0.10
ZebChat /wp-admin/options-general.php?page=ZebChat3.3033.54

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
jakweblc-embed-widget-id
widget_recent-posts
jakweblc-lc-options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for ZebChat - Live Support Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.101.69 ▼0.0841.44 ▼7.60
Dashboard /wp-admin2,193 ▲165.56 ▼0.1290.12 ▲2.6737.97 ▼0.64
Posts /wp-admin/edit.php2,101 ▲11.95 ▼0.0439.67 ▲2.8334.75 ▼0.51
Add New Post /wp-admin/post-new.php1,529 ▼023.64 ▲0.63678.33 ▲32.7351.67 ▼17.23
Media Library /wp-admin/upload.php1,407 ▲74.16 ▲0.02101.24 ▼0.5545.08 ▼5.99
ZebChat /wp-admin/options-general.php?page=ZebChat9541.7824.0027.10

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: lc_embedid in wp-content/plugins/zebchat-live-chat/templates/widget.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/zebchat-live-chat/jakweblc.php:363

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (ZebChat login page, apps are availble for Desktops and Mobile devices.), #2 (Real time communication with your website visitors, replace the boring contact form.), #3 (Live support chat or pre sales questions, multi language ready.), #4 (Our dashboard with full control over your billings and operators), #5 (Mobile Apps for iOS and Android.), #6 (iOS and Android Push Notifications on new client and message.)
You can take inspiration from this readme.txt

zebchat-live-chat/jakweblc.php 85% from 13 tests

The main PHP file in "ZebChat - Live Support Chat" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("zebchat-live-chat.php" instead of "jakweblc.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected587 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39715516
CSS15039
JavaScript118932

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity37.00
▷ Minimum class complexity35.00
▷ Maximum class complexity39.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods313.64%
▷ Public methods2090.91%
▷ Protected methods29.09%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png5.24KB2.68KB▼ 48.85%