90% goto-contact-center-webchat

Code Review | GoTo’s Contact Center Webchat

WordPress plugin GoTo’s Contact Center Webchat scored 90% from 54 tests.

About plugin

  • Plugin page: goto-contact-cent...
  • Plugin version: 0.3.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 5, 2022
  • Latest release: Aug 11, 2023
  • Number of updates: 10
  • Update frequency: every 50.4 days
  • Top authors: gotocontactcenter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,358 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by GoTo’s Contact Center Webchat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.06 ▼1.28
Dashboard /wp-admin3.34 ▲0.0442.87 ▼8.61
Posts /wp-admin/edit.php3.39 ▲0.0446.17 ▼0.94
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.41 ▼6.56
Media Library /wp-admin/upload.php3.27 ▲0.0430.35 ▼2.00

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
goto-contact-center-webchat_activated
can_compress_scripts
goto-contact-center-webchat_snippet
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for GoTo’s Contact Center Webchat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.18 ▼1.571.88 ▲0.0051.21 ▲4.67
Dashboard /wp-admin2,222 ▲375.88 ▼0.01113.62 ▼2.2242.28 ▼4.86
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0039.72 ▼1.2832.92 ▼7.21
Add New Post /wp-admin/post-new.php1,546 ▲1823.36 ▲4.92680.25 ▲63.3660.61 ▲7.97
Media Library /wp-admin/upload.php1,398 ▲104.25 ▼0.0094.58 ▼10.9246.28 ▼5.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: webchat, gotoconnect, goto, logmein, connect...

goto-contact-center-webchat/goto-contact-center-webchat.php Passed 13 tests

The entry point to "GoTo’s Contact Center Webchat" version 0.3.3 is a PHP file that has certain tags in its header comment area
133 characters long description:
The webchat plug-in for GoTo’s Contact Center provides a seamless integration for adding our webchat functionality to your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin761 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PO File6125155354
PHP1155249267
CSS22428126
JavaScript121414

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin