78% wp-iclew

Code Review | AI Live Chat

WordPress plugin AI Live Chat scored78%from 54 tests.

About plugin

  • Plugin page: wp-iclew
  • Plugin version: 1.4.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2017
  • Latest release: Dec 1, 2017
  • Number of updates: 15
  • Update frequency: every 2.5 days
  • Top authors: scottvavoom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /950 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.27ms] Passed 4 tests

A check of server-side resources used by AI Live Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0535.49 ▼3.48
Dashboard /wp-admin3.37 ▲0.0244.15 ▼17.52
Posts /wp-admin/edit.php3.48 ▲0.1248.06 ▲2.23
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.27 ▼17.31
Media Library /wp-admin/upload.php3.29 ▲0.0635.40 ▲1.23
WP acobot /wp-admin/options-general.php?page=wp-acobot-admin-slug3.2630.71

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

AI Live Chat: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.65 ▼0.911.65 ▼0.0340.08 ▲2.36
Dashboard /wp-admin2,210 ▲184.84 ▼0.07111.79 ▼0.9643.10 ▼1.72
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0239.13 ▲2.8935.83 ▲1.19
Add New Post /wp-admin/post-new.php1,536 ▲2223.15 ▲5.68682.39 ▼4.8352.53 ▼5.77
Media Library /wp-admin/upload.php1,392 ▲14.18 ▼0.06101.18 ▲1.8340.36 ▼6.79
WP acobot /wp-admin/options-general.php?page=wp-acobot-admin-slug9022.0825.9527.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-iclew/wp-acobot.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=wp-acobot-admin-slug
    • > Console-api (severe) in unknown
    https://acobot.ai/js/w?key=251040.R19bWEl2ztdedsXS&ver=6.3.1 0:8 "Widget is hidden for inactive AI. "

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: chatbot, sales chatbot, support, live chat, help desk

wp-iclew/wp-acobot.php 77% from 13 tests

The principal PHP file in "AI Live Chat" v. 1.4.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-iclew.php" instead of "wp-acobot.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected185 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15450185

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants110.00%
▷ Class constants990.00%
▷ Public constants9100.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