84% fb-messenger-live-chat

Code Review | Live Chat with Messenger Customer Chat

WordPress plugin Live Chat with Messenger Customer Chat scored84%from 54 tests.

About plugin

  • Plugin page: fb-messenger-live...
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2016
  • Latest release: Jul 25, 2023
  • Number of updates: 97
  • Update frequency: every 28.2 days
  • Top authors: zotabox (100%)

Code review

54 tests

User reviews

210 reviews

Install metrics

6,000+ active /406,811 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.04MB] [CPU: ▼7.02ms] Passed 4 tests

This is a short check of server-side resources used by Live Chat with Messenger Customer Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.28 ▲2.40
Dashboard /wp-admin3.36 ▲0.0144.72 ▼13.28
Posts /wp-admin/edit.php3.41 ▲0.0543.67 ▼2.43
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.84 ▼10.39
Media Library /wp-admin/upload.php3.28 ▲0.0534.54 ▼1.97

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options
ztb_source
ztb_domainid
widget_recent-comments
access_key
ztb_status_message
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
ztb_status_disconnect
...

Browser metrics Passed 4 tests

Checking browser requirements for Live Chat with Messenger Customer Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.16 ▼1.451.68 ▼0.1643.25 ▼1.00
Dashboard /wp-admin2,225 ▲375.80 ▲0.79127.41 ▲14.4286.48 ▲43.46
Posts /wp-admin/edit.php2,108 ▲192.03 ▼0.0136.61 ▼2.2034.91 ▲2.69
Add New Post /wp-admin/post-new.php1,538 ▲1922.96 ▼0.20762.05 ▲64.3257.93 ▼2.36
Media Library /wp-admin/upload.php1,410 ▲254.15 ▼0.1097.92 ▼7.8576.13 ▲32.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 14 options in the database
    • ztb_access_key
    • ztb_id
    • ztb_source
    • db_upgraded
    • ztb_domainid
    • ztb_status_disconnect
    • widget_recent-comments
    • can_compress_scripts
    • ztb_status_message
    • ztb_email
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fb-messenger-live-chat/fb-messenger-live-chat.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Donate link: Invalid URI ("")
The official readme.txt might help

fb-messenger-live-chat/fb-messenger-live-chat.php Passed 13 tests

This is the main PHP file of "Live Chat with Messenger Customer Chat" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
129 characters long description:
Support your customers via Facebook Live Chat conveniently from your own website. 10+ more popular marketing tools also included.

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
There were no executable files found in this plugin501 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS234273
PHP11915188
JavaScript14040

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
zotabox.png3.19KB0.44KB▼ 86.31%
assets/images/bg_body.png22.84KB9.83KB▼ 56.98%
assets/images/check.png2.96KB0.37KB▼ 87.47%
assets/images/logo-zotabox.png5.45KB2.43KB▼ 55.35%