89% notify-for-woocommerce

Code Review | Notify for WooCommerce

WordPress plugin Notify for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: notify-for-woocom...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 5.8.1
  • First release: Mar 29, 2021
  • Latest release: Jun 29, 2021
  • Number of updates: 8
  • Update frequency: every 11.7 days
  • Top authors: notifybiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 133 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼142.96ms] Passed 4 tests

A check of server-side resources used by Notify for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0232.46 ▼4.77
Dashboard /wp-admin3.08 ▲0.0343.86 ▼4.33
Posts /wp-admin/edit.php3.17 ▲0.0646.73 ▲7.09
Add New Post /wp-admin/post-new.php5.45 ▲0.0194.44 ▼550.44
Media Library /wp-admin/upload.php3.02 ▲0.0231.85 ▼12.31
Notify /wp-admin/admin.php?page=notify-for-woocommerce/admin/partials/notify-for-woocommerce-admin-display.php3.0834.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Notify for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,816 ▲22016.33 ▲0.3814.45 ▲1.6546.01 ▼1.44
Dashboard /wp-admin2,977 ▲436.13 ▲0.07146.45 ▼3.87119.99 ▲6.54
Posts /wp-admin/edit.php2,743 ▲42.72 ▼0.0065.89 ▼0.6984.53 ▼3.31
Add New Post /wp-admin/post-new.php1,876 ▲29519.04 ▼1.90382.23 ▼69.90106.19 ▼6.29
Media Library /wp-admin/upload.php1,811 ▲45.03 ▲0.02149.57 ▼7.71116.18 ▼1.55
Notify /wp-admin/admin.php?page=notify-for-woocommerce/admin/partials/notify-for-woocommerce-admin-display.php1,3422.3353.6870.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/notify-for-woocommerce/public/partials/notify-for-woocommerce-public-display.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/notify-for-woocommerce/admin/partials/notify-for-woocommerce-admin-display.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/notify-for-woocommerce/admin/partials/notify-for-woocommerce-admin-display-templates.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/notify-for-woocommerce/admin/partials/notify-for-woocommerce-admin-display-settings.php:15

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 Passed 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
8 plugin tags: woocommerce, sms order, order sms, notifications, sms...

notify-for-woocommerce/notify-for-woocommerce.php Passed 13 tests

The entry point to "Notify for WooCommerce" version 1.1 is a PHP file that has certain tags in its header comment area
96 characters long description:
Notify for WooCommerce adds the ability to send SMS notifications for every status of the order.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected497 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14171610443
CSS212841
JSON1006
JavaScript24546
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.71
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants27
▷ Global constants27100.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
PNG images were not found in this plugin