84% woosms-sms-module-for-woocommerce

Code Review | BulkGate SMS Plugin for WooCommerce

WordPress plugin BulkGate SMS Plugin for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woosms-sms-module...
  • Plugin version: 3.0.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: May 23, 2018
  • Latest release: Nov 29, 2023
  • Number of updates: 88
  • Update frequency: every 22.9 days
  • Top authors: woosms (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /64,387 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
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.95ms] Passed 4 tests

Analyzing server-side resources used by BulkGate SMS Plugin for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.23 ▼10.74
Dashboard /wp-admin3.31 ▼0.0446.46 ▼17.20
Posts /wp-admin/edit.php3.36 ▲0.0047.22 ▼2.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.96 ▼16.86
Media Library /wp-admin/upload.php3.23 ▲0.0034.66 ▲1.29

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 117 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BulkGate SMS Plugin for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.70 ▲0.351.58 ▼0.1436.78 ▼6.48
Dashboard /wp-admin2,192 ▲185.62 ▲0.0796.09 ▼6.3143.18 ▼3.08
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0138.69 ▼0.1635.76 ▲0.77
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▼0.04656.85 ▲4.0155.51 ▼9.88
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.0198.37 ▲0.7843.77 ▼1.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The following issues need your attention
  • 73× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Trait 'BulkGate\\Plugin\\Strict' not found in wp-content/plugins/woosms-sms-module-for-woocommerce/vendor/bulkgate/plugin/src/Eshop/EshopSynchronizer.php on line 12
    • > PHP Fatal error
      Trait 'BulkGate\\Plugin\\Strict' not found in wp-content/plugins/woosms-sms-module-for-woocommerce/vendor/bulkgate/plugin/src/Debug/Logger.php on line 12
    • > PHP Fatal error
      Trait 'BulkGate\\Plugin\\Strict' not found in wp-content/plugins/woosms-sms-module-for-woocommerce/src/Template/Init.php on line 14
    • > PHP Fatal error
      Uncaught Error: Interface 'BulkGate\\Plugin\\Localization\\Language' not found in wp-content/plugins/woosms-sms-module-for-woocommerce/vendor/bulkgate/plugin/src/Localization/LanguageSettings.php:12
    • > PHP Fatal error
      Trait 'BulkGate\\Plugin\\Strict' not found in wp-content/plugins/woosms-sms-module-for-woocommerce/src/Event/Redirect.php on line 13
    • > PHP Fatal error
      Uncaught Error: Interface 'BulkGate\\Plugin\\Structure\\Entity' not found in wp-content/plugins/woosms-sms-module-for-woocommerce/vendor/bulkgate/plugin/src/Event/Repository/Entity/Task.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'BulkGate\\Plugin\\Exception' not found in wp-content/plugins/woosms-sms-module-for-woocommerce/vendor/bulkgate/plugin/src/DI/exceptions.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'BulkGate\\Plugin\\Event\\DataLoader' not found in wp-content/plugins/woosms-sms-module-for-woocommerce/src/Event/Loader/Post.php:12
    • > PHP Fatal error
      Trait 'BulkGate\\Plugin\\Strict' not found in wp-content/plugins/woosms-sms-module-for-woocommerce/vendor/bulkgate/plugin/src/Utils/JsonArray.php on line 13
    • > PHP Fatal error
      Trait 'BulkGate\\Plugin\\Strict' not found in wp-content/plugins/woosms-sms-module-for-woocommerce/vendor/bulkgate/plugin/src/Settings/Synchronizer.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 63 tag instead of maximum 10
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

woosms-sms-module-for-woocommerce/woosms-sms-module-for-woocommerce.php Passed 13 tests

"BulkGate SMS Plugin for WooCommerce" version 3.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
63 characters long description:
Notify your customers about order status via SMS notifications.

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 plugin4,663 lines of code in 113 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111,4461,4354,572
JSON20091

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity4.88
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces31
Interfaces19
Traits6
Classes88
▷ Abstract classes11.14%
▷ Concrete classes8798.86%
▷ Final classes00.00%
Methods297
▷ Static methods7525.25%
▷ Public methods27793.27%
▷ Protected methods20.67%
▷ Private methods186.06%
Functions26
▷ Named functions13.85%
▷ Anonymous functions2596.15%
Constants28
▷ Global constants13.57%
▷ Class constants2796.43%
▷ Public constants1659.26%

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
No PNG images were found in this plugin