-
Home
-
WPPizza – A Restaurant Plugin
-
3.19.8
-
Code
-
Classes
- WPPIZZA_SESSIONS
| Total Complexity |
334 |
| Dependencies |
0 |
| Dependents |
1 |
| Total lines |
2,206 |
| Lines of code |
959 |
| Logical lines of code |
706 |
| Comment lines |
1,025 |
| Methods |
28 |
| Properties |
3 |
Methods 28
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| sort_and_calculate_cart() |
D |
0 |
172 |
510 |
| add_item_to_cart() |
C |
31 |
27 |
100 |
| prevent_session() |
B |
38 |
23 |
63 |
| set_userdata() |
B |
43 |
22 |
47 |
| maybe_init_sessions() |
B |
44 |
16 |
47 |
| modify_items_in_cart() |
A |
45 |
12 |
37 |
| get_selected_gateway() |
S |
58 |
8 |
13 |
| is_pickup() |
S |
65 |
7 |
7 |
| assign_userdata() |
S |
61 |
6 |
11 |
| set_pickup() |
S |
62 |
5 |
10 |
| get_userdata() |
S |
68 |
4 |
7 |
| empty_cart() |
S |
62 |
3 |
11 |
| clear_session() |
S |
68 |
3 |
8 |
| unset_userdata() |
S |
66 |
3 |
9 |
| set_session_idents() |
S |
65 |
2 |
9 |
| remove_item_from_cart() |
S |
66 |
2 |
8 |
| cart_is_empty() |
S |
74 |
2 |
4 |
| cart_has_items() |
S |
74 |
2 |
4 |
| set_order_hash() |
S |
68 |
2 |
7 |
| get_order_hash() |
S |
68 |
2 |
7 |
| set_order_id() |
S |
68 |
2 |
7 |
| add_userdata_key() |
S |
69 |
2 |
6 |
| remove_userdata_key() |
S |
70 |
2 |
6 |
| __construct() |
S |
75 |
1 |
4 |
| get_cart() |
S |
75 |
1 |
4 |
| get_cart_items() |
S |
72 |
1 |
5 |
| get_checkout_parameters() |
S |
75 |
1 |
4 |
| get_cart_summary() |
S |
75 |
1 |
4 |