89% widget-for-zendesk-chat-via-api

Code Review | Widget for Zendesk Chat via API

WordPress plugin Widget for Zendesk Chat via API scored89%from 54 tests.

About plugin

  • Plugin page: widget-for-zendes...
  • Plugin version: 1.12.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2022
  • Latest release: Aug 30, 2023
  • Number of updates: 27
  • Update frequency: every 19.7 days
  • Top authors: pluginsandsnippets (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /1,565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Widget for Zendesk Chat via API
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0943.72 ▲3.01
Dashboard /wp-admin3.39 ▲0.0554.73 ▼9.63
Posts /wp-admin/edit.php3.51 ▲0.1550.64 ▼4.55
Add New Post /wp-admin/post-new.php6.00 ▲0.11102.28 ▼7.48
Media Library /wp-admin/upload.php3.32 ▲0.0938.68 ▲3.71
Zendesk Chat /wp-admin/options-general.php?page=widget-for-zendesk-chat-via-api3.33308.33

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
ps_zendesk_chat_widget_api_code_status
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Widget for Zendesk Chat via API
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.26 ▼0.092.13 ▲0.3343.19 ▲2.88
Dashboard /wp-admin2,202 ▲225.58 ▼0.1093.65 ▲2.2040.87 ▼2.02
Posts /wp-admin/edit.php2,113 ▲132.01 ▲0.0442.38 ▲6.1136.94 ▲1.08
Add New Post /wp-admin/post-new.php6,236 ▲4,70826.06 ▲2.86916.41 ▲220.8056.69 ▼10.60
Media Library /wp-admin/upload.php1,413 ▲134.25 ▲0.05102.49 ▼8.2046.65 ▲1.46
Zendesk Chat /wp-admin/options-general.php?page=widget-for-zendesk-chat-via-api1,1002.0127.1237.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • ps_zendesk_chat_widget_api_code_status
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

widget-for-zendesk-chat-via-api/widget-for-zendesk-chat-via-api.php 92% from 13 tests

"Widget for Zendesk Chat via API" version 1.12.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 255 characters long)

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
Good job! No executable or dangerous file extensions detected1,065 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP8150109665
CSS2450247
JavaScript4232137
Markdown120016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity26.00
▷ Minimum class complexity10.00
▷ Maximum class complexity42.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.38MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/promotions/plugin-edd-advanced-shortcodes.png137.51KB137.55KB0.00%
assets/admin/images/promotions/plugin-freelancer-marketplace.png65.26KB67.78KB0.00%
assets/admin/images/promotions/ebook-upsell-guide.png11.30KB11.50KB0.00%
assets/admin/images/promotions/ebook-marketplace-guide.png60.67KB60.67KB0.00%
assets/admin/images/promotions/plugin-edd-landing-pages.png89.27KB89.18KB0.10%