93% admin-zendesk-help-widget

Code Review | Admin Zendesk Help Widget

WordPress plugin Admin Zendesk Help Widget scored 93% from 54 tests.

About plugin

  • Plugin page: admin-zendesk-hel...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1.1
  • WordPress version: 5.9.2
  • First release: Apr 21, 2015
  • Latest release: Apr 22, 2015
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: abrudtkuhl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,061 total downloads


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
Installer ran successfully

Server metrics [RAM: ▼0.22MB] [CPU: ▼295.52ms] Passed 4 tests

A check of server-side resources used by Admin Zendesk Help Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0359.39 ▲7.36
Dashboard /wp-admin3.41 ▲0.0031.66 ▼2.64
Posts /wp-admin/edit.php3.67 ▲0.0337.77 ▲1.76
Add New Post /wp-admin/post-new.php6.07 ▼0.9084.03 ▼1,179.03
Media Library /wp-admin/upload.php3.29 ▲0.0022.44 ▼2.15
Zendesk Help /wp-admin/options-general.php?page=zendesk-admin3.2722.28

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Zendesk Help Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,203 ▼55114.64 ▼0.926.01 ▲0.292.27 ▼0.58
Dashboard /wp-admin2,331 ▼5302.24 ▼3.9344.61 ▼90.64156.98 ▼7.17
Posts /wp-admin/edit.php2,505 ▼1892.22 ▼1.0139.09 ▼24.41141.41 ▼3.95
Add New Post /wp-admin/post-new.php831 ▼8302.24 ▼14.1920.24 ▼391.8918.58 ▼134.06
Media Library /wp-admin/upload.php972 ▼7262.34 ▼3.2051.50 ▼85.3898.86 ▼89.25
Zendesk Help /wp-admin/options-general.php?page=zendesk-admin9332.1837.92156.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=zendesk-admin
    • > Notice in wp-content/plugins/admin-zendesk-help-widget/wordpress-zendesk-admin.php+100
    Trying to access array offset on value of type bool

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
Congratulations! This plugin passed the SRP test

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


Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: helpdesk, zendesk

admin-zendesk-help-widget/wordpress-zendesk-admin.php 69% from 13 tests

"Admin Zendesk Help Widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-zendesk-help-widget.php" instead of "wordpress-zendesk-admin.php")
  • Requires at least: Required version must match the one declared in readme.txt ("3.9" instead of "4.0")
  • Domain Path: The domain path folder does not exist ("/lang/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin127 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin