77% miniorange-sms-order-notification-otp-verification

Code Review | Order Notification on WooCommerce / SMS Notifications / Login & Register with Phone

WordPress plugin Order Notification on WooCommerce / SMS Notifications / Login & Register with Phone scored77%from 54 tests.

About plugin

  • Plugin page: miniorange-sms-or...
  • Plugin version: 4.2.1
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 20, 2022
  • Latest release: Dec 1, 2023
  • Number of updates: 17
  • Update frequency: every 25.7 days
  • Top authors: shrikantniras (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /2,221 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲2.65MB] [CPU: ▲22.95ms] Passed 4 tests

A check of server-side resources used by Order Notification on WooCommerce / SMS Notifications / Login & Register with Phone
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.92 ▲2.4661.19 ▲19.59
Dashboard /wp-admin6.02 ▲2.7171.34 ▲22.85
Posts /wp-admin/edit.php6.06 ▲2.7177.24 ▲28.38
Add New Post /wp-admin/post-new.php8.60 ▲2.72125.06 ▲23.65
Media Library /wp-admin/upload.php5.96 ▲2.7362.15 ▲25.72
Licensing Plans /wp-admin/admin.php?page=mowcpricing6.0266.77
AddOns /wp-admin/admin.php?page=mowcaddon5.9658.84
Account Setup /wp-admin/admin.php?page=mowcsettings5.9558.47
Gateway Settings /wp-admin/admin.php?page=mowcgatewaysettings5.9358.83
WhatsApp /wp-admin/admin.php?page=mowcwhatsapp5.9356.61
Forms /wp-admin/admin.php?page=mowcotpformsettings6.0260.11
Notifications /wp-admin/admin.php?page=mowcnotifications5.9761.15
Settings /wp-admin/admin.php?page=mowcotpsettings5.9559.34
Contact Us /wp-admin/admin.php?page=mowccontactus5.9362.18

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Order Notification on WooCommerce / SMS Notifications / Login & Register with Phone
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,072 ▲31013.46 ▼1.277.44 ▲5.4716.71 ▼25.54
Dashboard /wp-admin2,401 ▲2235.11 ▼0.57104.58 ▼6.5998.54 ▲54.75
Posts /wp-admin/edit.php2,306 ▲2032.48 ▲0.4744.04 ▲1.3242.97 ▲3.77
Add New Post /wp-admin/post-new.php1,713 ▲18723.59 ▲0.45613.12 ▼57.6133.67 ▼32.02
Media Library /wp-admin/upload.php1,597 ▲1974.53 ▲0.34107.34 ▼1.9576.85 ▲29.58
Licensing Plans /wp-admin/admin.php?page=mowcpricing2,4441.9031.25112.58
AddOns /wp-admin/admin.php?page=mowcaddon1,8071.9332.4851.04
Account Setup /wp-admin/admin.php?page=mowcsettings1,5441.9039.1454.41
Gateway Settings /wp-admin/admin.php?page=mowcgatewaysettings1,4881.9132.9266.99
WhatsApp /wp-admin/admin.php?page=mowcwhatsapp1,5391.8733.6247.47
Forms /wp-admin/admin.php?page=mowcotpformsettings2,2872.0038.8649.90
Notifications /wp-admin/admin.php?page=mowcnotifications3,1091.9337.3346.29
Settings /wp-admin/admin.php?page=mowcotpsettings2,3731.8535.5383.08
Contact Us /wp-admin/admin.php?page=mowccontactus1,4421.8830.6145.43

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'available_tags' of non-object in wp-content/plugins/miniorange-sms-order-notification-otp-verification/notifications/wcsmsnotification/views/smsnotifications/wc-customer-sms-template.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'WCSMSOTP\otifications\\WcSMSNotification\\Helper\\MoWcAddOnUtility' not found in wp-content/plugins/miniorange-sms-order-notification-otp-verification/notifications/wcsmsnotification/views/wc-sms-notification.php:13
    • > PHP Notice
      Trying to get property 'premium_tags' of non-object in wp-content/plugins/miniorange-sms-order-notification-otp-verification/notifications/wcsmsnotification/views/smsnotifications/wc-customer-sms-template.php on line 12
    • > PHP Notice
      Undefined variable: sms_settings in wp-content/plugins/miniorange-sms-order-notification-otp-verification/notifications/wcsmsnotification/views/smsnotifications/wc-customer-sms-template.php on line 11
    • > PHP Notice
      Undefined variable: sms_settings in wp-content/plugins/miniorange-sms-order-notification-otp-verification/notifications/wcsmsnotification/views/smsnotifications/wc-customer-sms-template.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/miniorange-sms-order-notification-otp-verification/notifications/wcsmsnotification/views/smsnotifications/wc-customer-sms-template.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/miniorange-sms-order-notification-otp-verification/notifications/wcsmsnotification/views/custom-order-msg.php:12

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=mowcpricing
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=mowcpricing 639:23 Uncaught TypeError: Cannot read properties of null (reading 'style')

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can take inspiration from this readme.txt

miniorange-sms-order-notification-otp-verification/miniorange_validation_settings.php 62% from 13 tests

The main PHP script in "Order Notification on WooCommerce / SMS Notifications / Login & Register with Phone" version 4.2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("miniorange-sms-order-notification-otp-verification.php" instead of "miniorange_validation_settings.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Plugin Name: A shorter plugin name is better (currently 83 characters long instead of max. 70)
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.5" instead of "2.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin26,375 lines of code in 212 files:
LanguageFilesBlank linesComment linesLines of code
PHP1572,3335,78814,414
PO File43,1204,8067,817
CSS72771532,633
JavaScript1243631,197
SVG2620295
JSON10014
HTML5005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.84
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces11
Interfaces6
Traits1
Classes69
▷ Abstract classes57.25%
▷ Concrete classes6492.75%
▷ Final classes1625.00%
Methods638
▷ Static methods10115.83%
▷ Public methods47975.08%
▷ Protected methods396.11%
▷ Private methods12018.81%
Functions33
▷ Named functions2884.85%
▷ Anonymous functions515.15%
Constants246
▷ Global constants4719.11%
▷ Class constants19980.89%
▷ Public constants199100.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
16 PNG files occupy 0.38MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/flags@2x.png170.28KB68.04KB▼ 60.04%
includes/images/mo_firebase.png3.22KB1.94KB▼ 39.72%
includes/images/mo_support_icon.png2.74KB1.64KB▼ 40.33%
includes/images/flags.png69.20KB23.42KB▼ 66.16%
includes/images/mo_aws_sns.png6.45KB2.96KB▼ 54.17%