89% text-message-sms-extension-for-woocommerce

Code Review | Text Message SMS Extension for WooCommerce

WordPress plugin Text Message SMS Extension for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: text-message-sms-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-5.4.0
  • WordPress version: 6.3.1
  • First release: Apr 12, 2020
  • Latest release: Apr 26, 2020
  • Number of updates: 4
  • Update frequency: every 6.5 days
  • Top authors: biztextsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.36ms] Passed 4 tests

An overview of server-side resources used by Text Message SMS Extension for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.35 ▼10.54
Dashboard /wp-admin3.31 ▲0.0046.22 ▼0.30
Posts /wp-admin/edit.php3.36 ▲0.0047.45 ▼1.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.14 ▼17.97
Media Library /wp-admin/upload.php3.23 ▲0.0032.37 ▼3.62

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Text Message SMS Extension for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.36 ▼0.944.39 ▲2.6641.15 ▲0.83
Dashboard /wp-admin2,206 ▲184.83 ▼0.04107.00 ▼1.4538.98 ▼1.61
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0338.44 ▲0.4735.16 ▲1.86
Add New Post /wp-admin/post-new.php1,528 ▼3818.65 ▼0.14629.08 ▲18.1463.78 ▲3.35
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0297.24 ▼6.4742.55 ▼2.16

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: sms, sms notifications, woocommerce, sms extension

text-message-sms-extension-for-woocommerce/sms-for-woocommerce.php 77% from 13 tests

The primary PHP file in "Text Message SMS Extension for WooCommerce" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("text-message-sms-extension-for-woocommerce.php" instead of "sms-for-woocommerce.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.9.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,372 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4418941,033
JavaScript21688276
CSS355063

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions3196.88%
▷ Anonymous functions13.12%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin