89% kayako-messenger-live-chat

Code Review | Kayako Messenger: Live Chat

WordPress plugin Kayako Messenger: Live Chat scored89%from 54 tests.

About plugin

  • Plugin page: kayako-messenger-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 22, 2017
  • Latest release: Sep 22, 2017
  • Number of updates: 5
  • Update frequency: every 2.2 days
  • Top authors: kayakoteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,785 total downloads


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.00MB] [CPU: ▼7.82ms] Passed 4 tests

This is a short check of server-side resources used by Kayako Messenger: Live Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.83 ▼6.76
Dashboard /wp-admin3.31 ▲0.0149.90 ▼3.02
Posts /wp-admin/edit.php3.36 ▲0.0054.46 ▲1.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.05 ▼16.74
Media Library /wp-admin/upload.php3.23 ▲0.0040.15 ▼4.76

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Kayako Messenger: Live Chat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.18 ▼1.364.71 ▲2.6544.65 ▲0.88
Dashboard /wp-admin2,212 ▲215.83 ▲0.94101.32 ▼4.4339.72 ▼0.76
Posts /wp-admin/edit.php2,101 ▲92.06 ▲0.0540.64 ▲3.8134.20 ▼1.10
Add New Post /wp-admin/post-new.php1,543 ▲1523.29 ▲5.13666.34 ▲18.9160.36 ▼1.68
Media Library /wp-admin/upload.php1,400 ▲124.20 ▲0.03110.08 ▲4.3747.59 ▼1.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

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


Plugin configuration 86% from 29 tests

readme.txt 81% from 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
These attributes need your attention:
  • Tags: You are using too many tags: 62 tag instead of maximum 10
  • Requires at least: Invalid version format
  • Requires php: Invalid version format
The official readme.txt is a good inspiration

kayako-messenger-live-chat/kayako.php 92% from 13 tests

This is the main PHP file of "Kayako Messenger: Live Chat" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("kayako-messenger-live-chat.php" instead of "kayako.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin195 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected