78% formilla-live-chat

Code Review | Live Chat by Formilla - Real-time Chat & Chatbots Plugin

WordPress plugin Live Chat by Formilla - Real-time Chat & Chatbots Plugin scored78%from 54 tests.

About plugin

  • Plugin page: formilla-live-chat
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: Aug 1, 2023
  • Number of updates: 162
  • Update frequency: every 22.0 days
  • Top authors: zgilyana (100%)

Code review

54 tests

User reviews

111 reviews

Install metrics

4,000+ active /169,343 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Live Chat by Formilla - Real-time Chat & Chatbots Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.45 ▼6.53
Dashboard /wp-admin3.34 ▲0.0452.60 ▼0.74
Posts /wp-admin/edit.php3.39 ▲0.0351.49 ▼0.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.89 ▼12.18
Media Library /wp-admin/upload.php3.26 ▲0.0335.34 ▼2.36
Formilla Chat Settings /wp-admin/options-general.php?page=formilla-live-chat3.2133.97

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/formilla-live-chat/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Live Chat by Formilla - Real-time Chat & Chatbots Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7313.28 ▼1.101.89 ▲0.1143.47 ▼0.15
Dashboard /wp-admin2,225 ▲195.86 ▲0.96112.23 ▲5.5987.00 ▲42.21
Posts /wp-admin/edit.php2,119 ▲192.05 ▲0.0234.86 ▼3.8235.12 ▲4.27
Add New Post /wp-admin/post-new.php1,695 ▲16422.28 ▼0.88726.25 ▲70.8548.74 ▼6.64
Media Library /wp-admin/upload.php1,416 ▲224.28 ▲0.04119.51 ▲5.8746.55 ▼0.95
Formilla Chat Settings /wp-admin/options-general.php?page=formilla-live-chat8332.0127.2032.69

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=formilla-live-chat
    • > 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=formilla-live-chat
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/formilla-live-chat/formilla-live-chat.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 21 tag instead of maximum 10
Please take inspiration from this readme.txt

formilla-live-chat/formilla-live-chat.php Passed 13 tests

This is the main PHP file of "Live Chat by Formilla - Real-time Chat & Chatbots Plugin" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
119 characters long description:
Formilla.com Live Chat brings chat, offline email, and real-time visitor monitoring features to your WordPress website.

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
Success! There were no dangerous files found in this plugin192 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13219192

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo.png0.52KB0.54KB0.00%
main-logo.png4.21KB3.10KB▼ 26.17%