58% wpguppy-lite

Code Review | WP Guppy Lite - A live chat plugin for WordPress

WordPress plugin WP Guppy Lite - A live chat plugin for WordPress scored58%from 54 tests.

About plugin

  • Plugin page: wpguppy-lite
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2022
  • Latest release: May 22, 2023
  • Number of updates: 21
  • Update frequency: every 21.2 days
  • Top authors: amentotechpvtltd (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /7,453 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.98MB] [CPU: ▲16.77ms] Passed 4 tests

Server-side resources used by WP Guppy Lite - A live chat plugin for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.54 ▲1.0852.93 ▲9.13
Dashboard /wp-admin4.27 ▲0.9761.90 ▲15.50
Posts /wp-admin/edit.php4.32 ▲0.9664.42 ▲19.20
Add New Post /wp-admin/post-new.php6.92 ▲1.03125.07 ▲27.63
Media Library /wp-admin/upload.php4.19 ▲0.9655.92 ▲23.23

Server storage [IO: ▲13.74MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 265 new files
Database: 5 new tables, 8 new options
New tables
wp_wpguppy_friend_list
wp_wpguppy_chat_action
wp_wpguppy_guest_account
wp_wpguppy_users
wp_wpguppy_message
New WordPress options
wpguppy_settings
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
wpguppylite_version

Browser metrics Passed 4 tests

An overview of browser requirements for WP Guppy Lite - A live chat plugin for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,614 ▲85725.17 ▲10.82137.45 ▲135.3794.90 ▲48.29
Dashboard /wp-admin2,281 ▲995.16 ▼0.73101.05 ▼6.4379.39 ▲38.14
Posts /wp-admin/edit.php2,166 ▲772.32 ▲0.3039.32 ▲0.5336.33 ▲1.24
Add New Post /wp-admin/post-new.php1,738 ▲20122.53 ▼0.59625.75 ▼47.6934.65 ▼22.84
Media Library /wp-admin/upload.php1,451 ▲664.41 ▲0.1498.48 ▼4.6176.37 ▲33.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 5 tables in the database
    • wp_wpguppy_friend_list
    • wp_wpguppy_message
    • wp_wpguppy_users
    • wp_wpguppy_chat_action
    • wp_wpguppy_guest_account
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • wpguppylite_version
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • wpguppy_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpguppy-lite/elementor/config.php
  • 168× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Constant SODIUM_CRYPTO_STREAM_NONCEBYTES already defined in wp-content/plugins/wpguppy-lite/libraries/pusher/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 90
    • > PHP Notice
      Constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES already defined in wp-content/plugins/wpguppy-lite/libraries/pusher/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 25
    • > PHP Warning
      require_once(WP_GUPPY_LITE_DIRECTORYlibraries/jwt/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wpguppy-lite/includes/class-wp-guppy-rest-api.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core32_Util' not found in wp-content/plugins/wpguppy-lite/libraries/pusher/vendor/paragonie/sodium_compat/src/Core32/Curve25519/H.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519' not found in wp-content/plugins/wpguppy-lite/libraries/pusher/vendor/paragonie/sodium_compat/namespaced/Core/Curve25519.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpguppy-lite/includes/functions.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_File' not found in wp-content/plugins/wpguppy-lite/libraries/pusher/vendor/paragonie/sodium_compat/namespaced/File.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Compat' not found in wp-content/plugins/wpguppy-lite/libraries/pusher/vendor/paragonie/sodium_compat/lib/ristretto255.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpguppy-lite/admin/settings/templates/real-time-chat-options.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_BLAKE2b' not found in wp-content/plugins/wpguppy-lite/libraries/pusher/vendor/paragonie/sodium_compat/namespaced/Core/BLAKE2b.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8 in wpguppy-lite/assets to your readme.txt
Please take inspiration from this readme.txt

wpguppy-lite/wpguppy-lite.php 92% from 13 tests

The main PHP file in "WP Guppy Lite - A live chat plugin for WordPress" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 204 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please make sure to remedy the following
  • Do not distribute dangerous files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/wpguppy-lite/node-server/sslcert/dummy_ssl_cert.crt
35,150 lines of code in 219 files:
LanguageFilesBlank linesComment linesLines of code
PHP1653,93513,34328,672
CSS7180203,446
JavaScript1178299817
JSON1300727
Markdown52330643
SVG400600
YAML3210107
XML4144279
make19426
Bourne Shell37117
HTML20115
INI1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity19.26
▷ Minimum class complexity1.00
▷ Maximum class complexity512.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces14
Interfaces2
Traits2
Classes125
▷ Abstract classes2318.40%
▷ Concrete classes10281.60%
▷ Final classes10.98%
Methods955
▷ Static methods59562.30%
▷ Public methods87791.83%
▷ Protected methods444.61%
▷ Private methods343.56%
Functions203
▷ Named functions19495.57%
▷ Anonymous functions94.43%
Constants343
▷ Global constants133.79%
▷ Class constants33096.21%
▷ Public constants330100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/guppy.png0.64KB0.46KB▼ 28.26%
public/images/email-logo.png5.88KB2.62KB▼ 55.43%