58% azexo-facebook-live-chat

Code Review | Live Chat Marketing Automation

WordPress plugin Live Chat Marketing Automation scored58%from 54 tests.

About plugin

  • Plugin page: azexo-facebook-li...
  • Plugin version: 1.27.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Mar 19, 2018
  • Latest release: Oct 9, 2018
  • Number of updates: 17
  • Update frequency: every 12.1 days
  • Top authors: azexo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /832 total downloads

Benchmarks

Plugin footprint 48% 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.72MB] [CPU: ▼30.84ms] Passed 4 tests

Server-side resources used by Live Chat Marketing Automation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2147.80 ▲9.20
Dashboard /wp-admin3.23 ▼0.1124.76 ▼31.59
Posts /wp-admin/edit.php3.23 ▼0.1224.08 ▼24.00
Add New Post /wp-admin/post-new.php3.23 ▼2.6524.38 ▼61.12
Media Library /wp-admin/upload.php3.23 ▲0.0024.79 ▼6.65
Facebook Chat settings /wp-admin/edit.php?post_type=azr_rule&page=azh-fb-settings3.2122.83

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: 3 new tables, 6 new options
New tables
wp_azr_fb_visitors
wp_azr_fb_history
wp_azr_fb_campaigns
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Live Chat Marketing Automation: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.25 ▼0.371.72 ▼0.0341.66 ▼3.26
Dashboard /wp-admin2,214 ▲335.62 ▼0.0583.24 ▼16.5046.47 ▲7.31
Posts /wp-admin/edit.php2,116 ▲162.03 ▲0.0235.91 ▼4.8536.70 ▼0.16
Add New Post /wp-admin/post-new.php1,537 ▲223.11 ▲4.95672.86 ▲69.9960.09 ▲6.65
Media Library /wp-admin/upload.php1,419 ▲194.20 ▼0.0396.41 ▲0.0645.96 ▲3.72
Facebook Chat settings /wp-admin/edit.php?post_type=azr_rule&page=azh-fb-settings280.420.084.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/azexo-facebook-live-chat/azh_facebook_live_chat.php+475
    Undefined index: mode
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_azr_fb_campaigns
    • wp_azr_fb_history
    • wp_azr_fb_visitors
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azexo-facebook-live-chat/azh_facebook_live_chat.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=azr_rule&page=azh-fb-settings
    • > Network (severe)
    wp-admin/edit.php?post_type=azr_rule&page=azh-fb-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

azexo-facebook-live-chat/azh_facebook_live_chat.php 85% from 13 tests

The primary PHP file in "Live Chat Marketing Automation" version 1.27.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("azexo-facebook-live-chat.php" instead of "azh_facebook_live_chat.php")
  • 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

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
Everything looks great! No dangerous files found in this plugin1,113 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP198121,113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions44
▷ Named functions3988.64%
▷ Anonymous functions511.36%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin