71% bit-assist

Code Review | Chat Widget: WhatsApp Chat, Facebook Messenger Chat, Telegram Chat Bubble, Line Messenger, Live Chat Support Chat Button, WeChat, SMS, Call Button, Customer Support Button with floating Chat Widget

WordPress plugin Chat Widget: WhatsApp Chat, Facebook Messenger Chat, Telegram Chat Bubble, Line Messenger, Live Chat Support Chat Button, WeChat, SMS, Call Button, Customer Support Button with floating Chat Widget scored71%from 54 tests.

About plugin

  • Plugin page: bit-assist
  • Plugin version: 1.4.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2022
  • Latest release: Nov 19, 2023
  • Number of updates: 48
  • Update frequency: every 7.9 days
  • Top authors: bitpressadmin (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

2,000+ active /13,484 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▼2.34ms] Passed 4 tests

An overview of server-side resources used by Chat Widget: WhatsApp Chat, Facebook Messenger Chat, Telegram Chat Bubble, Line Messenger, Live Chat Support Chat Button, WeChat, SMS, Call Button, Customer Support Button with floating Chat Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2540.02 ▼3.58
Dashboard /wp-admin3.59 ▲0.2946.06 ▼2.61
Posts /wp-admin/edit.php3.65 ▲0.2949.26 ▼1.75
Add New Post /wp-admin/post-new.php6.11 ▲0.2391.18 ▲8.62
Media Library /wp-admin/upload.php3.46 ▲0.2236.37 ▼1.41

Server storage [IO: ▲9.17MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 389 new files
Database: 4 new tables, 11 new options
New tables
wp_bit_assist_widgets
wp_bit_assist_widget_channels
wp_bit_assist_analytics
wp_bit_assist_responses
New WordPress options
widget_theysaidso_widget
bit_assist_widget_active
bit_assist_installed
widget_recent-posts
widget_recent-comments
bit_assist_db_version
can_compress_scripts
theysaidso_admin_options
bit_assist_active_channels
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Chat Widget: WhatsApp Chat, Facebook Messenger Chat, Telegram Chat Bubble, Line Messenger, Live Chat Support Chat Button, WeChat, SMS, Call Button, Customer Support Button with floating Chat Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6214.23 ▼0.161.68 ▼0.0444.39 ▲1.12
Dashboard /wp-admin2,229 ▲495.54 ▼0.0984.16 ▼17.3240.16 ▼6.57
Posts /wp-admin/edit.php2,134 ▲312.00 ▼0.0141.24 ▲1.7836.22 ▼0.64
Add New Post /wp-admin/post-new.php1,543 ▲1723.44 ▼0.15614.89 ▲22.7849.65 ▲4.50
Media Library /wp-admin/upload.php1,438 ▲414.18 ▼0.00101.95 ▲1.7641.68 ▲0.50
All Widgets /wp-admin/admin.php?page=bit-assist#/1,3559.18175.6092.94

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bit-assist/iframe/index.php
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'BitApps\\Assist\\Core\\Database\\Model' not found in wp-content/plugins/bit-assist/backend/app/Model/WidgetChannel.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'BitApps\\Assist\\Core\\Database\\Model' not found in wp-content/plugins/bit-assist/backend/app/Model/Analytics.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BitApps\\Assist\\Core\\Http\\Request\\Request' not found in wp-content/plugins/bit-assist/backend/app/HTTP/Requests/WidgetUpdateRequest.php:7
    • > PHP Fatal error
      Trait 'BitApps\\Assist\\Core\\Http\\Request\\Validator\\ValidateAttributes' not found in wp-content/plugins/bit-assist/backend/core/Http/Request/Validator/Validator.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'BitApps\\Assist\\Core\\Http\\Request\\Request' not found in wp-content/plugins/bit-assist/backend/app/HTTP/Requests/WidgetStoreRequest.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bit-assist/index.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'BitApps\\Assist\\Core\\Database\\Model' not found in wp-content/plugins/bit-assist/backend/app/Model/Widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'BitApps\\Assist\\Core\\Http\\Request\\Request' not found in wp-content/plugins/bit-assist/backend/app/HTTP/Requests/WidgetChannelStoreRequest.php:7
    • > PHP Fatal error
      Trait 'BitApps\\Assist\\Core\\Http\\IpTool' not found in wp-content/plugins/bit-assist/backend/core/Http/Request/Request.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'BitApps\\Assist\\Core\\Database\\Model' not found in wp-content/plugins/bit-assist/backend/app/Model/Response.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=bit-assist#/
    • > Network (severe)
    https://fonts.googleapis.com/?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=bit-assist#/
    • > Network (severe)
    https://fonts.gstatic.com/?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in bit-assist/assets to your readme.txt
Please take inspiration from this readme.txt

bit-assist/index.php 85% from 13 tests

This is the main PHP file of "Chat Widget: WhatsApp Chat, Facebook Messenger Chat, Telegram Chat Bubble, Line Messenger, Live Chat Support Chat Button, WeChat, SMS, Call Button, Customer Support Button with floating Chat Widget" version 1.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("bit-assist.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin127,076 lines of code in 356 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1622,2981,87493,584
CSS3816215219,811
PHP731,8552,1667,279
TypeScript1003,206
Markdown248902,835
SVG7400173
JSON400116
HTML212172

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.11
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces19
Interfaces1
Traits4
Classes58
▷ Abstract classes23.45%
▷ Concrete classes5696.55%
▷ Final classes3460.71%
Methods634
▷ Static methods12319.40%
▷ Public methods51781.55%
▷ Protected methods142.21%
▷ Private methods10316.25%
Functions14
▷ Named functions17.14%
▷ Anonymous functions1392.86%
Constants27
▷ Global constants00.00%
▷ Class constants27100.00%
▷ Public constants27100.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
8 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/pwa-512x512.png15.74KB0.00KB▼ 100.00%
img/widget-style/bit-assist-widget-2.png5.08KB5.08KB0.00%
(invalid) assets/apple-touch-icon.png4.90KB0.00KB▼ 100.00%
(invalid) assets/favicon-32x32.png1.29KB0.00KB▼ 100.00%
(invalid) assets/pwa-192x192.png5.25KB0.00KB▼ 100.00%