90% awesome-sms-for-woocommerce

Code Review | Awesome SMS for Woocommerce

WordPress plugin Awesome SMS for Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: awesome-sms-for-w...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Sep 3, 2018
  • Latest release: Sep 3, 2018
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: togidata (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /645 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▲2.44ms] Passed 4 tests

A check of server-side resources used by Awesome SMS for Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.31 ▲1.21
Dashboard /wp-admin3.45 ▲0.1450.42 ▼2.28
Posts /wp-admin/edit.php3.56 ▲0.2056.51 ▲7.06
Add New Post /wp-admin/post-new.php6.03 ▲0.14114.99 ▲12.69
Media Library /wp-admin/upload.php3.37 ▲0.1440.17 ▲3.77

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 24 new options
New WordPress options
asmsfw_settings_server_url
asmsfw_template_order_confirmation
asmsfw_settings_order_status_change_finished
asmsfw_settings_order_status_change_pending
widget_recent-posts
asmsfw_settings_order_confirmation
asmsfw_settings_admin_notification_limit
asmsfw_settings_admin_notification_email
asmsfw_template_order_status_change_processing
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for Awesome SMS for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.61 ▼0.681.84 ▲0.0344.25 ▼0.27
Dashboard /wp-admin2,234 ▲465.79 ▲0.92105.58 ▼1.4344.68 ▼0.07
Posts /wp-admin/edit.php2,119 ▲272.02 ▼0.0241.29 ▲1.3136.49 ▼1.12
Add New Post /wp-admin/post-new.php1,534 ▲117.70 ▼5.33617.55 ▼46.3452.76 ▼8.84
Media Library /wp-admin/upload.php1,419 ▲314.25 ▲0.03104.36 ▼2.2848.07 ▼3.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 24 options
    • asmsfw_settings_server_url
    • asmsfw_settings_notification_type
    • asmsfw_settings_send_msg_from_order
    • widget_theysaidso_widget
    • widget_recent-comments
    • asmsfw_settings_order_status_change_pending
    • asmsfw_template_order_status_change_pending
    • asmsfw_template_order_status_change_finished
    • theysaidso_admin_options
    • asmsfw_settings_order_status_change_finished
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

awesome-sms-for-woocommerce/awesome-sms-for-woocommerce.php Passed 13 tests

The primary PHP file in "Awesome SMS for Woocommerce" version 1.0 is used by WordPress to initiate all plugin functionality
71 characters long description:
Send SMS messages to your customers i Denmark using this awesome plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,025 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP911968900
PO File14961125

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin