84% bulk-sms-notification

Code Review | Bulk SMS Notification

WordPress plugin Bulk SMS Notification scored84%from 54 tests.

About plugin

  • Plugin page: bulk-sms-notifica...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Dec 26, 2020
  • Latest release: Nov 25, 2022
  • Number of updates: 7
  • Update frequency: every 100.0 days
  • Top authors: shrikantniras (42.86%)cyberlord92 (42.86%)jainshruti (28.57%)miniorangesecurity (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,087 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.13ms] Passed 4 tests

A check of server-side resources used by Bulk SMS Notification
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1044.95 ▼1.73
Dashboard /wp-admin3.45 ▲0.1055.07 ▲2.55
Posts /wp-admin/edit.php3.56 ▲0.1650.97 ▲3.03
Add New Post /wp-admin/post-new.php6.05 ▲0.1290.70 ▼3.32
Media Library /wp-admin/upload.php3.37 ▲0.1040.46 ▲5.28
Account /wp-admin/admin.php?page=mobsms_account3.3937.25
Send Bulk SMS /wp-admin/admin.php?page=mobsms_send_bulk_sms3.3535.94
Configuration /wp-admin/admin.php?page=mobsms_menu3.3532.37

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Bulk SMS Notification
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8514.25 ▼0.311.94 ▲0.1243.63 ▲2.24
Dashboard /wp-admin2,212 ▲355.55 ▼0.1292.48 ▲0.5381.63 ▲40.22
Posts /wp-admin/edit.php2,132 ▲321.96 ▼0.0437.93 ▲0.6934.46 ▼3.33
Add New Post /wp-admin/post-new.php1,706 ▲18022.49 ▼1.16747.63 ▲53.8461.29 ▲2.31
Media Library /wp-admin/upload.php1,435 ▲384.18 ▼0.0298.40 ▼11.4575.95 ▲28.29
Account /wp-admin/admin.php?page=mobsms_account1,0101.9926.7740.06
Send Bulk SMS /wp-admin/admin.php?page=mobsms_send_bulk_sms9881.9025.0035.38
Configuration /wp-admin/admin.php?page=mobsms_menu9511.9726.4539.41

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/bulk-sms-notification/miniorange-bulk-sms-settings.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bulk-sms-notification/views/send-bulk-sms.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/bulk-sms-notification/controllers/main_controller.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/bulk-sms-notification/views/configuration.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-sms-notification/handler/feedback_form.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/bulk-sms-notification/controllers/navbar.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/bulk-sms-notification/controllers/account.php:5
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_names() on null in wp-content/plugins/bulk-sms-notification/controllers/send-bulk-sms.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-sms-notification/controllers/ajax.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'MOBSMS_DATABASE' not found in wp-content/plugins/bulk-sms-notification/helper/constants.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: notify, bulk notification, bulk alert, send sms, marketing...

bulk-sms-notification/miniorange-bulk-sms-settings.php 92% from 13 tests

Analyzing the main PHP file in "Bulk SMS Notification" version 2.0.0
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bulk-sms-notification.php" instead of "miniorange-bulk-sms-settings.php")

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
There were no executable files found in this plugin3,421 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
CSS435322,008
PHP22171141,230
JavaScript3517183

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.29
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods515.15%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants318.75%
▷ Class constants1381.25%
▷ Public constants13100.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
10 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/smile.png17.89KB8.79KB▼ 50.86%
includes/images/sad.png18.16KB8.79KB▼ 51.62%
includes/images/miniorange_icon.png0.44KB0.35KB▼ 18.61%
includes/images/angry.png20.40KB9.65KB▼ 52.68%
includes/images/normal.png15.74KB7.91KB▼ 49.78%