71% live-chat-support-by-social-intents

Code Review | Social Intents - Live Chat and ChatGPT Chatbots

WordPress plugin Social Intents - Live Chat and ChatGPT Chatbots scored71%from 54 tests.

About plugin

  • Plugin page: live-chat-support...
  • Plugin version: 1.6.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 3, 2014
  • Latest release: Oct 25, 2023
  • Number of updates: 946
  • Update frequency: every 3.5 days
  • Top authors: socialintents (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /59,683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.38ms] Passed 4 tests

An overview of server-side resources used by Social Intents - Live Chat and ChatGPT Chatbots
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.78 ▲6.83
Dashboard /wp-admin3.33 ▲0.0342.49 ▼3.07
Posts /wp-admin/edit.php3.39 ▲0.0344.35 ▼4.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.14 ▼6.11
Media Library /wp-admin/upload.php3.26 ▲0.0333.77 ▼3.60
Live Chat /wp-admin/options-general.php?page=live-chat-support-by-socialintents3.2028.06

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Social Intents - Live Chat and ChatGPT Chatbots
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8114.32 ▼0.301.84 ▲0.2439.09 ▼5.62
Dashboard /wp-admin2,220 ▲435.57 ▼0.1085.27 ▲1.1284.73 ▲42.20
Posts /wp-admin/edit.php2,132 ▲321.98 ▼0.0232.83 ▼4.3633.41 ▼3.74
Add New Post /wp-admin/post-new.php1,567 ▲3923.23 ▲0.22609.36 ▼47.4850.54 ▼5.00
Media Library /wp-admin/upload.php1,429 ▲294.31 ▲0.1894.21 ▼16.0385.27 ▲39.68
Live Chat /wp-admin/options-general.php?page=live-chat-support-by-socialintents9241.7026.0225.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=live-chat-support-by-socialintents
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=live-chat-support-by-socialintents
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/live-chat-support-by-social-intents/options.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/live-chat-support-by-social-intents/live-chat-support-by-socialintents.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Live Chat Settings), #2 (ChatGPT Integration), #3 (Live Chat Dashboard Page)
The official readme.txt is a good inspiration

live-chat-support-by-social-intents/live-chat-support-by-socialintents.php 77% from 13 tests

The main PHP script in "Social Intents - Live Chat and ChatGPT Chatbots" version 1.6.12 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("live-chat-support-by-social-intents.php" instead of "live-chat-support-by-socialintents.php")
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 90 characters long)
  • Description: Please keep the plugin description shorter than 140 characters (currently 278 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin150 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2378150

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 4.19MB with 2.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png1,573.58KB657.61KB▼ 58.21%
app-key.png8.60KB4.40KB▼ 48.77%
socialintents.png33.75KB10.30KB▼ 69.49%
si-small.png3.81KB0.88KB▼ 76.93%
screenshot-2.png1,899.57KB736.20KB▼ 61.24%