78% quick-chat-buttons

Code Review | Quick Chat Buttons: Chat with your website visitors via popular messaging apps

WordPress plugin Quick Chat Buttons: Chat with your website visitors via popular messaging apps scored78%from 54 tests.

About plugin

  • Plugin page: quick-chat-buttons
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2
  • WordPress version: 6.3.1
  • First release: Jun 5, 2023
  • Latest release: Oct 12, 2023
  • Number of updates: 6
  • Update frequency: every 22.2 days
  • Top authors: klaxonapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /524 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 gracefully, with no errors

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

This is a short check of server-side resources used by Quick Chat Buttons: Chat with your website visitors via popular messaging apps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.15 ▼1.39
Dashboard /wp-admin3.33 ▲0.0350.63 ▲8.17
Posts /wp-admin/edit.php3.39 ▲0.0346.93 ▲5.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.95 ▼7.29
Media Library /wp-admin/upload.php3.26 ▲0.0335.57 ▲3.49
Dashboard /wp-admin/admin.php?page=quick-chat-buttons3.6639.12
Upgrade to Pro /wp-admin/admin.php?page=quick-chat-buttons-go-pro3.4333.73

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Quick Chat Buttons: Chat with your website visitors via popular messaging apps
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18113.78 ▼0.8211.20 ▲9.5043.71 ▼4.57
Dashboard /wp-admin2,231 ▲505.67 ▼0.0485.98 ▼15.6338.76 ▲0.50
Posts /wp-admin/edit.php2,142 ▲422.00 ▼0.0136.46 ▼3.6833.30 ▼3.79
Add New Post /wp-admin/post-new.php1,548 ▲2223.47 ▼0.25638.80 ▲5.0550.65 ▲3.32
Media Library /wp-admin/upload.php1,442 ▲424.37 ▲0.1995.03 ▲0.1040.74 ▼0.98
Dashboard /wp-admin/admin.php?page=quick-chat-buttons4,8462.4639.1847.39
Upgrade to Pro /wp-admin/admin.php?page=quick-chat-buttons-go-pro1,7912.3045.20108.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 9× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/quick-chat-buttons/includes/class-quick-chat-buttons.php
    • > /wp-content/plugins/quick-chat-buttons/public/class-quick-chat-buttons-public.php
    • > /wp-content/plugins/quick-chat-buttons/public/partials/quick-chat-buttons-public-display.php
    • > /wp-content/plugins/quick-chat-buttons/admin/partials/modal.php
    • > /wp-content/plugins/quick-chat-buttons/includes/class-quick-chat-buttons-i18n.php
    • > /wp-content/plugins/quick-chat-buttons/includes/class-quick-chat-buttons-activator.php
    • > /wp-content/plugins/quick-chat-buttons/admin/class-quick-chat-buttons-admin.php
    • > /wp-content/plugins/quick-chat-buttons/admin/partials/dashboard.php
    • > /wp-content/plugins/quick-chat-buttons/includes/class-quick-chat-buttons-deactivator.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_Chat_Buttons' not found in wp-content/plugins/quick-chat-buttons/admin/partials/widget-list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/quick-chat-buttons/admin/partials/widget-new.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_Chat_Buttons' not found in wp-content/plugins/quick-chat-buttons/admin/partials/trigger-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_Chat_Buttons' not found in wp-content/plugins/quick-chat-buttons/admin/partials/widget-setting.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_Chat_Buttons' not found in wp-content/plugins/quick-chat-buttons/admin/partials/customize-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_Chat_Buttons' not found in wp-content/plugins/quick-chat-buttons/admin/partials/channels.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_Chat_Buttons' not found in wp-content/plugins/quick-chat-buttons/admin/partials/go-pro.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: chat, facebook messenger, facebook, chat buttons, quick chat...

quick-chat-buttons/quick-chat-buttons.php Passed 13 tests

Analyzing the main PHP file in "Quick Chat Buttons: Chat with your website visitors via popular messaging apps" version 1.0.4
18 characters long description:
Quick Chat Buttons

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected18,604 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
CSS16197606,790
JavaScript101,2353094,637
SVG1214,089
PHP213166033,088

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity14.14
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods52
▷ Static methods1426.92%
▷ Public methods4790.38%
▷ Protected methods00.00%
▷ Private methods59.62%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.58MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/day-time-rule.png20.35KB10.27KB▼ 49.52%
admin/images/no-channels.png409.68KB178.74KB▼ 56.37%
admin/css/jquery.minicolors.png67.02KB34.31KB▼ 48.80%
admin/images/date-rule.png7.15KB4.19KB▼ 41.35%
admin/images/page-rule.png13.55KB7.39KB▼ 45.47%