83% zendesk

Code Review | Zendesk Support for Wordpress

WordPress plugin Zendesk Support for Wordpress scored83%from 54 tests.

About plugin

  • Plugin page: zendesk
  • Plugin version: 1.8.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-6.3.1
  • WordPress version: 6.3.1
  • First release: May 31, 2011
  • Latest release: Sep 5, 2023
  • Number of updates: 73
  • Update frequency: every 67.9 days
  • Top authors: zendesk_official (68.49%)jakeisonline (27.4%)miogalang (6.85%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /126,852 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.43MB] [CPU: ▼4.34ms] Passed 4 tests

Server-side resources used by Zendesk Support for Wordpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3737.92 ▼2.57
Dashboard /wp-admin3.80 ▲0.4947.61 ▼3.91
Posts /wp-admin/edit.php3.84 ▲0.4949.24 ▲6.38
Add New Post /wp-admin/post-new.php6.33 ▲0.4483.79 ▼17.24
Media Library /wp-admin/upload.php3.65 ▲0.4337.28 ▲6.45

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
zendesk-settings
widget_recent-posts
widget_theysaidso_widget
zendesk-settings-remote-auth

Browser metrics Passed 4 tests

This is an overview of browser requirements for Zendesk Support for Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲17314.41 ▼0.121.63 ▼0.3541.44 ▼1.69
Dashboard /wp-admin2,340 ▲1605.79 ▲0.2287.43 ▼3.1884.13 ▲47.25
Posts /wp-admin/edit.php2,208 ▲1052.11 ▲0.1143.77 ▲1.1336.69 ▼3.63
Add New Post /wp-admin/post-new.php1,612 ▲7518.44 ▲0.47641.88 ▲43.7053.26 ▼24.41
Media Library /wp-admin/upload.php1,502 ▲1054.28 ▲0.08109.69 ▲14.5974.86 ▲32.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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)
Everything seems fine, however 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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(wp-content/plugins/zendesk/dev/wp-settings.php): failed to open stream: No such file or directory in wp-content/plugins/zendesk/dev/wp-config.php on line 89
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/zendesk/dev/wp-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/zendesk/dev/wp-config.php on line 89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zendesk/zendesk-support.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: These screenshots do not have images: #1 (An overview of some of the features available in the settings page), #2 (Remote authentication, super easy to set up), #3 (Turn a comment into a ticket with ease), #4 (The comment to ticket interface), #5 (The Web Widget at its simplest, a Contact Form that creates a ticket in your Zendesk when filled out), #6 (If you have a Zendesk Help Center, the Web Widget can help deflect tickets by showing your self-service content when users search for help), #7 (The Zendesk dropbox in action)
Please take inspiration from this readme.txt

zendesk/zendesk-support.php 92% from 13 tests

This is the main PHP file of "Zendesk Support for Wordpress" version 1.8.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("zendesk.php" instead of "zendesk-support.php")

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
There were no executable files found in this plugin3,117 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP175931,3962,410
CSS27140366
JavaScript377100282
Markdown115034
make18621
Dockerfile1104

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity26.64
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods133
▷ Static methods2418.05%
▷ Public methods11284.21%
▷ Protected methods10.75%
▷ Private methods2015.04%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants21
▷ Global constants2095.24%
▷ Class constants14.76%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.70MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png83.76KB26.00KB▼ 68.96%
screenshot-6.png174.55KB47.08KB▼ 73.03%
screenshot-2.png83.34KB31.28KB▼ 62.46%
images/zendesk-190.png6.72KB3.26KB▼ 51.56%
images/colorbox/border.png0.16KB0.16KB0.00%