84% wp-simple-chat

Code Review | Live Chat for WordPress - WP Simple Chat — by Groundhogg

WordPress plugin Live Chat for WordPress - WP Simple Chat — by Groundhogg scored84%from 54 tests.

About plugin

  • Plugin page: wp-simple-chat
  • Plugin version: 1.1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: Sep 8, 2019
  • Latest release: Apr 30, 2021
  • Number of updates: 15
  • Update frequency: every 40.0 days
  • Top authors: trainingbusinesspros (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,388 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.33MB] [CPU: ▼11.38ms] Passed 4 tests

Server-side resources used by Live Chat for WordPress - WP Simple Chat — by Groundhogg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5439.79 ▼1.18
Dashboard /wp-admin3.67 ▲0.3346.84 ▼17.96
Posts /wp-admin/edit.php3.72 ▲0.3748.42 ▲2.11
Add New Post /wp-admin/post-new.php6.21 ▲0.3383.33 ▼26.57
Media Library /wp-admin/upload.php3.53 ▲0.3137.24 ▲0.18
WP Simple Chat /wp-admin/options-general.php?page=wp-simple-chat3.5139.01

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Live Chat for WordPress - WP Simple Chat — by Groundhogg
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4714.35 ▲0.001.89 ▼0.0437.12 ▼4.91
Dashboard /wp-admin2,202 ▲255.62 ▼0.0386.17 ▲0.6439.29 ▼2.84
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0840.07 ▲4.1036.11 ▲3.93
Add New Post /wp-admin/post-new.php6,231 ▲4,70526.11 ▲3.40902.67 ▲275.4568.11 ▲3.28
Media Library /wp-admin/upload.php1,404 ▲44.14 ▲0.01105.72 ▲4.8845.73 ▲2.73
WP Simple Chat /wp-admin/options-general.php?page=wp-simple-chat1,1212.3648.1553.14

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 no errors were found, 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
Please take a closer look at the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SimpleChat\\add_filter() in wp-content/plugins/wp-simple-chat/includes/functions.php:124
    • > PHP Fatal error
      Uncaught Error: Class 'ExtendedCore\\Admin\\Metabox' not found in wp-content/plugins/wp-simple-chat/admin/metabox.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ExtendedCore\\Admin\\Admin_Page' not found in wp-content/plugins/wp-simple-chat/admin/settings.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ExtendedCore\\add_action() in wp-content/plugins/wp-simple-chat/includes/core/includes/functions.php:211
    • > PHP Fatal error
      Uncaught Error: Class 'ExtendedCore\\HTML' not found in wp-content/plugins/wp-simple-chat/includes/html.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SimpleChat\\add_action() in wp-content/plugins/wp-simple-chat/includes/compatibility.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: facebook, facebook chat, chat

wp-simple-chat/wp-simple-chat.php 92% from 13 tests

The main file in "Live Chat for WordPress - WP Simple Chat — by Groundhogg" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin12,821 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript592,4216639,292
PHP209491,8542,996
CSS31045533

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity24.47
▷ Minimum class complexity1.00
▷ Maximum class complexity119.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes15
▷ Abstract classes640.00%
▷ Concrete classes960.00%
▷ Final classes00.00%
Methods245
▷ Static methods93.67%
▷ Public methods19680.00%
▷ Protected methods3715.10%
▷ Private methods124.90%
Functions30
▷ Named functions2996.67%
▷ Anonymous functions13.33%
Constants19
▷ Global constants1894.74%
▷ Class constants15.26%
▷ Public constants1100.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
7 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/core/assets/lib/jquery-ui/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
includes/core/assets/lib/jquery-ui/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
assets/groundhogg-logo.png22.81KB11.04KB▼ 51.60%
includes/core/assets/lib/jquery-ui/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
includes/core/assets/lib/jquery-ui/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%