94% zendesk-request-form

Code Review | Request Form for Zendesk

WordPress plugin Request Form for Zendesk scored 94% from 54 tests.

About plugin

  • Plugin page: zendesk-request-form
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 5.8.1
  • First release: Nov 15, 2015
  • Latest release: Jul 23, 2021
  • Number of updates: 212
  • Update frequency: every 9.8 days
  • Top authors: pipdig (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

2,000+ active / 34,352 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Request Form for Zendesk
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1531.21 ▲7.52
Dashboard /wp-admin3.10 ▲0.0554.69 ▲7.41
Posts /wp-admin/edit.php3.15 ▲0.0551.20 ▼0.29
Add New Post /wp-admin/post-new.php5.46 ▲0.0394.53 ▼565.08
Media Library /wp-admin/upload.php3.04 ▲0.0438.06 ▲3.69
Custom Fields /wp-admin/edit.php?post_type=zrf_custom_field3.0936.75
Add New /wp-admin/post-new.php?post_type=zrf_custom_field3.1256.50
Field Groups /wp-admin/edit-tags.php?taxonomy=zrf_field_group&post_type=zrf_custom_field3.0437.50
Zendesk Form /wp-admin/options-general.php?page=zendesk-request-form3.0232.25

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Request Form for Zendesk
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,813 ▲21716.21 ▲0.7316.92 ▲8.1950.08 ▼5.11
Dashboard /wp-admin2,972 ▲386.02 ▲0.08146.45 ▼4.77116.10 ▼1.39
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0169.45 ▼10.2589.64 ▼2.31
Add New Post /wp-admin/post-new.php1,686 ▲7118.78 ▼2.61376.31 ▲105.98114.94 ▲5.65
Media Library /wp-admin/upload.php1,812 ▲25.02 ▲0.02154.02 ▼10.12125.81 ▲3.92
Custom Fields /wp-admin/edit.php?post_type=zrf_custom_field1,4122.6265.3979.42
Add New /wp-admin/post-new.php?post_type=zrf_custom_field2,5303.96119.94116.23
Field Groups /wp-admin/edit-tags.php?taxonomy=zrf_field_group&post_type=zrf_custom_field1,7132.5063.2081.89
Zendesk Form /wp-admin/options-general.php?page=zendesk-request-form2,2902.7061.41103.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/zendesk-request-form/uninstall.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
8 plugin tags: support, zendesk support, zendesk api, zendesk ticket, zendesk...

zendesk-request-form/zendesk-request-form.php Passed 13 tests

The entry point to "Request Form for Zendesk" version 3.0.3 is a PHP file that has certain tags in its header comment area
129 characters long description:
Add a Zendesk request form on any post/page via a shortcode. Submitted messages will create a new ticket in your Zendesk account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,065 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP73511512,065

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin