83% the-casengo-chat-widget

Code Review | Casengo Live Chat Support

WordPress plugin Casengo Live Chat Support scored83%from 54 tests.

About plugin

  • Plugin page: the-casengo-chat-...
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3
  • WordPress version: 6.3.1
  • First release: Dec 3, 2012
  • Latest release: Jan 22, 2016
  • Number of updates: 784
  • Update frequency: every 1.5 days
  • Top authors: casengo (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

100+ active /85,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Casengo Live Chat Support
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.53 ▼1.77
Dashboard /wp-admin3.35 ▲0.0547.47 ▼9.25
Posts /wp-admin/edit.php3.41 ▲0.0448.96 ▼4.48
Add New Post /wp-admin/post-new.php5.94 ▲0.0488.72 ▼16.41
Media Library /wp-admin/upload.php3.28 ▲0.0440.66 ▼2.38
Settings /wp-admin/admin.php?page=the-casengo-chat-widget/casengo.php3.2436.02
Our Friends /wp-admin/admin.php?page=the-casengo-chat-widget/friends.php3.2435.13

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Casengo Live Chat Support
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9314.39 ▲0.032.22 ▲0.5941.69 ▼2.69
Dashboard /wp-admin2,218 ▲445.56 ▼0.1586.61 ▼15.6767.90 ▲26.09
Posts /wp-admin/edit.php2,129 ▲292.02 ▲0.0136.02 ▼4.7332.70 ▼13.83
Add New Post /wp-admin/post-new.php1,562 ▲3323.20 ▲0.27736.88 ▲76.0952.60 ▲1.23
Media Library /wp-admin/upload.php1,426 ▲294.24 ▲0.07102.89 ▼14.4175.08 ▲23.41
Settings /wp-admin/admin.php?page=the-casengo-chat-widget/casengo.php1,0732.0023.8236.71
Our Friends /wp-admin/admin.php?page=the-casengo-chat-widget/friends.php8371.9924.1128.20

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/the-casengo-chat-widget/friends.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-casengo-chat-widget/casengo.php:85

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #12, #8 in the-casengo-chat-widget/assets to your readme.txt
  • Tags: You are using too many tags: 25 tag instead of maximum 10
You can look at the official readme.txt

the-casengo-chat-widget/casengo.php 92% from 13 tests

"Casengo Live Chat Support" version 2.1.4'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: It is recommended to name the main PHP file as the plugin slug ("the-casengo-chat-widget.php" instead of "casengo.php")

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
There were no executable files found in this plugin300 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24831300

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 2.31MB with 1.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-8.png119.41KB32.40KB▼ 72.86%
assets/screenshot-7.png138.87KB49.22KB▼ 64.56%
assets/screenshot-2.png446.61KB136.92KB▼ 69.34%
assets/screenshot-11.png138.60KB47.06KB▼ 66.04%
images/Info.png57.73KB17.38KB▼ 69.89%