55% dialog-e-sms

Code Review | Dialog eSMS

WordPress plugin Dialog eSMS scored55%from 54 tests.

About plugin

  • Plugin page: dialog-e-sms
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2023
  • Latest release: Mar 10, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: adeonatech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /132 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼1.21MB] [CPU: ▼42.62ms] Passed 4 tests

A check of server-side resources used by Dialog eSMS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.04 ▼0.6919.83 ▼22.68
Dashboard /wp-admin3.08 ▼0.4923.32 ▼30.24
Posts /wp-admin/edit.php3.08 ▼0.6019.29 ▼31.39
Add New Post /wp-admin/post-new.php3.08 ▼3.0720.88 ▼86.15
Media Library /wp-admin/upload.php3.08 ▼0.4121.66 ▼14.45
Settings /wp-admin/admin.php?page=Dialog-eSMS3.0820.10

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: 2 new tables, 7 new options
New tables
wp_adeona_esms_plugin_settings
wp_adeona_esms_plugin
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
recovery_mode_email_last_sent
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Dialog eSMS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18514.07 ▼0.3110.37 ▲8.3045.58 ▼0.18
Dashboard /wp-admin2,223 ▲465.81 ▲0.1695.90 ▲1.9139.53 ▼4.23
Posts /wp-admin/edit.php2,085 ▼152.31 ▲0.2738.03 ▼2.5537.39 ▲2.34
Add New Post /wp-admin/post-new.php1,453 ▼9222.67 ▼0.40576.49 ▼108.39161.77 ▲102.23
Media Library /wp-admin/upload.php1,425 ▲224.55 ▲0.21102.59 ▼0.9941.41 ▼6.03
Settings /wp-admin/admin.php?page=Dialog-eSMS8281.7913.8735.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • recovery_mode_email_last_sent

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=Dialog-eSMS
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
    • > GET request to /wp-admin/admin.php?page=Dialog-eSMS
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
    • > GET request to /wp-admin/admin.php?page=Dialog-eSMS
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
    • > GET request to /wp-admin/admin.php?page=Dialog-eSMS
    • > Error in wp-content/plugins/dialog-e-sms/views/Dialog-eSMS-Settings-view.php+198
    Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/dialog-e-sms/views/Dialog-eSMS-Settings-view.php:198
    Stack trace:
    #0 wp-content/plugins/dialog-e-sms/Dialog-eSMS.php(75): include_once()
    #1 wp-includes/class-wp-hook.php(310): adeona_Dialog_eSMS_admin_view()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown

SRP 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dialog-e-sms/views/Dialog-eSMS-Settings-view.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/dialog-e-sms/views/Dialog-eSMS-Settings-view.php:161

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)
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=Dialog-eSMS
    • > Network (severe)
    wp-content/plugins/dialog-e-sms/assets/css/new_bootstrap.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Account Creation UI. screenshot-1.png), #2 (Pricing. screenshot-2.png)
You can look at the official readme.txt

dialog-e-sms/Dialog-eSMS.php 62% from 13 tests

"Dialog eSMS" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dialog-e-sms.php" instead of "Dialog-eSMS.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 208 characters long)
  • Requires PHP: Required version must match the one declared in readme.txt ("5.2.4" instead of "7.2")
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin563 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP213541474
JavaScript3221288
CSS1051

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
assets/images/icon_esms.png1.25KB1.24KB▼ 0.78%