67% sms-gateway-center-bulk-sms-sender

Code Review | SMS Gateway Center - Bulk SMS Sender

WordPress plugin SMS Gateway Center - Bulk SMS Sender scored67%from 54 tests.

About plugin

  • Plugin page: sms-gateway-cente...
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2014
  • Latest release: Nov 17, 2023
  • Number of updates: 77
  • Update frequency: every 42.2 days
  • Top authors: smsgatewaycenter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /5,211 total downloads

Benchmarks

Plugin footprint 65% 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.57MB] [CPU: ▲1.28ms] Passed 4 tests

This is a short check of server-side resources used by SMS Gateway Center - Bulk SMS Sender
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲0.5639.42 ▲4.80
Dashboard /wp-admin3.89 ▲0.5449.92 ▼10.49
Posts /wp-admin/edit.php4.00 ▲0.6451.09 ▲2.30
Add New Post /wp-admin/post-new.php6.49 ▲0.6093.61 ▲11.36
Media Library /wp-admin/upload.php3.81 ▲0.5841.77 ▲8.51
View Profile /wp-admin/admin.php?page=sgcsms_viewprofile3.7540.14
Send SMS to Subscribers /wp-admin/admin.php?page=sgcsms_send_subscribers_sms3.8335.92
Incoming SMS /wp-admin/admin.php?page=sgcsms_shortcode3.7732.78
OTP Settings /wp-admin/admin.php?page=sgcsms_otp_settings3.7531.66
Check Balance /wp-admin/admin.php?page=sgcsms_checkbalance3.7733.91
Send Group SMS /wp-admin/admin.php?page=sgcsms_send_group_sms3.7530.16
Delivery Report /wp-admin/admin.php?page=sgcsms_dlr3.7734.28
Groups /wp-admin/admin.php?page=sgcsms_groups3.7735.87
WP Subscribers /wp-admin/admin.php?page=wpSubscribers3.8736.70
Send Bulk SMS /wp-admin/admin.php?page=sgcsms_send3.7531.29

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 141 new files
Database: 2 new tables, 6 new options
New tables
wp_smsgatewaycenter_wp_subscribers_group
wp_smsgatewaycenter_wp_subscribers
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SMS Gateway Center - Bulk SMS Sender
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲11714.26 ▼0.031.55 ▼0.3942.70 ▲0.71
Dashboard /wp-admin2,282 ▲1075.54 ▼0.1593.84 ▼9.2582.08 ▲38.96
Posts /wp-admin/edit.php2,200 ▲1002.00 ▼0.0040.86 ▲2.8440.45 ▲2.87
Add New Post /wp-admin/post-new.php1,604 ▲7823.01 ▼0.16688.08 ▲84.4051.93 ▲1.73
Media Library /wp-admin/upload.php1,502 ▲1084.21 ▼0.0198.42 ▼2.4665.77 ▲21.15
View Profile /wp-admin/admin.php?page=sgcsms_viewprofile7601.127.2421.61
Send SMS to Subscribers /wp-admin/admin.php?page=sgcsms_send_subscribers_sms7651.126.8021.37
Incoming SMS /wp-admin/admin.php?page=sgcsms_shortcode7651.516.4720.70
OTP Settings /wp-admin/admin.php?page=sgcsms_otp_settings7651.516.3819.96
Check Balance /wp-admin/admin.php?page=sgcsms_checkbalance7651.127.0218.31
Send Group SMS /wp-admin/admin.php?page=sgcsms_send_group_sms7651.126.5319.94
Delivery Report /wp-admin/admin.php?page=sgcsms_dlr7701.6619.3223.27
Groups /wp-admin/admin.php?page=sgcsms_groups7651.516.3720.68
WP Subscribers /wp-admin/admin.php?page=wpSubscribers1,1661.6627.4531.14
Send Bulk SMS /wp-admin/admin.php?page=sgcsms_send7651.126.4518.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_smsgatewaycenter_wp_subscribers_group
    • wp_smsgatewaycenter_wp_subscribers
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgcsms_send
    • > Notice in wp-content/plugins/sms-gateway-center-bulk-sms-sender/sgcsms.php+170
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sms-gateway-center-bulk-sms-sender/includes/subscribers/subscriber_groups.php
    • > /wp-content/plugins/sms-gateway-center-bulk-sms-sender/sgcsms.php
    • > /wp-content/plugins/sms-gateway-center-bulk-sms-sender/includes/subscribers/crud.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

sms-gateway-center-bulk-sms-sender/sgcsms.php 77% from 13 tests

The primary PHP file in "SMS Gateway Center - Bulk SMS Sender" version 1.3.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: Please keep the plugin description shorter than 140 characters (currently 195 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sms-gateway-center-bulk-sms-sender.php" instead of "sgcsms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin31,139 lines of code in 115 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript484,88615,60619,932
CSS391621767,337
PHP283568003,870

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.39
Average class complexity22.00
▷ Minimum class complexity20.00
▷ Maximum class complexity24.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods00.00%
▷ Public methods3694.74%
▷ Protected methods00.00%
▷ Private methods25.26%
Functions65
▷ Named functions6498.46%
▷ Anonymous functions11.54%
Constants7
▷ Global constants7100.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
15 PNG files occupy 0.33MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin-logo.png10.38KB5.33KB▼ 48.62%
logo-sgc-320.png15.99KB6.71KB▼ 58.04%
assets/plugins/intl-tel-input/img/flags.png69.20KB23.42KB▼ 66.16%
assets/images/logo-sgc-320.png15.99KB6.71KB▼ 58.04%
assets/images/drop-down-arrow.png0.28KB0.22KB▼ 23.00%