74% woocommerce-transmit-sms

Code Review | WooCommerce Transmit SMS

WordPress plugin WooCommerce Transmit SMS scored74%from 54 tests.

About plugin

  • Plugin page: woocommerce-trans...
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 6.3.1
  • First release: May 23, 2015
  • Latest release: Aug 5, 2016
  • Number of updates: 42
  • Update frequency: every 10.5 days
  • Top authors: adykidd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /7,521 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by WooCommerce Transmit SMS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.42 ▲2.58
Dashboard /wp-admin3.32 ▲0.0244.82 ▼16.26
Posts /wp-admin/edit.php3.37 ▲0.0244.84 ▼1.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.82 ▼9.64
Media Library /wp-admin/upload.php3.25 ▲0.0237.32 ▲3.44

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Transmit SMS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.63 ▼0.644.21 ▲2.4141.35 ▼2.92
Dashboard /wp-admin2,206 ▲214.85 ▼1.01108.12 ▼9.2642.15 ▼7.44
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0139.16 ▲1.7436.48 ▲0.73
Add New Post /wp-admin/post-new.php1,533 ▲1323.22 ▲0.17603.75 ▼66.7850.49 ▼1.92
Media Library /wp-admin/upload.php1,382 ▼64.16 ▼0.0495.87 ▼1.2642.20 ▼1.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/woocommerce-transmit-sms/uninstall.php+6
    Undefined variable: option_name
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/woocommerce-transmit-sms/admin/admin_integration.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
The official readme.txt might help

woocommerce-transmit-sms/woocommerce-transmit-sms.php Passed 13 tests

The primary PHP file in "WooCommerce Transmit SMS" version 2.6 is used by WordPress to initiate all plugin functionality
127 characters long description:
Send SMS updates to customers when their order status is updated and receive an SMS message when a customer places a new order.

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
Good job! No executable or dangerous file extensions detected25,225 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63,0322,06015,460
CSS943827,339
PHP102164282,197
SVG100229

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity46.50
▷ Minimum class complexity11.00
▷ Maximum class complexity68.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods75
▷ Static methods00.00%
▷ Public methods6992.00%
▷ Protected methods68.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants26
▷ Global constants26100.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
20 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
jquery-ui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%
jquery-ui/css/ui-lightness/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
jquery-ui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png0.20KB0.08KB▼ 57.56%
jquery-ui/css/ui-lightness/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%
images/success.png1.71KB1.62KB▼ 5.19%