-
Home
-
Pre-Orders, Product Labels, Buy Now, Quick View, Discount Rules and More for WooCommerce – Merchant
-
1.10.3
-
Code
-
Classes
- Merchant_Product_Labels
| Total Complexity |
170 |
| Dependencies |
6 |
| Dependents |
0 |
| Total lines |
1,066 |
| Lines of code |
616 |
| Logical lines of code |
336 |
| Comment lines |
281 |
| Methods |
30 |
| Properties |
2 |
Methods 30
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| get_labels() |
D |
29 |
38 |
114 |
| legacy_product_label() |
B |
41 |
17 |
49 |
| get_product_sale_data() |
A |
45 |
15 |
38 |
| __construct() |
A |
40 |
12 |
59 |
| show_label() |
A |
52 |
13 |
23 |
| is_pre_order() |
A |
53 |
9 |
22 |
| frontend_custom_css() |
A |
46 |
6 |
52 |
| get_shape_based_styles() |
S |
48 |
7 |
29 |
| shortcode_handler() |
S |
48 |
5 |
36 |
| is_in_category() |
S |
59 |
6 |
14 |
| init_translations() |
S |
60 |
5 |
13 |
| label() |
S |
52 |
4 |
21 |
| admin_enqueue_css() |
S |
63 |
5 |
8 |
| admin_enqueue_js() |
S |
64 |
5 |
8 |
| single_product_output() |
S |
54 |
2 |
24 |
| add_pre_order_option() |
S |
69 |
3 |
6 |
| render_admin_preview() |
S |
62 |
2 |
11 |
| loop_product_output() |
S |
56 |
1 |
21 |
| products_block() |
S |
58 |
1 |
17 |
| admin_preview_content() |
S |
62 |
1 |
15 |
| is_on_sale() |
S |
79 |
2 |
3 |
| is_out_of_stock() |
S |
78 |
2 |
3 |
| is_featured() |
S |
79 |
2 |
3 |
| remove_on_sale() |
S |
82 |
1 |
3 |
| enqueue_css() |
S |
77 |
1 |
3 |
| enqueue_js() |
S |
77 |
1 |
3 |
| get_module_custom_css() |
S |
77 |
1 |
4 |
| admin_custom_css() |
S |
77 |
1 |
4 |
| single_product_image_gallery_classes() |
S |
77 |
1 |
4 |
| is_new() |
S |
69 |
1 |
6 |