-
Home
-
Pre-Orders, Product Labels, Buy Now, Quick View, Discount Rules and More for WooCommerce – Merchant
-
1.9.17
-
Code
-
Classes
- Merchant_Product_Labels
| Total Complexity |
153 |
| Dependencies |
4 |
| Dependents |
0 |
| Total lines |
997 |
| Lines of code |
574 |
| Logical lines of code |
309 |
| Comment lines |
263 |
| Methods |
28 |
| Properties |
2 |
Methods 28
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| get_labels() |
D |
30 |
34 |
105 |
| legacy_product_label() |
B |
41 |
17 |
49 |
| get_product_sale_data() |
A |
45 |
15 |
38 |
| __construct() |
A |
41 |
11 |
54 |
| show_label() |
A |
52 |
13 |
23 |
| 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 |
| 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 |