10% smsvio-pro-woocommerce

Code Review | SMSVio pro WooCommerce

WordPress plugin SMSVio pro WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: smsvio-pro-woocom...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2019
  • Latest release: Aug 14, 2019
  • Number of updates: 9
  • Update frequency: every 14.8 days
  • Top authors: smsvio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /535 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • 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: ▼1.26ms] Passed 4 tests

A check of server-side resources used by SMSVio pro WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.79 ▼2.49
Dashboard /wp-admin3.31 ▲0.0045.04 ▼0.89
Posts /wp-admin/edit.php3.36 ▲0.0050.96 ▼0.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.97 ▲8.35
Media Library /wp-admin/upload.php3.23 ▲0.0033.92 ▼0.92

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

SMSVio pro WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.23 ▼1.421.66 ▼0.2537.67 ▼6.50
Dashboard /wp-admin2,200 ▲95.83 ▲0.95104.48 ▲2.6636.51 ▼6.64
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0341.11 ▲0.9133.32 ▼3.99
Add New Post /wp-admin/post-new.php1,533 ▼1123.41 ▲5.07613.24 ▼25.0145.64 ▼9.45
Media Library /wp-admin/upload.php1,385 ▲34.20 ▲0.0297.77 ▼5.5440.77 ▼0.69

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/smsvio-pro-woocommerce/index.php
    • > /wp-content/plugins/smsvio-pro-woocommerce/includes/cuadro-informacion.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/smsvio-pro-woocommerce/includes/admin/funciones-formulario.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/smsvio-pro-woocommerce/includes/admin/funciones-apg.php:11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/smsvio-pro-woocommerce/includes/admin/funciones-formulario.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/smsvio-pro-woocommerce/includes/admin/funciones-formulario.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/smsvio-pro-woocommerce/includes/formulario.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/smsvio-pro-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/smsvio-pro-woocommerce/includes/admin/funciones-formulario.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/smsvio-pro-woocommerce/includes/admin/funciones-formulario.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: notifikan sms, woocommerce, sms, odesln sms

smsvio-pro-woocommerce/apg-sms.php 77% from 13 tests

The primary PHP file in "SMSVio pro WooCommerce" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 698 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "3.8")
  • Main file name: The principal plugin file should be the same as the plugin slug ("smsvio-pro-woocommerce.php" instead of "apg-sms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,530 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP91121011,378
CSS21022669
SVG200270
PO File180106213

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues 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%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin