89% hellodialog

Code Review | Hellodialog

WordPress plugin Hellodialog scored89%from 54 tests.

About plugin

  • Plugin page: hellodialog
  • Plugin version: 1.7.11
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: Jan 27, 2017
  • Latest release: Oct 26, 2023
  • Number of updates: 86
  • Update frequency: every 28.6 days
  • Top authors: HoltesDesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,986 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼7.85ms] Passed 4 tests

Server-side resources used by Hellodialog
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1749.82 ▲14.37
Dashboard /wp-admin3.47 ▲0.1249.97 ▼9.86
Posts /wp-admin/edit.php3.58 ▲0.2244.95 ▼3.73
Add New Post /wp-admin/post-new.php6.06 ▲0.1680.62 ▼18.12
Media Library /wp-admin/upload.php3.39 ▲0.1635.50 ▲0.31
Placeholders /wp-admin/admin.php?page=hd-placeholders3.3631.12
All forms /wp-admin/edit.php?post_type=hellodialog_form3.4336.22
Settings /wp-admin/admin.php?page=hd-settings3.3832.37

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Hellodialog
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲16313.71 ▼0.6413.33 ▲11.4941.96 ▲1.02
Dashboard /wp-admin2,232 ▲555.58 ▼0.0494.43 ▲8.2142.46 ▼2.15
Posts /wp-admin/edit.php2,134 ▲342.01 ▲0.0337.23 ▲2.6931.33 ▼2.20
Add New Post /wp-admin/post-new.php1,557 ▲2923.32 ▲0.20666.78 ▼2.7560.41 ▲1.40
Media Library /wp-admin/upload.php1,440 ▲374.24 ▲0.0897.72 ▼7.9841.27 ▼4.29
Placeholders /wp-admin/admin.php?page=hd-placeholders8002.0026.4922.71
All forms /wp-admin/edit.php?post_type=hellodialog_form1,1011.9628.6428.60
Settings /wp-admin/admin.php?page=hd-settings9402.0322.2626.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === hellodialog === )
Please take inspiration from this readme.txt

hellodialog/index.php 92% from 13 tests

This is the main PHP file of "Hellodialog" version 1.7.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hellodialog.php" instead of "index.php")

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 plugin12,799 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS720277,455
JavaScript61,0896913,889
PHP71552471,003
SVG100288
PO File16263164

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity37.50
▷ Minimum class complexity7.00
▷ Maximum class complexity68.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods12.63%
▷ Public methods3797.37%
▷ Protected methods12.63%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/rsz_hellodialog.png1.06KB1.16KB0.00%