10% proprofs-chat

Code Review | ProProfs Chat- Live Chat & Chatbot Plugin

WordPress plugin ProProfs Chat- Live Chat & Chatbot Plugin scored10%from 54 tests.

About plugin

  • Plugin page: proprofs-chat
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 12, 2018
  • Latest release: Aug 29, 2023
  • Number of updates: 67
  • Update frequency: every 28.0 days
  • Top authors: proprofs (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

80+ active /1,829 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/proprofs-chat/proprofs-chat.php+4
    Constant WP_DEBUG already defined

Server metrics [RAM: ▼1.90MB] [CPU: ▼55.75ms] Passed 4 tests

Server-side resources used by ProProfs Chat- Live Chat & Chatbot Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.41 ▼35.68
Dashboard /wp-admin2.11 ▼1.205.91 ▼43.52
Posts /wp-admin/edit.php2.11 ▼1.255.87 ▼43.57
Add New Post /wp-admin/post-new.php2.11 ▼3.787.00 ▼100.21
Media Library /wp-admin/upload.php2.11 ▼1.125.60 ▼26.25

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for ProProfs Chat- Live Chat & Chatbot Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5813.67 ▼1.011.71 ▼0.2937.14 ▼5.10
Dashboard /wp-admin2,221 ▲365.82 ▲0.92105.77 ▼1.0176.67 ▲32.67
Posts /wp-admin/edit.php2,104 ▲121.98 ▼0.0338.46 ▼5.1935.20 ▲0.31
Add New Post /wp-admin/post-new.php1,546 ▲3218.32 ▲0.69702.89 ▲76.0475.05 ▲11.78
Media Library /wp-admin/upload.php1,403 ▲184.16 ▼0.05105.08 ▼1.9444.32 ▼3.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/proprofs-chat/proprofs-chat.php+4
    Constant WP_DEBUG already defined
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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 | 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
The following issues need your attention
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/proprofs-chat/ajax_plugin_theme.php
    • > /wp-content/plugins/proprofs-chat/settings.php
    • > /wp-content/plugins/proprofs-chat/ajax_plugin_postchat.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/proprofs-chat/templates/post_chat_settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/proprofs-chat/templates/tpl-setting.php:4
    • > PHP Notice
      Undefined index: action in wp-content/plugins/proprofs-chat/ajax_plugin_postchat.php on line 35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/proprofs-chat/templates/theme_setting.php:2
    • > PHP Notice
      Undefined index: BubbleType in wp-content/plugins/proprofs-chat/ajax_plugin_theme.php on line 8
    • > PHP Notice
      Undefined variable: fields_string in wp-content/plugins/proprofs-chat/ajax_plugin_postchat.php on line 151
    • > PHP Notice
      Undefined index: position in wp-content/plugins/proprofs-chat/ajax_plugin_theme.php on line 10
    • > PHP Notice
      Undefined variable: fields_string in wp-content/plugins/proprofs-chat/ajax_plugin_prechat.php on line 192
    • > PHP Notice
      Undefined index: action in wp-content/plugins/proprofs-chat/ajax_plugin_prechat.php on line 35
    • > PHP Notice
      Undefined index: BubbleStyle in wp-content/plugins/proprofs-chat/ajax_plugin_theme.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: live chat software, live chat, chat plugin, chatbot, free live chat...

proprofs-chat/proprofs-chat.php 92% from 13 tests

This is the main PHP file of "ProProfs Chat- Live Chat & Chatbot Plugin" version 2.0.0, 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:
  • Description: Keep the plugin description shorter than 140 characters (currently 332 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,098 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS5200213,111
PHP116631728
JavaScript355259

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1381.25%
▷ Protected methods00.00%
▷ Private methods318.75%
Functions14
▷ Named functions1178.57%
▷ Anonymous functions321.43%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) images/ppct-icon.png1.22KB0.00KB▼ 100.00%
images/17.png0.57KB0.58KB0.00%
images/bubble_grey.png0.57KB0.58KB0.00%
images/6.png0.57KB0.58KB0.00%
images/medium.png0.57KB0.43KB▼ 24.14%