84% jusibe-wc-sms-notifications

Code Review | Jusibe SMS Notifications for WooCommerce

WordPress plugin Jusibe SMS Notifications for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: jusibe-wc-sms-not...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.5
  • WordPress version: 6.3.1
  • First release: Apr 12, 2016
  • Latest release: Aug 11, 2020
  • Number of updates: 15
  • Update frequency: every 105.5 days
  • Top authors: tubiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,291 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Jusibe SMS Notifications for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.37 ▼1.95
Dashboard /wp-admin3.31 ▲0.0056.82 ▲3.41
Posts /wp-admin/edit.php3.36 ▲0.0053.03 ▲0.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.93 ▲3.33
Media Library /wp-admin/upload.php3.23 ▲0.0037.27 ▲1.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Jusibe SMS Notifications for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.61 ▼1.211.82 ▲0.1044.21 ▼0.09
Dashboard /wp-admin2,206 ▲185.75 ▲0.8499.11 ▼18.4339.59 ▼2.79
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0440.02 ▲2.1135.64 ▲1.73
Add New Post /wp-admin/post-new.php1,547 ▲1018.33 ▼4.75618.71 ▼36.5566.46 ▲6.48
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.01102.05 ▼6.2450.59 ▲9.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jusibe-wc-sms-notifications/includes/class-jusibe-sms.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jusibe-wc-sms-notifications/includes/admin/class-jusibe-sms-admin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: order notifications, woocommerce, jusibe, tubiz, tubiz plugins...

jusibe-wc-sms-notifications/jusibe-wc-sms-notifications.php 92% from 13 tests

"Jusibe SMS Notifications for WooCommerce" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.0.0")

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 detected728 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3194136728

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity24.50
▷ Minimum class complexity22.00
▷ Maximum class complexity27.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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