83% paldesk-live-chat-helpdesk

Code Review | Paldesk - Live Chat & Helpdesk

WordPress plugin Paldesk - Live Chat & Helpdesk scored83%from 54 tests.

About plugin

  • Plugin page: paldesk-live-chat...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 21, 2018
  • Latest release: Aug 18, 2020
  • Number of updates: 64
  • Update frequency: every 14.2 days
  • Top authors: paldesk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /4,087 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.12ms] Passed 4 tests

Analyzing server-side resources used by Paldesk - Live Chat & Helpdesk
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.31 ▼2.97
Dashboard /wp-admin3.31 ▲0.0148.19 ▼6.69
Posts /wp-admin/edit.php3.37 ▲0.0150.08 ▲0.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.56 ▼12.69
Media Library /wp-admin/upload.php3.24 ▲0.0133.87 ▼2.12

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Paldesk - Live Chat & Helpdesk
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.41 ▲0.031.63 ▲0.1443.65 ▲1.72
Dashboard /wp-admin2,218 ▲385.62 ▼0.0490.79 ▼1.2942.90 ▲4.69
Posts /wp-admin/edit.php2,120 ▲201.97 ▼0.0134.85 ▼4.2534.00 ▼2.69
Add New Post /wp-admin/post-new.php1,544 ▲1823.11 ▼0.07660.30 ▼15.9659.47 ▼3.28
Media Library /wp-admin/upload.php1,417 ▲174.20 ▼0.0999.14 ▼7.3939.72 ▼6.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/paldesk-live-chat-helpdesk/layouts/admin_settings_form.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/paldesk-live-chat-helpdesk/class-paldeskplugin.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/paldesk-live-chat-helpdesk/class-paldeskplugin.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% 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
These attributes need your attention:
  • Requires at least: Version not formatted correctly
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

paldesk-live-chat-helpdesk/wp-paldesk-plugin.php 85% from 13 tests

The entry point to "Paldesk - Live Chat & Helpdesk" version 1.1.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paldesk-live-chat-helpdesk.php" instead of "wp-paldesk-plugin.php")
  • 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin881 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP3188303635
CSS24116240
JavaScript32366

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity16.50
▷ Minimum class complexity15.00
▷ Maximum class complexity18.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods3296.97%
▷ Protected methods00.00%
▷ Private methods13.03%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo.png0.36KB0.42KB0.00%