83% admin-zendesk-help-widget

Code Review | Admin Zendesk Help Widget

WordPress plugin Admin Zendesk Help Widget scored 83% 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: 6.3.1
  • 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,237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.10MB] [CPU: ▼6.65ms] Passed 4 tests

This is a short check of server-side resources used by Admin Zendesk Help Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.33 ▲0.03
Dashboard /wp-admin3.32 ▲0.0144.11 ▼8.16
Posts /wp-admin/edit.php3.39 ▲0.0345.89 ▲1.16
Add New Post /wp-admin/post-new.php5.46 ▼0.4281.25 ▼16.63
Media Library /wp-admin/upload.php3.23 ▲0.0031.84 ▼1.84
Zendesk Help /wp-admin/options-general.php?page=zendesk-admin3.2029.43

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Zendesk Help Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,392 ▼34313.22 ▼1.421.77 ▼0.1040.83 ▼4.40
Dashboard /wp-admin1,801 ▼3811.38 ▼3.5312.95 ▼97.0840.61 ▼4.52
Posts /wp-admin/edit.php1,949 ▼1401.14 ▼0.867.37 ▼29.1634.51 ▼0.29
Add New Post /wp-admin/post-new.php681 ▼8481.73 ▼16.5824.09 ▼589.225.84 ▼50.19
Media Library /wp-admin/upload.php769 ▼6221.73 ▼2.4822.28 ▼79.3323.55 ▼22.74
Zendesk Help /wp-admin/options-general.php?page=zendesk-admin7481.389.1632.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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 server-side errors were triggered
    • > 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: helpdesk, zendesk

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

The primary PHP file in "Admin Zendesk Help Widget" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("admin-zendesk-help-widget.php" instead of "wordpress-zendesk-admin.php")
  • Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.9" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin127 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12430125
Markdown1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected