84% comm100-live-chat

Code Review | Comm100 Live Chat & Chatbot

WordPress plugin Comm100 Live Chat & Chatbot scored84%from 54 tests.

About plugin

  • Plugin page: comm100-live-chat
  • Plugin version: 2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 25, 2012
  • Latest release: Jun 2, 2022
  • Number of updates: 130
  • Update frequency: every 28.0 days
  • Top authors: Comm100Corp (50.77%)RoyChen (50%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active /46,468 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.40ms] Passed 4 tests

A check of server-side resources used by Comm100 Live Chat & Chatbot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.76 ▲9.79
Dashboard /wp-admin3.40 ▲0.1045.90 ▼4.04
Posts /wp-admin/edit.php3.51 ▲0.1646.92 ▼0.59
Add New Post /wp-admin/post-new.php5.98 ▲0.0978.87 ▼4.77
Media Library /wp-admin/upload.php3.32 ▲0.0938.11 ▲3.81
Account Setup /wp-admin/admin.php?page=comm100livechat_settings3.2931.72

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_comm100livechat_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Comm100 Live Chat & Chatbot: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.35 ▼0.101.82 ▲0.2643.02 ▼1.90
Dashboard /wp-admin2,220 ▲405.56 ▼0.0681.35 ▼6.8274.63 ▲32.86
Posts /wp-admin/edit.php2,122 ▲221.99 ▼0.0137.35 ▲0.2435.09 ▼0.16
Add New Post /wp-admin/post-new.php1,559 ▲2423.36 ▲5.06745.66 ▲80.0052.82 ▼11.74
Media Library /wp-admin/upload.php1,422 ▲224.11 ▼0.09104.04 ▲3.2677.90 ▲34.87
Account Setup /wp-admin/admin.php?page=comm100livechat_settings1,6254.5556.6245.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_comm100livechat_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/comm100-live-chat/plugin_files/Comm100LiveChat.class.php:237
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/comm100-live-chat/comm100livechat.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/comm100-live-chat/plugin_files/Comm100LiveChat.class.php:237

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

comm100-live-chat/comm100livechat.php 92% from 13 tests

The entry point to "Comm100 Live Chat & Chatbot" version 2.9 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("comm100-live-chat.php" instead of "comm100livechat.php")

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 plugin986 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39855603
JavaScript2485383

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.00
▷ Minimum class complexity2.00
▷ Maximum class complexity23.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods45
▷ Static methods36.67%
▷ Public methods3271.11%
▷ Protected methods1226.67%
▷ Private methods12.22%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin_files/images/favicon.png3.07KB0.47KB▼ 84.56%
plugin_files/images/logo.png6.90KB3.05KB▼ 55.85%