79% ace-twilio-for-woocommerce

Code Review | Ace Twilio For Woocommerce

WordPress plugin Ace Twilio For Woocommerce scored79%from 54 tests.

About plugin

  • Plugin page: ace-twilio-for-wo...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Jan 15, 2019
  • Latest release: Jul 6, 2022
  • Number of updates: 5
  • Update frequency: every 254.0 days
  • Top authors: acewebx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /833 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Ace Twilio For Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.57 ▲0.50
Dashboard /wp-admin3.32 ▲0.0242.39 ▼6.93
Posts /wp-admin/edit.php3.37 ▲0.0245.30 ▲0.56
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.23 ▲1.25
Media Library /wp-admin/upload.php3.24 ▲0.0234.50 ▲1.07

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

Ace Twilio For Woocommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲17813.86 ▼0.518.45 ▲6.7444.49 ▲0.78
Dashboard /wp-admin2,222 ▲405.85 ▲0.97108.37 ▼7.6944.87 ▲2.64
Posts /wp-admin/edit.php2,105 ▲192.06 ▲0.0638.59 ▲0.5636.83 ▲1.24
Add New Post /wp-admin/post-new.php1,533 ▲1923.25 ▲5.71635.05 ▼37.3963.31 ▲9.91
Media Library /wp-admin/upload.php1,404 ▲164.24 ▼0.0699.22 ▲3.1144.14 ▲0.50

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
  • Zombie WordPress options were found after uninstall: 8 options
    • ace_twilio_setting_data
    • widget_recent-comments
    • ace-twilio-for-woocommerce-default-status
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ace-twilio-for-woocommerce/public/partials/ace-twilio-for-woocommerce-public-display.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ace-twilio-for-woocommerce/admin/class-ace-twilio-for-woocommerce-admin.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ace-twilio-for-woocommerce/admin/partials/ace-twilio-for-woocommerce-admin-display.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: sms, twilio

ace-twilio-for-woocommerce/ace-twilio-for-woocommerce.php Passed 13 tests

The main PHP file in "Ace Twilio For Woocommerce" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
This plugin help us to send sms when user placed order, It send order status notification to customers.

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
Success! There were no dangerous files found in this plugin951 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity7.38
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods26.67%
▷ Public methods2480.00%
▷ Protected methods00.00%
▷ Private methods620.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin