77% jibber-chat

Code Review | Jibber Chat

WordPress plugin Jibber Chat scored 77% from 54 tests.

About plugin

  • Plugin page: jibber-chat
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Apr 18, 2018
  • Latest release: Dec 17, 2018
  • Number of updates: 21
  • Update frequency: every 11.6 days
  • Top authors: jibberchat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 829 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.29ms] Passed 4 tests

A check of server-side resources used by Jibber Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.22 ▲0.03
Dashboard /wp-admin3.41 ▲0.1144.88 ▼3.47
Posts /wp-admin/edit.php3.52 ▲0.1749.52 ▲0.63
Add New Post /wp-admin/post-new.php6.01 ▲0.1284.36 ▼12.47
Media Library /wp-admin/upload.php3.33 ▲0.1034.64 ▼1.24

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Jibber Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲14014.09 ▼0.2924.29 ▲22.6285.72 ▲33.94
Dashboard /wp-admin2,248 ▲605.91 ▲1.02100.96 ▼5.0439.28 ▼3.87
Posts /wp-admin/edit.php2,131 ▲392.00 ▼0.0540.27 ▲0.6434.58 ▼0.47
Add New Post /wp-admin/post-new.php1,531 ▼1123.20 ▲4.81643.19 ▲29.7365.80 ▲12.54
Media Library /wp-admin/upload.php1,425 ▲434.18 ▼0.0197.62 ▲0.4942.91 ▼2.62

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
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/jibber-chat/jibber-chat.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'JC_Inc\\JC_Base\\Jibber_Chat_BaseController' not found in wp-content/plugins/jibber-chat/inc/JC_Base/Jibber_Chat_Enqueue.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'JC_Inc\\JC_Base\\Jibber_Chat_BaseController' not found in wp-content/plugins/jibber-chat/inc/JC_Base/Jibber_Chat_SettingsLink.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'JC_Inc\\JC_Base\\Jibber_Chat_BaseController' not found in wp-content/plugins/jibber-chat/inc/JC_API/JC_Callbacks/Jibber_Chat_AdminCallbacks.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/jibber-chat/templates/jibber_chat_admin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'JC_Inc\\JC_Base\\Jibber_Chat_BaseController' not found in wp-content/plugins/jibber-chat/inc/JC_Pages/Jibber_Chat_Admin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Use the Jibber Chat in your webstore to connect with your customers.), #2 (The Jibber Chat bubble.), #3 (Try the Jibber Chat app for both iOS and Android.), #4 (An easy to use dashboard.), #5 (Registration form.)
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

jibber-chat/jibber-chat.php 85% from 13 tests

The entry point to "Jibber Chat" version 1.0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin627 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP20159229604
JSON20018
CSS1003
JavaScript1102

PHP code Passed 2 tests

Analyzing 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.36
Average class complexity5.83
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods52
▷ Static methods815.38%
▷ Public methods4994.23%
▷ Protected methods00.00%
▷ Private methods35.77%
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
PNG images were not found in this plugin