84% kp-fastest-chat

Code Review | KP Fastest Chat

WordPress plugin KP Fastest Chat scored84%from 54 tests.

About plugin

  • Plugin page: kp-fastest-chat
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 5, 2018
  • Latest release: Nov 4, 2020
  • Number of updates: 30
  • Update frequency: every 23.4 days
  • Top authors: kreativopro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,078 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by KP Fastest Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.99 ▲0.35
Dashboard /wp-admin3.32 ▲0.0244.19 ▼7.01
Posts /wp-admin/edit.php3.37 ▲0.0147.06 ▲2.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.15 ▼9.07
Media Library /wp-admin/upload.php3.24 ▲0.0138.73 ▲3.77
KP Fastest Chat /wp-admin/options-general.php?page=kpfc3.2131.41

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
kpfc_settings
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for KP Fastest Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.34 ▼0.951.63 ▼0.1541.29 ▼0.57
Dashboard /wp-admin2,210 ▲225.86 ▲0.93109.22 ▲2.1540.38 ▲0.37
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0440.93 ▲4.6335.53 ▲0.96
Add New Post /wp-admin/post-new.php1,537 ▲1523.17 ▲0.07661.87 ▼26.1958.87 ▲8.51
Media Library /wp-admin/upload.php1,395 ▲104.23 ▲0.0199.12 ▼0.9646.31 ▲0.61
KP Fastest Chat /wp-admin/options-general.php?page=kpfc8702.0424.8934.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • kpfc_settings
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/kp-fastest-chat/includes/kpfc-admin-footer.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kp-fastest-chat/includes/kpfc-sections-fields.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/kp-fastest-chat/includes/kpfc-admin-settings.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kp-fastest-chat/includes/kpfc-frontend.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kp-fastest-chat/includes/kpfc-styles.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: chat, live chat support plugin, wordpress live chat, live support, live support plugin...

kp-fastest-chat/kp-fastest-chat.php 92% from 13 tests

"KP Fastest Chat" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin214 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP79142162
CSS27252

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.39MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/call.png12.55KB4.66KB▼ 62.84%
assets/images/live-chat.png18.40KB8.07KB▼ 56.12%
assets/images/sms.png7.16KB4.68KB▼ 34.65%
assets/images/whatsapp.png5.98KB4.19KB▼ 29.89%
assets/images/messenger.png6.88KB3.61KB▼ 47.58%