84% crisp

Code Review | Crisp - Live Chat and Chatbot

WordPress plugin Crisp - Live Chat and Chatbot scored 84% from 54 tests.

About plugin

  • Plugin page: crisp
  • Plugin version: 0.43
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Jan 19, 2016
  • Latest release: May 5, 2023
  • Number of updates: 94
  • Update frequency: every 28.7 days
  • Top authors: crisp.im (100%)

Code review

54 tests

User reviews

67 reviews

Install metrics

30,000+ active / 537,851 total downloads


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
Installer ran successfully

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

This is a short check of server-side resources used by Crisp - Live Chat and Chatbot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.96 ▲3.65
Dashboard /wp-admin3.35 ▲0.0548.63 ▲5.03
Posts /wp-admin/edit.php3.40 ▲0.0444.99 ▼6.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0595.29 ▼2.89
Media Library /wp-admin/upload.php3.27 ▲0.0435.54 ▲1.83

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Crisp - Live Chat and Chatbot
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲13113.23 ▼1.231.79 ▲0.0441.29 ▼2.84
Dashboard /wp-admin2,260 ▲755.84 ▲0.9896.43 ▼9.4961.83 ▲18.24
Posts /wp-admin/edit.php2,161 ▲722.03 ▼0.0140.69 ▼0.5834.92 ▼1.29
Add New Post /wp-admin/post-new.php1,583 ▲4918.46 ▼4.64633.34 ▼29.9165.70 ▲4.21
Media Library /wp-admin/upload.php1,457 ▲694.15 ▼0.07118.18 ▲17.9347.38 ▲0.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • crisp_onboarding
    • db_upgraded

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/crisp/crisp.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/crisp/crisp.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/crisp/crisp.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/crisp/views/settings_installed.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/crisp/views/settings_install.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration Passed 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
7 plugin tags: live chat, chatbot, livechat, free live chat, chat bot...

crisp/crisp.php Passed 13 tests

Analyzing the main PHP file in "Crisp - Live Chat and Chatbot" version 0.43
26 characters long description:
Crisp is a Livechat plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin525 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1184.62%
▷ Anonymous functions215.38%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 1.72MB with 1.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png102.02KB30.20KB▼ 70.39%
assets/banner-772x250.png41.03KB13.53KB▼ 67.02%
assets/icon-128x128.png3.11KB2.87KB▼ 7.70%
assets/screenshot-1.png728.53KB202.69KB▼ 72.18%
assets/screenshot-2.png890.63KB253.51KB▼ 71.54%