-
Home
-
Newspack Newsletters
-
3.4.0
-
Code
-
Classes
- Newspack_Newsletters_Ads
Total Complexity |
105 |
Dependencies |
5 |
Dependents |
3 |
Total lines |
850 |
Lines of code |
567 |
Logical lines of code |
260 |
Comment lines |
211 |
Methods |
25 |
Properties |
2 |
Methods 25
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
insert_auto_ads() |
C |
32 |
24 |
106 |
get_newsletter_ads() |
A |
43 |
10 |
47 |
custom_column() |
S |
53 |
7 |
24 |
is_ad_active() |
S |
53 |
7 |
23 |
handle_sorting() |
S |
56 |
7 |
18 |
get_ads_config() |
S |
50 |
5 |
29 |
register_ads_cpt() |
S |
39 |
2 |
69 |
can_block_be_followed_by_ad() |
S |
57 |
5 |
19 |
register_meta() |
S |
43 |
1 |
71 |
migrate_diable_ads() |
S |
57 |
4 |
16 |
track_ad_impression() |
S |
58 |
4 |
15 |
filter_newsletter_content() |
S |
61 |
4 |
13 |
get_inner_block_content() |
S |
61 |
4 |
12 |
mark_ad_inserted() |
S |
63 |
3 |
10 |
get_block_content() |
S |
68 |
3 |
6 |
should_render_ads() |
S |
64 |
3 |
10 |
is_ad_inserted() |
S |
76 |
2 |
3 |
instance() |
S |
72 |
2 |
6 |
__construct() |
S |
57 |
1 |
15 |
ad_default_fields() |
S |
71 |
2 |
6 |
register_newsletter_meta() |
S |
61 |
1 |
13 |
add_ads_page() |
S |
63 |
1 |
11 |
rest_api_init() |
S |
63 |
1 |
11 |
sortable_columns() |
S |
71 |
1 |
6 |
manage_columns() |
S |
66 |
1 |
8 |