89% activechat-ai

Code Review | Activechat.ai chatbots and live chat

WordPress plugin Activechat.ai chatbots and live chat scored 89% 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: 5.9.2
  • 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

100+ active / 4,011 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼2.48MB] [CPU: ▼360.01ms] Passed 4 tests

An overview of server-side resources used by Activechat.ai chatbots and live chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.90 ▼1.625.48 ▼59.06
Dashboard /wp-admin1.91 ▼1.503.93 ▼32.29
Posts /wp-admin/edit.php1.91 ▼1.734.25 ▼37.93
Add New Post /wp-admin/post-new.php1.91 ▼5.064.12 ▼1,310.74
Media Library /wp-admin/upload.php1.91 ▼1.384.57 ▼20.47

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Activechat.ai chatbots and live chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,859 ▲10515.09 ▼0.616.92 ▲1.012.35 ▼0.47
Dashboard /wp-admin2,940 ▲826.16 ▼0.02122.17 ▼12.81208.67 ▲46.15
Posts /wp-admin/edit.php2,740 ▲523.24 ▲0.0162.83 ▼0.67138.98 ▼16.79
Add New Post /wp-admin/post-new.php1,737 ▲1822.22 ▲0.01406.44 ▼26.55184.60 ▲26.92
Media Library /wp-admin/upload.php1,744 ▲495.51 ▲0.04141.57 ▼4.71232.49 ▲27.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5768
    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.)

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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


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
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #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
It is important to fix the following:
  • 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,017 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! 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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions15100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin