10% sms-orders-alertnotifications-for-woocommerce

Code Review | E-goi SMS Orders Alert/Notifications

WordPress plugin E-goi SMS Orders Alert/Notifications scored 10% from 54 tests.

About plugin

  • Plugin page: sms-orders-alertn...
  • Plugin version: 1.5.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2018
  • Latest release: Jan 2, 2023
  • Number of updates: 61
  • Update frequency: every 25.2 days
  • Top authors: egoi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active / 6,722 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/sms-orders-alertnotifications-for-woocommerce/includes/class-smart-marketing-addon-sms-order-activator.php+172
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.59ms] Passed 4 tests

A check of server-side resources used by E-goi SMS Orders Alert/Notifications
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.07 ▼3.81
Dashboard /wp-admin3.31 ▲0.0047.52 ▲0.53
Posts /wp-admin/edit.php3.36 ▲0.0046.99 ▼0.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.34 ▼2.46
Media Library /wp-admin/upload.php3.23 ▲0.0035.27 ▲0.49

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 36 new files
Database: 6 new tables, 7 new options
New tables
wp_egoi_sms_order_billets
wp_egoi_email_order_reminders
wp_egoi_sms_order_reminders
wp_egoi_sms_follow_price
wp_egoi_sms_abandoned_carts
wp_egoi_email_order_billets
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
egoi_activation_data
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

E-goi SMS Orders Alert/Notifications: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.251.88 ▼0.1839.39 ▼8.23
Dashboard /wp-admin2,206 ▲214.83 ▼1.04107.12 ▲3.4543.12 ▲3.09
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0239.20 ▼0.6036.31 ▲0.58
Add New Post /wp-admin/post-new.php1,538 ▲523.37 ▲0.27647.49 ▼17.1552.40 ▼7.93
Media Library /wp-admin/upload.php1,382 ▼94.19 ▲0.0398.07 ▼2.4344.79 ▲0.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables detected upon uninstall: 6 tables
    • wp_egoi_sms_follow_price
    • wp_egoi_sms_abandoned_carts
    • wp_egoi_sms_order_billets
    • wp_egoi_email_order_billets
    • wp_egoi_email_order_reminders
    • wp_egoi_sms_order_reminders
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • egoi_activation_data
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/sms-orders-alertnotifications-for-woocommerce/public/partials/smart-marketing-addon-sms-order-public-display.php
    • > /wp-content/plugins/sms-orders-alertnotifications-for-woocommerce/uninstall.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/sms-orders-alertnotifications-for-woocommerce/admin/partials/smart-marketing-addon-sms-order-admin-config-abandonned-cart.php:19
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/sms-orders-alertnotifications-for-woocommerce/admin/partials/smart-marketing-addon-sms-order-admin-config.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: You can take inspiration from this readme.txt

sms-orders-alertnotifications-for-woocommerce/smart-marketing-addon-sms-order.php 69% from 13 tests

The main file in "E-goi SMS Orders Alert/Notifications" v. 1.5.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 181 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("sms-orders-alertnotifications-for-woocommerce.php" instead of "smart-marketing-addon-sms-order.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "3.2")

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
No dangerous file extensions were detected5,500 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP167401,0483,415
PO File34565401,379
JavaScript4697581
CSS283125

PHP code Passed 2 tests

Analyzing 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.36
Average class complexity29.40
▷ Minimum class complexity1.00
▷ Maximum class complexity154.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods111
▷ Static methods1513.51%
▷ Public methods9383.78%
▷ Protected methods00.00%
▷ Private methods1816.22%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.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.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/multibanco-logo.png7.82KB7.82KB0.00%