79% shop-sms-notifications

Code Review | WooCommerce Shop SMS notifications

WordPress plugin WooCommerce Shop SMS notifications scored79%from 54 tests.

About plugin

  • Plugin page: shop-sms-notifica...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 6.3.1
  • First release: Apr 7, 2021
  • Latest release: Apr 7, 2021
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: foxsms (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,002 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.16MB] [CPU: ▼14.10ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Shop SMS notifications
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.20 ▼3.35
Dashboard /wp-admin3.21 ▼0.1038.86 ▼11.88
Posts /wp-admin/edit.php3.27 ▼0.0841.43 ▼9.40
Add New Post /wp-admin/post-new.php5.44 ▼0.4474.90 ▼29.68
Media Library /wp-admin/upload.php3.21 ▼0.0234.37 ▼5.45

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables
wp_smsbiuras_cart_notifications
New WordPress options
widget_recent-posts
can_compress_scripts
smsbiuras_db_version
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Shop SMS notifications
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.41 ▲0.061.90 ▼0.2642.01 ▼1.47
Dashboard /wp-admin2,194 ▲175.61 ▼0.0095.39 ▲2.4745.34 ▲0.63
Posts /wp-admin/edit.php2,105 ▲52.01 ▲0.0139.87 ▲2.8137.84 ▼4.64
Add New Post /wp-admin/post-new.php1,538 ▲1223.20 ▼0.24661.87 ▼34.0553.86 ▲1.00
Media Library /wp-admin/upload.php1,408 ▲114.14 ▼0.11102.77 ▼15.8544.93 ▼3.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_smsbiuras_cart_notifications
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • smsbiuras_db_version
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

shop-sms-notifications/smsbiuras.php 85% from 13 tests

"WooCommerce Shop SMS notifications" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shop-sms-notifications.php" instead of "smsbiuras.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)

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
Good job! No executable or dangerous file extensions detected2,300 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3158912,300

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.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions63
▷ Named functions63100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin