83% chative-live-chat-and-chatbot

Code Review | Chative Live chat and Chatbot

WordPress plugin Chative Live chat and Chatbot scored 83% from 54 tests.

About plugin

  • Plugin page: chative-live-chat...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.0
  • WordPress version: 6.3.1
  • First release: Apr 22, 2022
  • Latest release: Nov 11, 2022
  • Number of updates: 25
  • Update frequency: every 8.1 days
  • Top authors: chative (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

30+ active / 619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Chative Live chat and Chatbot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0154.05 ▼38.54
Dashboard /wp-admin3.31 ▲0.0162.42 ▼40.41
Posts /wp-admin/edit.php3.36 ▲0.0160.72 ▼44.36
Add New Post /wp-admin/post-new.php5.89 ▲0.01102.45 ▼76.48
Media Library /wp-admin/upload.php3.24 ▲0.0150.59 ▼10.39

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Chative Live chat and Chatbot: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲4413.35 ▼1.164.58 ▲0.7046.95 ▼28.01
Dashboard /wp-admin2,242 ▲425.88 ▲0.03103.31 ▼75.2443.08 ▼45.29
Posts /wp-admin/edit.php2,129 ▲402.02 ▲0.0146.32 ▼19.3835.25 ▼32.18
Add New Post /wp-admin/post-new.php1,537 ▲17618.37 ▲1.59826.92 ▼690.7571.95 ▼74.16
Media Library /wp-admin/upload.php1,424 ▲334.24 ▲0.01106.41 ▼12.1947.57 ▼5.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chative-live-chat-and-chatbot/chative-plugin.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/chative-live-chat-and-chatbot/templates/widget.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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 require attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

chative-live-chat-and-chatbot/chative-plugin.php 85% from 13 tests

Analyzing the main PHP file in "Chative Live chat and Chatbot" version 1.0.3
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("chative-live-chat-and-chatbot.php" instead of "chative-plugin.php")
  • Description: The description should be shorter than 140 characters (currently 189 characters long)

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
Good job! No executable or dangerous file extensions detected108 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2162882
JavaScript11119
CSS1107

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin