83% dialogity-website-chat

Code Review | Dialogity Free Live Chat

WordPress plugin Dialogity Free Live Chat scored83%from 54 tests.

About plugin

  • Plugin page: dialogity-website...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: Apr 22, 2021
  • Number of updates: 9
  • Update frequency: every 32.1 days
  • Top authors: dialogity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Dialogity Free Live Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.92 ▲3.15
Dashboard /wp-admin3.32 ▲0.0148.37 ▼0.79
Posts /wp-admin/edit.php3.37 ▲0.0142.65 ▼4.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.12 ▼17.27
Media Library /wp-admin/upload.php3.24 ▲0.0139.16 ▲5.86

Server storage [IO: ▲0.33MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Dialogity Free Live Chat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.44 ▲0.061.90 ▲0.2844.43 ▲5.07
Dashboard /wp-admin2,203 ▲225.57 ▼0.0389.71 ▼17.2965.79 ▲25.78
Posts /wp-admin/edit.php2,111 ▲111.97 ▼0.0632.94 ▼1.1730.35 ▼4.27
Add New Post /wp-admin/post-new.php1,550 ▲2223.14 ▼0.20735.64 ▲61.9256.76 ▲3.91
Media Library /wp-admin/upload.php1,411 ▲114.17 ▼0.0893.18 ▼16.8871.76 ▲24.26

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

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

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 | 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/dialogity-website-chat/dialogity.php:40

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

dialogity-website-chat/dialogity.php 85% from 13 tests

Analyzing the main PHP file in "Dialogity Free Live Chat" version 1.0.3
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dialogity-website-chat.php" instead of "dialogity.php")

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
Success! There were no dangerous files found in this plugin417 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
SVG200229
PHP13085153
JavaScript142035

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.28MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/menu_screen.png229.04KB89.16KB▼ 61.07%
images/logo.png0.80KB0.44KB▼ 45.27%
images/install_screen.png55.39KB24.00KB▼ 56.67%
images/logo_notext.png1.03KB0.68KB▼ 33.90%