84% blast-sms-broadcast

Code Review | Blast.my SMS Broadcast

WordPress plugin Blast.my SMS Broadcast scored84%from 54 tests.

About plugin

  • Plugin page: blast-sms-broadcast
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.4-6.0
  • WordPress version: 6.3.1
  • First release: Sep 12, 2022
  • Latest release: Sep 20, 2022
  • Number of updates: 9
  • Update frequency: every 1.1 days
  • Top authors: ifcon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /224 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲2.96ms] Passed 4 tests

Server-side resources used by Blast.my SMS Broadcast
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.44 ▲0.62
Dashboard /wp-admin3.32 ▲0.0154.64 ▲10.13
Posts /wp-admin/edit.php3.37 ▲0.0146.10 ▼0.90
Add New Post /wp-admin/post-new.php5.90 ▲0.01104.72 ▲9.20
Media Library /wp-admin/upload.php3.24 ▲0.0135.65 ▲2.93

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Blast.my SMS Broadcast: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.27 ▼1.291.67 ▼0.1143.38 ▲3.85
Dashboard /wp-admin2,238 ▲835.86 ▲0.21110.55 ▲6.6544.73 ▲4.42
Posts /wp-admin/edit.php2,118 ▲291.97 ▼0.0336.26 ▼5.9731.27 ▼3.41
Add New Post /wp-admin/post-new.php1,554 ▲1818.31 ▼4.81626.93 ▼33.1154.08 ▲3.05
Media Library /wp-admin/upload.php1,417 ▲324.35 ▲0.1597.02 ▼3.1242.31 ▲0.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BlastSmsBroadcast\\get_option() in wp-content/plugins/blast-sms-broadcast/functions.php:161

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === blast-sms-broadcast === )
You can look at the official readme.txt

blast-sms-broadcast/blast-sms-broadcast.php Passed 13 tests

Analyzing the main PHP file in "Blast.my SMS Broadcast" version 1.2.0
54 characters long description:
Send or broadcast SMS from your Wordpress admin panel.

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
No dangerous file extensions were detected61,074 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity8.50
▷ Minimum class complexity8.00
▷ Maximum class complexity9.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods866.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions4100.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.32KB0.18KB▼ 44.00%
vendor/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png0.38KB0.12KB▼ 67.68%
vendor/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png0.32KB0.16KB▼ 50.46%
vendor/jquery-ui/images/ui-icons_454545_256x240.png6.92KB4.18KB▼ 39.61%
vendor/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png0.26KB0.09KB▼ 66.79%