72% hootsy

Code Review | Hootsy – Live Chat, Chatbots, Voice & Video

WordPress plugin Hootsy – Live Chat, Chatbots, Voice & Video scored72%from 54 tests.

About plugin

  • Plugin page: hootsy
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2022
  • Latest release: Oct 5, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: spoord (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /279 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Hootsy – Live Chat, Chatbots, Voice & Video
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.36 ▼0.42
Dashboard /wp-admin3.33 ▲0.0247.87 ▼4.16
Posts /wp-admin/edit.php3.38 ▲0.0251.26 ▲1.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.90 ▼2.53
Media Library /wp-admin/upload.php3.25 ▲0.0235.47 ▲0.50

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Hootsy – Live Chat, Chatbots, Voice & Video
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.24 ▼1.141.78 ▼0.3141.87 ▼1.69
Dashboard /wp-admin2,225 ▲345.83 ▲0.98102.55 ▼3.7079.03 ▲38.15
Posts /wp-admin/edit.php2,108 ▲162.04 ▲0.0537.32 ▼3.6633.65 ▼5.02
Add New Post /wp-admin/post-new.php1,541 ▲2218.46 ▼4.58696.36 ▲94.4757.97 ▲10.11
Media Library /wp-admin/upload.php1,407 ▲164.14 ▼0.13117.85 ▲17.0548.10 ▲4.34
Hootsy /wp-admin/hootsy-menus.php260.440.0814.37

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/hootsy/hootsy.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hootsy/includes/core.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hootsy/includes/hootsy-menus.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hootsy/includes/embed.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/hootsy-menus.php
    • > Network (severe)
    wp-admin/hootsy-menus.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: hootsy, tidio, widget, chatbot, drift...

hootsy/hootsy.php Passed 13 tests

"Hootsy – Live Chat, Chatbots, Voice & Video" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Hootsy is the #1 proactive chat platform for sales and marketing.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected146 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP53127134
Markdown1209
JavaScript1002
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions6
▷ Named functions6100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.49MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png119.21KB39.03KB▼ 67.26%
assets/banner-1544x500.png368.19KB124.15KB▼ 66.28%
assets/icon-128x128.png6.63KB2.30KB▼ 65.34%
assets/icon-256x256.png11.66KB4.25KB▼ 63.57%
assets/hootsy-icon-16x16-white.png0.62KB0.61KB▼ 2.66%