89% wc-sms-order-notification

Code Review | SMS Order Notification for WooCommerce

WordPress plugin SMS Order Notification for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-sms-order-noti...
  • Plugin version: 0.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.1-5.6
  • WordPress version: 6.3.1
  • First release: Feb 12, 2021
  • Latest release: Feb 12, 2021
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: sitestudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /353 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.97ms] Passed 4 tests

This is a short check of server-side resources used by SMS Order Notification for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.11 ▲1.24
Dashboard /wp-admin3.42 ▲0.1143.90 ▼0.84
Posts /wp-admin/edit.php3.53 ▲0.1745.86 ▼6.03
Add New Post /wp-admin/post-new.php6.02 ▲0.1388.19 ▼6.25
Media Library /wp-admin/upload.php3.34 ▲0.1135.92 ▲5.66
WC SMS NOTIFICATIONS /wp-admin/admin.php?page=sms-notifications3.32259.29

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for SMS Order Notification for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.181.66 ▲0.0839.92 ▼3.03
Dashboard /wp-admin2,202 ▲225.68 ▲0.0495.21 ▲8.9541.85 ▼2.85
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0343.89 ▼0.8535.30 ▼3.53
Add New Post /wp-admin/post-new.php1,530 ▲223.43 ▲0.39599.96 ▼70.3256.15 ▲1.32
Media Library /wp-admin/upload.php1,395 ▼54.38 ▲0.18104.05 ▼2.0643.97 ▼0.77
WC SMS NOTIFICATIONS /wp-admin/admin.php?page=sms-notifications8602.0121.6829.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: sms, woocommerce, woocommerce order status, notification

wc-sms-order-notification/wc-sms-notification.php 85% from 13 tests

Analyzing the main PHP file in "SMS Order Notification for WooCommerce" version 0.1.3
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-sms-order-notification.php" instead of "wc-sms-notification.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected784 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13216179702
PO File1141544
JSON20018
CSS11012
JavaScript1008

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity10.75
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces1
Traits1
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods49
▷ Static methods2142.86%
▷ Public methods4693.88%
▷ Protected methods12.04%
▷ Private methods24.08%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin