| Total Complexity | 337 |
| Dependencies | 23 |
| Dependents | 2 |
| Total lines | 2,379 |
| Lines of code | 1,127 |
| Logical lines of code | 624 |
| Comment lines | 914 |
| Methods | 106 |
| Properties | 7 |
| Method | Rating | Maintainability | Complexity | Lines of code |
|---|---|---|---|---|
| update_taxes() | 42 | 17 | 46 | |
| apply_coupon() | 42 | 13 | 51 | |
| hold_applied_coupons() | 46 | 13 | 38 | |
| set_coupon_discount_amounts() | 43 | 10 | 47 | |
| get_subtotal_to_display() | 48 | 11 | 31 | |
| get_tax_location() | 49 | 11 | 28 | |
| calculate_totals() | 45 | 10 | 41 | |
| add_product() | 43 | 9 | 47 | |
| get_shipping_to_display() | 52 | 9 | 22 | |
| set_status() | 55 | 9 | 18 | |
| calculate_taxes() | 51 | 8 | 25 | |
| recalculate_coupons() | 48 | 7 | 34 | |
| save_items() | 52 | 7 | 25 | |
| get_item() | 56 | 7 | 18 | |
| save() | 50 | 6 | 31 | |
| __construct() | 57 | 6 | 16 | |
| set_item_discount_amounts() | 57 | 6 | 15 | |
| get_items_key() | 59 | 6 | 14 | |
| add_order_item_totals_fee_rows() | 57 | 6 | 14 | |
| add_order_item_totals_tax_rows() | 56 | 5 | 17 | |
| get_item_subtotal() | 60 | 5 | 12 | |
| get_item_total() | 60 | 5 | 12 | |
| get_tax_totals() | 53 | 4 | 21 | |
| add_item() | 58 | 4 | 16 | |
| get_formatted_line_subtotal() | 57 | 4 | 16 | |
| get_items() | 59 | 4 | 14 | |
| get_line_subtotal() | 61 | 4 | 12 | |
| set_parent_id() | 68 | 4 | 6 | |
| set_currency() | 68 | 4 | 6 | |
| get_items_tax_classes() | 64 | 4 | 9 | |
| get_line_total() | 65 | 4 | 8 | |
| get_item_tax() | 65 | 4 | 8 | |
| remove_order_items() | 60 | 3 | 14 | |
| remove_coupon() | 60 | 3 | 13 | |
| get_status() | 67 | 3 | 7 | |
| get_coupon_codes() | 65 | 3 | 10 | |
| get_item_count() | 65 | 3 | 8 | |
| remove_item() | 64 | 3 | 9 | |
| hold_coupon() | 64 | 3 | 9 | |
| hold_coupon_for_users() | 63 | 3 | 9 | |
| add_payment_token() | 63 | 3 | 10 | |
| has_status() | 76 | 3 | 3 | |
| has_shipping_method() | 66 | 3 | 8 | |
| has_free_item() | 67 | 3 | 8 | |
| type_to_group() | 60 | 2 | 13 | |
| get_billing_and_current_user_aliases() | 61 | 2 | 12 | |
| get_order_item_totals() | 62 | 2 | 11 | |
| get_data() | 59 | 1 | 16 | |
| get_total_discount() | 66 | 2 | 8 | |
| set_total() | 68 | 2 | 7 | |
| get_shipping_method() | 67 | 2 | 7 | |
| calculate_shipping() | 66 | 2 | 9 | |
| get_line_tax() | 76 | 2 | 3 | |
| get_discount_to_display() | 72 | 2 | 4 | |
| add_order_item_totals_subtotal_row() | 65 | 2 | 9 | |
| add_order_item_totals_discount_row() | 66 | 2 | 8 | |
| add_order_item_totals_shipping_row() | 66 | 2 | 8 | |
| get_title() | 68 | 2 | 7 | |
| __clone() | 98 | 1 | 1 | |
| get_type() | 82 | 1 | 3 | |
| handle_exception() | 67 | 1 | 9 | |
| get_parent_id() | 79 | 1 | 3 | |
| get_currency() | 79 | 1 | 3 | |
| get_version() | 79 | 1 | 3 | |
| get_prices_include_tax() | 79 | 1 | 3 | |
| get_date_created() | 79 | 1 | 3 | |
| get_date_modified() | 79 | 1 | 3 | |
| get_date_paid() | 79 | 1 | 3 | |
| get_date_completed() | 79 | 1 | 3 | |
| get_discount_total() | 79 | 1 | 3 | |
| get_discount_tax() | 79 | 1 | 3 | |
| get_shipping_total() | 79 | 1 | 3 | |
| get_shipping_tax() | 79 | 1 | 3 | |
| get_cart_tax() | 79 | 1 | 3 | |
| get_total() | 79 | 1 | 3 | |
| get_total_tax() | 79 | 1 | 3 | |
| get_subtotal() | 74 | 1 | 4 | |
| get_valid_statuses() | 80 | 1 | 3 | |
| get_user_id() | 82 | 1 | 3 | |
| get_user() | 82 | 1 | 3 | |
| get_recorded_coupon_usage_counts() | 79 | 1 | 3 | |
| get_base_data() | 72 | 1 | 6 | |
| set_version() | 80 | 1 | 3 | |
| set_prices_include_tax() | 79 | 1 | 3 | |
| set_date_created() | 80 | 1 | 3 | |
| set_date_modified() | 80 | 1 | 3 | |
| set_discount_total() | 78 | 1 | 3 | |
| set_discount_tax() | 78 | 1 | 3 | |
| set_shipping_total() | 78 | 1 | 3 | |
| set_shipping_tax() | 74 | 1 | 4 | |
| set_cart_tax() | 74 | 1 | 4 | |
| set_total_tax() | 78 | 1 | 3 | |
| set_recorded_coupon_usage_counts() | 79 | 1 | 3 | |
| get_values_for_total() | 66 | 1 | 9 | |
| get_coupons() | 80 | 1 | 3 | |
| get_fees() | 80 | 1 | 3 | |
| get_taxes() | 80 | 1 | 3 | |
| get_shipping_methods() | 80 | 1 | 3 | |
| get_payment_tokens() | 80 | 1 | 3 | |
| get_taxable_location() | 80 | 1 | 3 | |
| get_tax_rates() | 71 | 1 | 5 | |
| get_total_fees() | 69 | 1 | 8 | |
| get_cart_subtotal_for_order() | 71 | 1 | 7 | |
| get_cart_total_for_order() | 71 | 1 | 7 | |
| get_formatted_order_total() | 74 | 1 | 4 | |
| add_order_item_totals_total_row() | 70 | 1 | 6 |