10% live-chat-by-crowdstream

Code Review | Live Chat by Crowdstream

WordPress plugin Live Chat by Crowdstream scored 10% from 54 tests.

About plugin

  • Plugin page: live-chat-by-crow...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Jul 4, 2016
  • Latest release: Jul 4, 2016
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: alex.phayes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 532 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/live-chat-by-crowdstream/LiveChatByCrowdstream_Plugin.php+31
    count(): Parameter must be an array or an object that implements Countable

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

An overview of server-side resources used by Live Chat by Crowdstream
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.18 ▼1.77
Dashboard /wp-admin3.41 ▲0.1147.60 ▲0.63
Posts /wp-admin/edit.php3.52 ▲0.1749.52 ▲2.34
Add New Post /wp-admin/post-new.php5.99 ▲0.1187.61 ▼14.57
Media Library /wp-admin/upload.php3.33 ▲0.1035.66 ▼2.32
Live Chat by Crowdstream /wp-admin/plugins.php?page=LiveChatByCrowdstream_PluginSettings3.3031.98

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
LiveChatByCrowdstream_Plugin__version
LiveChatByCrowdstream_Plugin_cs_chat_app_id
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
LiveChatByCrowdstream_Plugin_cs_chat_track_pv
theysaidso_admin_options
LiveChatByCrowdstream_Plugin__installed
...

Browser metrics Passed 4 tests

Live Chat by Crowdstream: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.61 ▼0.761.92 ▲0.3437.45 ▼2.38
Dashboard /wp-admin2,213 ▲254.84 ▼1.01110.91 ▼5.8139.88 ▼7.02
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0135.03 ▼2.5034.88 ▲4.64
Add New Post /wp-admin/post-new.php1,536 ▲323.14 ▲0.01682.86 ▲39.9259.74 ▼0.00
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.0195.31 ▼18.5341.56 ▼5.22
Live Chat by Crowdstream /wp-admin/plugins.php?page=LiveChatByCrowdstream_PluginSettings8862.0324.2329.39

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • LiveChatByCrowdstream_Plugin__installed
    • LiveChatByCrowdstream_Plugin_cs_chat_track_pv
    • LiveChatByCrowdstream_Plugin_cs_chat_app_id
    • db_upgraded
    • widget_recent-comments
    • LiveChatByCrowdstream_Plugin__version
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • ...

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please 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/live-chat-by-crowdstream/live-chat-by-crowdstream.php:77

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Invalid URI ("")
  • Screenshots: These screenshots have no corresponding images in /assets: #1 ([Live Chat by Crowdstream](https://www.crowdstream.io/software/live-chat-for-websites "Live Chat WordPress plugin") chat window.), #2 (Online Live Chat side bar.)
  • Tags: No valid plugin tags found
The official readme.txt is a good inspiration

live-chat-by-crowdstream/live-chat-by-crowdstream.php Passed 13 tests

The main PHP script in "Live Chat by Crowdstream" version 0.1 is automatically included on every request by WordPress
85 characters long description:
Talk to visitors on your site. Create, support and engage customers, make them happy.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected538 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8181544538

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.17
▷ Minimum class complexity2.00
▷ Maximum class complexity42.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods4461.11%
▷ Protected methods2838.89%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
2 PNG files occupy 0.89MB with 0.60MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png727.11KB244.96KB▼ 66.31%
assets/screenshot-1.png185.50KB58.51KB▼ 68.46%