79% activechat-ai

Code Review | Activechat.ai chatbots and live chat

WordPress plugin Activechat.ai chatbots and live chat scored79%from 54 tests.

About plugin

  • Plugin page: activechat-ai
  • Plugin version: 1.0.10
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-5.1.1
  • WordPress version: 6.3.1
  • First release: May 3, 2019
  • Latest release: Aug 30, 2019
  • Number of updates: 20
  • Update frequency: every 6.0 days
  • Top authors: activechat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /6,503 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.91MB] [CPU: ▼54.05ms] Passed 4 tests

This is a short check of server-side resources used by Activechat.ai chatbots and live chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.386.37 ▼41.06
Dashboard /wp-admin2.10 ▼1.206.12 ▼46.89
Posts /wp-admin/edit.php2.10 ▼1.265.48 ▼43.41
Add New Post /wp-admin/post-new.php2.10 ▼3.796.39 ▼84.83
Media Library /wp-admin/upload.php2.10 ▼1.139.08 ▼27.52

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
acvv_save_display_ac_widget
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Activechat.ai chatbots and live chat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11313.34 ▼1.415.52 ▲3.5044.88 ▲3.38
Dashboard /wp-admin2,258 ▲704.84 ▼1.03101.31 ▼15.7138.03 ▼4.16
Posts /wp-admin/edit.php2,137 ▲452.01 ▼0.0037.01 ▲2.0235.36 ▲3.24
Add New Post /wp-admin/post-new.php1,550 ▲1423.35 ▲0.05675.18 ▲68.8257.49 ▲10.88
Media Library /wp-admin/upload.php1,436 ▲544.27 ▲0.08100.72 ▲0.8744.40 ▲2.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the namespace handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Step 1 : Place bot id here ( You can find bot id in your Bot settings -> general in app.activechat.ai )), #2 (Step 2 : After connection, you can choose between Activechat plugin or Facebook chat widget.), #3 (Additional : If you choose Facebook chat widget you can customize chat widget color, choose "ref" parameter to start bot skill, place a greeting messege to logged users, choose How the greeting dialog will be displayed , place a delay when chat widget will be displayed.)
You can look at the official readme.txt

activechat-ai/index.php 85% from 13 tests

The entry point to "Activechat.ai chatbots and live chat" version 1.0.10 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 260 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("activechat-ai.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,017 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP817921672
CSS1455330
SVG22015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin