89% alpha-sms

Code Review | Alpha SMS

WordPress plugin Alpha SMS scored89%from 54 tests.

About plugin

  • Plugin page: alpha-sms
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2021
  • Latest release: Jul 17, 2023
  • Number of updates: 24
  • Update frequency: every 25.5 days
  • Top authors: alphanetbd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,564 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼2.14ms] Passed 4 tests

A check of server-side resources used by Alpha SMS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2440.90 ▼5.68
Dashboard /wp-admin3.54 ▲0.2447.08 ▼5.48
Posts /wp-admin/edit.php3.66 ▲0.3049.37 ▲1.65
Add New Post /wp-admin/post-new.php6.14 ▲0.2688.83 ▲0.97
Media Library /wp-admin/upload.php3.47 ▲0.2438.62 ▲7.77
Settings /wp-admin/admin.php?page=alpha_sms_settings3.6631.45
Campaign /wp-admin/admin.php?page=alpha_sms3.4433.20

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Alpha SMS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,997 ▲22613.64 ▼0.735.70 ▲3.3337.52 ▼5.90
Dashboard /wp-admin2,296 ▲1054.87 ▼0.01103.99 ▼0.7139.59 ▼5.58
Posts /wp-admin/edit.php2,175 ▲862.02 ▼0.0441.71 ▲0.8636.19 ▼0.27
Add New Post /wp-admin/post-new.php1,537 ▲422.95 ▼0.63633.07 ▼58.1256.01 ▲5.43
Media Library /wp-admin/upload.php1,477 ▲894.25 ▲0.0194.46 ▼3.3140.00 ▼3.48
Settings /wp-admin/admin.php?page=alpha_sms_settings9562.0726.3132.11
Campaign /wp-admin/admin.php?page=alpha_sms9352.0327.0331.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

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)
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
The official readme.txt might help

alpha-sms/alpha_sms.php 85% from 13 tests

"Alpha SMS" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("alpha-sms.php" instead of "alpha_sms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,024 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity25.50
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods22.99%
▷ Public methods5988.06%
▷ Protected methods00.00%
▷ Private methods811.94%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
4 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png4.89KB2.76KB▼ 43.60%
assets/icon-128x128.png2.39KB1.39KB▼ 41.69%
assets/banner-1544x500.png73.09KB34.80KB▼ 52.39%