88% jitbit-live-chat

Code Review | Jitbit Live Chat for Wordpress

WordPress plugin Jitbit Live Chat for Wordpress scored 88% from 54 tests.

About plugin

  • Plugin page: jitbit-live-chat
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 5.8.1
  • First release: Oct 17, 2013
  • Latest release: Sep 4, 2014
  • Number of updates: 3
  • Update frequency: every 107.0 days
  • Top authors: maxt3r (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 636 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼141.16ms] Passed 4 tests

Server-side resources used by Jitbit Live Chat for Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0135.69 ▼1.11
Dashboard /wp-admin3.07 ▲0.0155.01 ▲7.34
Posts /wp-admin/edit.php3.12 ▲0.0149.43 ▼8.36
Add New Post /wp-admin/post-new.php5.43 ▼0.0187.63 ▼562.52
Media Library /wp-admin/upload.php3.01 ▲0.0135.77 ▲7.53
Jitbit Livechat /wp-admin/plugins.php?page=livecaht-elements3.0627.69

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Jitbit Live Chat for Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.69 ▲0.1710.50 ▲2.7450.84 ▼1.70
Dashboard /wp-admin2,972 ▲415.93 ▼0.08171.79 ▼40.17115.42 ▼26.92
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0166.91 ▼39.7996.80 ▼10.63
Add New Post /wp-admin/post-new.php1,594 ▲1318.81 ▼1.79401.91 ▲20.78112.93 ▼2.39
Media Library /wp-admin/upload.php1,812 ▲54.99 ▼0.06161.92 ▼0.53124.45 ▼7.13
Jitbit Livechat /wp-admin/plugins.php?page=livecaht-elements1,0682.0558.9474.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/plugins.php?page=livecaht-elements
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/plugins.php?page=livecaht-elements
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jitbit-live-chat/livechat.php:27

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: live chat

jitbit-live-chat/livechat.php 92% from 13 tests

"Jitbit Live Chat for Wordpress" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jitbit-live-chat.php" instead of "livechat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin54 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121754

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin