84% sendsms

Code Review | SendSMS

WordPress plugin SendSMS scored84%from 54 tests.

About plugin

  • Plugin page: sendsms
  • Plugin version: 1.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 9, 2020
  • Latest release: Mar 19, 2023
  • Number of updates: 34
  • Update frequency: every 25.4 days
  • Top authors: catalinsendsms (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /931 total downloads

Benchmarks

Plugin footprint 83% 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.24MB] [CPU: ▼2.55ms] Passed 4 tests

Server-side resources used by SendSMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2440.31 ▼0.50
Dashboard /wp-admin3.54 ▲0.2450.43 ▼8.18
Posts /wp-admin/edit.php3.65 ▲0.3052.80 ▲6.01
Add New Post /wp-admin/post-new.php6.12 ▲0.2493.00 ▼1.76
Media Library /wp-admin/upload.php3.46 ▲0.2439.18 ▲0.25

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SendSMS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▼0.032.13 ▲0.4439.92 ▼5.41
Dashboard /wp-admin2,198 ▲185.63 ▼0.0481.84 ▼7.7938.66 ▼1.95
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0438.99 ▲2.6435.13 ▼1.03
Add New Post /wp-admin/post-new.php1,404 ▼12417.87 ▼5.42600.79 ▼79.9250.68 ▼9.38
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0297.02 ▼17.0143.59 ▼6.15

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sendsms/wc_sendsms.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/sendsms/HistoryListTable.php:2

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: sms, woocommerce, sendsms

sendsms/wc_sendsms.php 85% from 13 tests

Analyzing the main PHP file in "SendSMS" version 1.2.9
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("sendsms.php" instead of "wc_sendsms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,298 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
PHP51581251,921
PO File1107112309
JavaScript5122561
CSS7087

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods17.69%
▷ Private methods00.00%
Functions52
▷ Named functions52100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sendsms_logo.png7.47KB3.79KB▼ 49.27%
images/sendsms.png0.65KB0.63KB▼ 3.15%