78% customerly

Code Review | Live Chat Free for WordPress by Customerly

WordPress plugin Live Chat Free for WordPress by Customerly scored78%from 54 tests.

About plugin

  • Plugin page: customerly
  • Plugin version: 2.5.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 16, 2017
  • Latest release: Jun 22, 2023
  • Number of updates: 107
  • Update frequency: every 19.4 days
  • Top authors: customerly (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

1,000+ active /35,936 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.74ms] Passed 4 tests

A check of server-side resources used by Live Chat Free for WordPress by Customerly
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.25 ▼0.25
Dashboard /wp-admin3.37 ▲0.0344.75 ▼13.56
Posts /wp-admin/edit.php3.49 ▲0.1350.32 ▲0.39
Add New Post /wp-admin/post-new.php5.97 ▲0.0986.14 ▼16.53
Media Library /wp-admin/upload.php3.30 ▲0.0736.26 ▼4.61

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Live Chat Free for WordPress by Customerly
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲13216.63 ▲2.2554.18 ▲52.3540.20 ▲0.72
Dashboard /wp-admin2,298 ▲1105.02 ▼0.83112.06 ▲5.1089.68 ▲46.76
Posts /wp-admin/edit.php2,183 ▲972.09 ▲0.1142.03 ▲7.1141.48 ▲9.12
Add New Post /wp-admin/post-new.php1,758 ▲9122.50 ▲0.30765.50 ▲76.2038.43 ▼36.03
Media Library /wp-admin/upload.php1,480 ▲924.23 ▲0.13100.39 ▼19.3271.86 ▲23.79

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/customerly/pages/newsletter.php
    • > /wp-content/plugins/customerly/pages/chat-triggers.php
    • > /wp-content/plugins/customerly/pages/workflow.php
    • > /wp-content/plugins/customerly/pages/crm.php
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/customerly/pages/integrations.php:3
    • > PHP Warning
      include_once(): Failed opening 'CUSTOMERLY_CHAT_INCLUDES_PATH/headers.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/customerly/pages/chat-triggers.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/customerly/pages/configured.php:3
    • > PHP Warning
      include_once(): Failed opening 'CUSTOMERLY_CHAT_INCLUDES_PATH/headers.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/customerly/pages/crm.php on line 2
    • > PHP Warning
      Use of undefined constant CUSTOMERLY_CHAT_INCLUDES_PATH - assumed 'CUSTOMERLY_CHAT_INCLUDES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/customerly/pages/crm.php on line 2
    • > PHP Warning
      include_once(): Failed opening 'CUSTOMERLY_CHAT_INCLUDES_PATH/headers.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/customerly/pages/newsletter.php on line 2
    • > PHP Warning
      Use of undefined constant CUSTOMERLY_CHAT_INCLUDES_PATH - assumed 'CUSTOMERLY_CHAT_INCLUDES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/customerly/pages/newsletter.php on line 2
    • > PHP Warning
      include_once(CUSTOMERLY_CHAT_INCLUDES_PATH/headers.php): failed to open stream: No such file or directory in wp-content/plugins/customerly/pages/newsletter.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/customerly/pages/mobile.php:7
    • > PHP Warning
      Use of undefined constant CUSTOMERLY_CHAT_INCLUDES_PATH - assumed 'CUSTOMERLY_CHAT_INCLUDES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/customerly/pages/workflow.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

customerly/customerly-plugin.php 92% from 13 tests

The entry point to "Live Chat Free for WordPress by Customerly" version 2.5.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("customerly.php" instead of "customerly-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,081 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP15222175645
CSS2566268
JavaScript2302104
SVG30250
PO File10014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.25
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods2291.67%
▷ Protected methods00.00%
▷ Private methods28.33%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 compressed PNG files occupy 0.43MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon@2x.png1.77KB1.64KB▼ 7.24%
assets/img/customers/Customer_support_live_chat_software_people_customers_feedback_ninjalitics.png61.98KB67.44KB0.00%
assets/img/customers/Customer_support_live_chat_software_people_customers_feedback_shampora.png55.60KB59.31KB0.00%
assets/img/download-play.png13.63KB6.37KB▼ 53.29%
assets/img/customers/Customer_support_live_chat_software_people_customers_feedback_Raffaele_gaito.png72.87KB79.81KB0.00%