94% rake-live-chat

Code Review | Rake Live Chat

WordPress plugin Rake Live Chat scored 94% from 54 tests.

About plugin

  • Plugin page: rake-live-chat
  • Plugin version: 1.4.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 5.8.1
  • First release: Jul 15, 2020
  • Latest release: Feb 1, 2021
  • Number of updates: 26
  • Update frequency: every 7.7 days
  • Top authors: hunt456 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 790 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Rake Live Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.50 ▲11.28
Dashboard /wp-admin3.07 ▲0.0140.77 ▼6.20
Posts /wp-admin/edit.php3.12 ▲0.0139.53 ▼5.60
Add New Post /wp-admin/post-new.php5.43 ▼0.0190.92 ▼574.15
Media Library /wp-admin/upload.php3.01 ▲0.0134.60 ▼1.31

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, no new options
New tables
wp_rlc_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rake Live Chat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲17116.00 ▲0.4112.29 ▲1.6546.89 ▲2.96
Dashboard /wp-admin3,037 ▲1066.12 ▲0.17135.56 ▼12.27108.88 ▼0.25
Posts /wp-admin/edit.php2,803 ▲642.71 ▲0.0065.54 ▲1.9186.68 ▼8.30
Add New Post /wp-admin/post-new.php1,629 ▲12921.91 ▲3.31264.74 ▼111.82106.49 ▼0.88
Media Library /wp-admin/upload.php1,871 ▲615.04 ▲0.02150.36 ▼4.00112.72 ▼8.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      include_once(RAKE_LIVE_CHAT_PLUGIN_DIR_PATH/views/bot-status.php): failed to open stream: No such file or directory in wp-content/plugins/rake-live-chat/views/helper.php on line 2
    • > PHP Warning
      Use of undefined constant RAKE_LIVE_CHAT_PLUGIN_DIR_PATH - assumed 'RAKE_LIVE_CHAT_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rake-live-chat/views/helper.php on line 2
    • > PHP Warning
      include_once(): Failed opening 'RAKE_LIVE_CHAT_PLUGIN_DIR_PATH/views/bot-status.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/rake-live-chat/views/helper.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

rake-live-chat/rake-live-chat.php 92% from 13 tests

The main PHP script in "Rake Live Chat" version 1.4.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 285 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,721 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP5106381,100
CSS26711341
JavaScript1483264
SVG51016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png1.65KB0.97KB▼ 40.89%
assets/images/rake-logo.png5.22KB2.67KB▼ 48.89%