99% kp-fastest-tawk-to-chat

Code Review | KP Fastest Tawk.to Chat

WordPress plugin KP Fastest Tawk.to Chat scored 99% from 54 tests.

About plugin

  • Plugin page: kp-fastest-tawk-t...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.7.2
  • WordPress version: 5.8.1
  • First release: Jul 29, 2019
  • Latest release: Jun 16, 2021
  • Number of updates: 26
  • Update frequency: every 26.5 days
  • Top authors: kreativopro (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active / 19,540 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by KP Fastest Tawk.to Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1546.25 ▲22.45
Dashboard /wp-admin3.09 ▲0.0457.47 ▲5.50
Posts /wp-admin/edit.php3.18 ▲0.0757.72 ▲2.97
Add New Post /wp-admin/post-new.php5.46 ▲0.03107.11 ▼544.76
Media Library /wp-admin/upload.php3.04 ▲0.0339.53 ▼7.24
KP Tawk.to Chat /wp-admin/options-general.php?page=kpfttc3.0134.22

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
kpfttc_chat_link
kpfttc_delay_time
KPFTTC_VERSION
kpfttc_excluded_pages
kpfttc_admin_disabled
kpfttc_chat_enabled

Browser metrics Passed 4 tests

This is an overview of browser requirements for KP Fastest Tawk.to Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲19416.35 ▲1.029.12 ▼3.2352.30 ▲3.63
Dashboard /wp-admin3,015 ▲815.97 ▼0.00166.74 ▲3.41122.11 ▲2.06
Posts /wp-admin/edit.php2,793 ▲542.73 ▲0.0281.51 ▲6.55101.09 ▲1.69
Add New Post /wp-admin/post-new.php1,612 ▼318.20 ▼3.29470.29 ▲146.11117.73 ▼0.32
Media Library /wp-admin/upload.php1,859 ▲525.05 ▼0.00179.40 ▲10.23124.35 ▼6.55
KP Tawk.to Chat /wp-admin/options-general.php?page=kpfttc1,2542.4778.53108.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

kp-fastest-tawk-to-chat/kp-fastest-tawkto-chat.php 77% from 13 tests

The primary PHP file in "KP Fastest Tawk.to Chat" version 1.1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kp-fastest-tawk-to-chat.php" instead of "kp-fastest-tawkto-chat.php")

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
Good job! No executable or dangerous file extensions detected306 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP77037245
CSS17035
JavaScript13026

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.27MB with 0.18MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/kreativo-pro.png280.94KB96.60KB▼ 65.61%