10% smsq-notifications-for-woocommerce

Code Review | SMSQ Notifications for WooCommerce

WordPress plugin SMSQ Notifications for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: smsq-notification...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 6.3.1
  • First release: Aug 19, 2021
  • Latest release: Nov 10, 2022
  • Number of updates: 17
  • Update frequency: every 26.4 days
  • Top authors: smsq (100%)Otto42 (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,595 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory

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

This is a short check of server-side resources used by SMSQ Notifications for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.62 ▼11.30
Dashboard /wp-admin3.31 ▲0.0055.42 ▲2.34
Posts /wp-admin/edit.php3.36 ▲0.0050.49 ▲1.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.41 ▼7.36
Media Library /wp-admin/upload.php3.23 ▲0.0032.92 ▲0.92

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SMSQ Notifications for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3514.35 ▲0.002.03 ▼0.0840.22 ▼4.23
Dashboard /wp-admin2,198 ▲215.62 ▼0.0087.35 ▼3.1541.24 ▼1.81
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0842.93 ▼0.9733.07 ▼6.89
Add New Post /wp-admin/post-new.php1,528 ▲123.58 ▲0.50688.20 ▲0.0754.60 ▲0.19
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.01103.80 ▼6.0142.71 ▼5.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/smsq-notifications-for-woocommerce/includes/admin/funciones-smsq.php:14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/smsq-notifications-for-woocommerce/includes/admin/funciones-formulario.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/smsq-notifications-for-woocommerce/includes/admin/smsq-st.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/smsq-notifications-for-woocommerce/includes/admin/funciones-formulario.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/smsq-notifications-for-woocommerce/includes/cuadro-informacion.php:12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/smsq-notifications-for-woocommerce/includes/admin/funciones-formulario.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/smsq-notifications-for-woocommerce/includes/admin/funciones-formulario.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/smsq-notifications-for-woocommerce/includes/formulario.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/smsq-notifications-for-woocommerce/includes/admin/funciones-formulario.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/smsq-notifications-for-woocommerce/includes/admin/funciones-formulario.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 41 tag instead of maximum 10
You can take inspiration from this readme.txt

smsq-notifications-for-woocommerce/sms-q.php 85% from 13 tests

The main file in "SMSQ Notifications for WooCommerce" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("smsq-notifications-for-woocommerce.php" instead of "sms-q.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 279 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,509 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP91291061,622
CSS1921555
SVG200270
Markdown116062

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/stars.png0.90KB1.07KB0.00%
assets/images/logo.png2.23KB2.25KB0.00%