10% zendesk-help-center

Code Review | Help Center by BestWebSoft

WordPress plugin Help Center by BestWebSoft scored10%from 54 tests.

About plugin

  • Plugin page: zendesk-help-center
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 16, 2015
  • Latest release: Aug 11, 2023
  • Number of updates: 35
  • Update frequency: every 86.8 days
  • Top authors: bestwebsoft (97.14%)Otto42 (5.71%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,803 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/zendesk-help-center/zendesk-help-center.php+167
    Trying to access array offset on value of type null

Server metrics [RAM: ▲0.94MB] [CPU: ▲4.72ms] Passed 4 tests

Analyzing server-side resources used by Help Center by BestWebSoft
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.38 ▲0.9250.14 ▲12.08
Dashboard /wp-admin4.28 ▲0.9856.67 ▲1.28
Posts /wp-admin/edit.php4.33 ▲0.9860.59 ▲9.16
Add New Post /wp-admin/post-new.php6.82 ▲0.9496.73 ▼2.92
Media Library /wp-admin/upload.php4.14 ▲0.9248.29 ▲11.35

Server storage [IO: ▲4.58MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 118 new files
Database: 6 new tables, 8 new options
New tables
wp_zndskhc_categories
wp_zndskhc_articles
wp_zndskhc_comments
wp_zndskhc_labels
wp_zndskhc_attachments
wp_zndskhc_sections
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
zndskhc_options
bstwbsftwppdtplgns_options

Browser metrics Passed 4 tests

Checking browser requirements for Help Center by BestWebSoft
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲7913.30 ▼1.241.76 ▼0.4442.43 ▼4.24
Dashboard /wp-admin2,250 ▲595.89 ▲1.01104.52 ▼2.6541.32 ▼4.32
Posts /wp-admin/edit.php2,142 ▲532.05 ▲0.0340.85 ▼0.6837.88 ▲1.37
Add New Post /wp-admin/post-new.php1,555 ▲2223.44 ▲0.25682.98 ▲22.9461.66 ▲12.40
Media Library /wp-admin/upload.php1,435 ▲474.22 ▲0.0297.70 ▼9.3449.79 ▲1.77
Articles /wp-admin/zendesk_articles.php260.440.0614.36
Settings /wp-admin/zendesk_hc.php260.440.195.64
BWS Panel /wp-admin/zendesk_hc.php?page=zndskhc-bws-panel260.440.085.79
Widget Statistic /wp-admin/zendesk_widget_statistic.php260.440.167.52
Help Center /wp-admin/zendesk_hc_backup.php260.440.097.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/zendesk-help-center/includes/class-zndskhc-settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/zendesk-help-center/zendesk-help-center.php:1388
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zendesk-help-center/bws_menu/class-bws-settings.php:1452
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/zendesk-help-center/bws_menu/product_list.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/zendesk_articles.php
    • > Network (severe)
    wp-admin/zendesk_articles.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/zendesk_hc.php
    • > Network (severe)
    wp-admin/zendesk_hc.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/zendesk_hc.php?page=zndskhc-bws-panel
    • > Network (severe)
    wp-admin/zendesk_hc.php?page=zndskhc-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/zendesk_widget_statistic.php
    • > Network (severe)
    wp-admin/zendesk_widget_statistic.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/zendesk_hc_backup.php
    • > Network (severe)
    wp-admin/zendesk_hc_backup.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Plugin main page.), #2 (Plugin settings page.)
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

zendesk-help-center/zendesk-help-center.php Passed 13 tests

"Help Center by BestWebSoft" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
Backup and export Zendesk Help Center content automatically to your WordPress website database.

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
Success! There were no dangerous files found in this plugin19,614 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PO File103,4524,9667,825
PHP95655865,596
CSS101892735,538
JavaScript727113505
SVG400150

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity85.33
▷ Minimum class complexity21.00
▷ Maximum class complexity210.00
Average method complexity12.00
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1773.91%
▷ Protected methods00.00%
▷ Private methods626.09%
Functions76
▷ Named functions76100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
61 PNG files occupy 2.98MB with 1.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
screenshot-2.png155.97KB50.83KB▼ 67.41%
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-icons_cd0a0a_256x240.png4.57KB4.18KB▼ 8.43%
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%