84% customize-tawk-to-widget

Code Review | Customize Tawk.to Widget

WordPress plugin Customize Tawk.to Widget scored84%from 54 tests.

About plugin

  • Plugin page: customize-tawk-to...
  • Plugin version: 1.3.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 11, 2022
  • Latest release: Nov 24, 2023
  • Number of updates: 12
  • Update frequency: every 54.3 days
  • Top authors: biggidroid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,155 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.53ms] Passed 4 tests

This is a short check of server-side resources used by Customize Tawk.to Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.78 ▼3.31
Dashboard /wp-admin3.35 ▲0.0446.81 ▼2.57
Posts /wp-admin/edit.php3.40 ▲0.0447.61 ▼1.95
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.06 ▲3.46
Media Library /wp-admin/upload.php3.27 ▲0.0437.39 ▲1.70

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Customize Tawk.to Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6214.20 ▼0.501.92 ▲0.1538.54 ▼4.06
Dashboard /wp-admin2,201 ▲215.58 ▼0.0794.70 ▼1.1043.37 ▲0.10
Posts /wp-admin/edit.php2,113 ▲102.02 ▲0.0839.45 ▼1.5237.96 ▲4.38
Add New Post /wp-admin/post-new.php1,535 ▼523.08 ▼2.14680.94 ▲46.3352.22 ▼23.04
Media Library /wp-admin/upload.php1,412 ▲94.17 ▼0.0394.94 ▼3.4142.94 ▼2.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/customize-tawk-to-widget/templates/frontend/chat.php
    • > /wp-content/plugins/customize-tawk-to-widget/inc/CustomiseNotification.php
    • > /wp-content/plugins/customize-tawk-to-widget/templates/admin/index.php
    • > /wp-content/plugins/customize-tawk-to-widget/inc/main.php
    • > /wp-content/plugins/customize-tawk-to-widget/customize-tawk-to-widget.php

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: The official readme.txt is a good inspiration

customize-tawk-to-widget/customize-tawk-to-widget.php Passed 13 tests

The entry point to "Customize Tawk.to Widget" version 1.3.4 is a PHP file that has certain tags in its header comment area
55 characters long description:
This plugin allows you to customize the Tawk.to widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3,592 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51031821,689
CSS4129111,125
PHP540113391
Sass2511331
Markdown118043
SVG10013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.50
▷ Minimum class complexity8.00
▷ Maximum class complexity9.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods14100.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/attention.png15.18KB16.31KB0.00%