83% fogm-messenger-web-chat

Code Review | Live Messenger - Customer Chat for Wordpress

WordPress plugin Live Messenger - Customer Chat for Wordpress scored83%from 54 tests.

About plugin

  • Plugin page: fogm-messenger-we...
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.2-5.5.3
  • WordPress version: 6.3.1
  • First release: Jan 13, 2018
  • Latest release: Nov 16, 2020
  • Number of updates: 18
  • Update frequency: every 58.0 days
  • Top authors: joel.douglas (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /5,073 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.99ms] Passed 4 tests

This is a short check of server-side resources used by Live Messenger - Customer Chat for Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.83 ▼2.23
Dashboard /wp-admin3.33 ▲0.0346.77 ▼3.40
Posts /wp-admin/edit.php3.38 ▲0.0345.18 ▼1.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.01 ▲0.14
Media Library /wp-admin/upload.php3.26 ▲0.0334.15 ▼4.80
FB Messenger Chat /wp-admin/options-general.php?page=fogm-facebook-messenger-chat3.2034.76

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Live Messenger - Customer Chat for Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲7214.30 ▼0.1249.14 ▲47.1246.08 ▲1.98
Dashboard /wp-admin2,204 ▲305.81 ▲0.9399.11 ▼24.6836.91 ▼13.56
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0136.80 ▲1.0531.55 ▼5.73
Add New Post /wp-admin/post-new.php1,545 ▲918.06 ▼5.03645.78 ▼18.0458.20 ▲1.49
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.0299.17 ▼0.9443.11 ▼4.17
FB Messenger Chat /wp-admin/options-general.php?page=fogm-facebook-messenger-chat2,08116.76552.9032.20

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
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=fogm-facebook-messenger-chat
    • > Notice in wp-content/plugins/fogm-messenger-web-chat/includes/class-fogm-messenger-web-chat.php+159
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: Add a description for screenshot #4 in fogm-messenger-web-chat/assets to your readme.txt
The official readme.txt might help

fogm-messenger-web-chat/fogm-messenger-web-chat.php 92% from 13 tests

The main PHP file in "Live Messenger - Customer Chat for Wordpress" ver. 3.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 275 characters long)

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 plugin846 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3111161502
CSS1366313
JavaScript22531

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin