83% supsis

Code Review | Supsis – Live Chat, Chatbots & Email Integration

WordPress plugin Supsis – Live Chat, Chatbots & Email Integration scored83%from 54 tests.

About plugin

  • Plugin page: supsis
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Oct 31, 2022
  • Latest release: Nov 2, 2022
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: supsischat (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /1,089 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.95ms] Passed 4 tests

This is a short check of server-side resources used by Supsis – Live Chat, Chatbots & Email Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.75 ▲2.28
Dashboard /wp-admin3.31 ▲0.0146.95 ▼0.99
Posts /wp-admin/edit.php3.36 ▲0.0146.16 ▼2.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.62 ▼4.39
Media Library /wp-admin/upload.php3.24 ▲0.0131.19 ▼4.07

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Supsis – Live Chat, Chatbots & Email Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11513.20 ▼1.162.17 ▲0.4936.46 ▼6.21
Dashboard /wp-admin2,236 ▲504.85 ▼0.25128.38 ▲19.3441.86 ▼2.35
Posts /wp-admin/edit.php2,122 ▲332.04 ▲0.0355.24 ▲20.1536.38 ▼2.39
Add New Post /wp-admin/post-new.php1,547 ▲1223.24 ▲0.18628.86 ▼46.6551.19 ▼19.33
Media Library /wp-admin/upload.php1,415 ▲304.20 ▼0.00117.30 ▲13.3342.45 ▼3.66

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/supsis/templates/iframe.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/supsis/supsis.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Supsis\\Config' not found in wp-content/plugins/supsis/Supsis/Modules/Admin.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Supsis\\Config' not found in wp-content/plugins/supsis/Supsis/Modules/Widget.php:10

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)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (18 tag instead of maximum 10)
You can take inspiration from this readme.txt

supsis/supsis.php 77% from 13 tests

The entry point to "Supsis – Live Chat, Chatbots & Email Integration" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "7.2")
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin485 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14106327472
JSON10012
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.14
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods35
▷ Static methods617.14%
▷ Public methods3394.29%
▷ Protected methods00.00%
▷ Private methods25.71%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected