Code Analysis: Account Engagement 2.1.0

Function Rating Maintainability Complexity Lines of code
Pardot_Plugin::get_form_body()
D
29
35 117
Pardot_API::get_response()
B
36 23 73
Pardot_Settings::admin_init()
B
34 21 83
PardotCrypto::encrypt()
B
43 16 48
Pardot_Settings::sanitize_fields()
A
42 15 51
Pardot_Settings::get_settings()
A
52 14 25
Pardot_API::get_campaigns()
A
49 10 31
Pardot_Dynamic_Content_Widget::form()
A
41 7 51
Pardot_Plugin::get_dynamic_content_body()
A
47 8 34
Pardot_Settings::is_admin_page()
A
59 9 13
Pardot_API::get_forms()
A
50 8 28
Pardot_API::get_dynamicContent()
A
51 8 27
pardot_get_wp_load_filepath()
A
54 8 22
Pardot_Forms_Widget::form()
A
41 6 51
Pardot_Plugin::admin_init()
A
56 8 17
Pardot_Settings::campaign_field()
S
48 6 31
Pardot_Settings::get_api()
S
58 7 15
get_pardot_tracking_js()
S
51 6 29
Pardot_Dynamic_Content_Widget::widget()
S
50 6 28
Pardot_Settings::auth_status_field()
S
51 6 28
pardot_init()
S
39 2 88
Pardot_Forms_Widget::widget()
S
51 6 26
Pardot_Forms_Widget::plugins_loaded()
S
54 6 19
Pardot_API::set_auth()
S
57 6 18
Pardot_Settings::admin_head()
S
45 1 77
PardotCrypto::decrypt_openssl_aes256cbc_with_hmacsha256()
S
57 5 16
Pardot_Settings::admin_notices()
S
59 5 14
has_shortcode()
S
61 5 12
Pardot_Settings::decrypt_or_original()
S
63 5 11
Pardot_Settings::pre_update_option_pardot_settings()
S
58 4 16
Pardot_Plugin::convert_embed_code_https()
S
57 4 15
PardotCrypto::decrypt()
S
59 4 14
Pardot_Plugin::clear_cache()
S
59 4 14
Pardot_API::authenticate()
S
62 4 13
Pardot_Settings::get_admin_page_link()
S
60 4 11
Pardot_Plugin::set_cache()
S
63 4 11
Pardot_Settings::reset_settings()
S
55 3 22
Pardot_Settings::version_field()
S
58 3 17
Pardot_Settings::__construct()
S
60 3 13
Pardot_Plugin::get_forms_shortcode_select_html()
S
59 3 13
Pardot_API::_get_url()
S
60 3 13
Pardot_API::refresh_API_key()
S
53 2 24
_Pardot_Forms_Shortcode_Popup::get_body_inner_html()
S
54 2 23
pardot_dc_async_script()
S
66 3 8
Pardot_API::SimpleXMLElement_to_stdClass()
S
63 3 10
Pardot_Plugin::get_cache()
S
64 3 10
Pardot_API::__construct()
S
76 3 4
Pardot_API::has_auth()
S
78 3 3
Pardot_Settings::retrieve_api_error()
S
66 3 8
Pardot_API::get_account()
S
64 3 10
Pardot_Plugin::wp_ajax_delete_asset_html_transient()
S
64 3 10
Pardot_Plugin::dynamic_content_shortcode()
S
71 3 5
Pardot_Plugin::wp_ajax_get_pardot_forms_shortcode_select_html()
S
59 2 14
Pardot_Plugin::wp_ajax_get_pardot_dynamicContent_shortcode_select_html()
S
59 2 14
Pardot_Forms_Widget::update()
S
62 2 12
Pardot_Dynamic_Content_Widget::update()
S
62 2 12
Pardot_Settings::client_secret_field()
S
62 2 12
Pardot_Plugin::get_dynamicContents_shortcode_select_html()
S
60 2 12
Pardot_Settings::https_field()
S
63 2 11
Pardot_Settings::submit_field()
S
55 1 23
Pardot_Settings::settings_page()
S
57 1 16
the_pardot_tracking_js()
S
69 2 7
Pardot_Plugin::legacy_clear_cache()
S
67 2 7
PardotCrypto::decrypt_openssl_aes256gcm()
S
66 2 8
Pardot_Settings::pardot_chosen_enqueue()
S
67 2 7
Pardot_Settings::pardot_chosen_init()
S
67 1 15
Pardot_Plugin::__construct()
S
69 2 6
Pardot_Plugin::get_saved_transient_keys()
S
67 2 8
Pardot_Settings::get_empty_settings()
S
65 2 9
PardotCrypto::gen_aes256_key()
S
64 2 10
Pardot_Settings::get_setting()
S
66 2 8
Pardot_API::_get_version()
S
70 2 7
Pardot_Plugin::form_shortcode()
S
74 2 4
Pardot_Settings::get_api_key()
S
79 2 3
Pardot_Plugin::get_api()
S
70 2 6
Pardot_Plugin::save_transient_key()
S
63 2 10
Pardot_Plugin::save_cache_key()
S
63 2 10
pardot_form_block_callback()
S
67 2 8
pardot_dynamic_content_block_callback()
S
67 2 8
Pardot_Forms_Widget::on_load()
S
68 2 7
Pardot_Plugin::get_saved_cache_keys()
S
67 2 8
PardotCrypto::set_key()
S
69 2 7
Pardot_Settings::business_unit_id_field()
S
61 1 13
Pardot_Settings::client_id_field()
S
61 1 13
Pardot_Plugin::init()
S
63 1 11
Pardot_Plugin::mce_buttons()
S
76 1 4
Pardot_Dynamic_Content_Widget::on_load()
S
79 1 3
Pardot_Plugin::wp_ajax_popup_reset_cache()
S
75 1 5
Pardot_Dynamic_Content_Widget::__construct()
S
66 1 8
Pardot_Plugin::self()
S
81 1 3
Pardot_Forms_Widget::wp_head()
S
70 1 7
pardot_settings_instantiate()
S
83 1 3
Pardot_Settings::admin_menu()
S
74 1 4
Pardot_Settings::pardot_decrypt()
S
75 1 4
Pardot_Plugin::plugin_action_links()
S
77 1 4
get_pardot_forms()
S
81 1 3
Pardot_Plugin::mce_external_plugins()
S
75 1 4
Pardot_API::get_auth()
S
68 1 8
Pardot_Forms_Widget::__construct()
S
66 1 8
Pardot_Settings::get_admin_page_url()
S
79 1 3
Pardot_Plugin::wp_footer()
S
79 1 4
Pardot_Plugin::call_api()
S
72 1 5
Pardot_Plugin::get_forms()
S
79 1 3
Pardot_Settings::pardot_encrypt()
S
75 1 4
remove_pardot_wp_footer()
S
80 1 3
Pardot_Plugin::get_dynamicContent()
S
79 1 3
_Pardot_Forms_Shortcode_Popup::load_js()
S
66 1 8
Pardot_Forms_Widget::widgets_init()
S
81 1 3
Pardot_Settings::create_code_verifier()
S
72 1 5
_Pardot_Forms_Shortcode_Popup::get_dialog_html()
S
67 1 8
PardotCrypto::get_key()
S
80 1 3
Pardot_Dynamic_Content_Widget::widgets_init()
S
81 1 3
get_pardot_api_key()
S
81 1 3
PardotCrypto::gen_sodium_key()
S
76 1 4
get_pardot_dynamic_content()
S
81 1 3
Pardot_Settings::set_setting()
S
72 1 5
Pardot_Settings::base64url_encode()
S
70 1 6
Pardot_Settings::user_account_section()
S
75 1 4
PardotCrypto::decrypt_sodium()
S
78 1 3
Pardot_Plugin::delete_form_html_transient()
S
79 1 3
Pardot_Plugin::get_api_key()
S
80 1 3
_Pardot_Forms_Shortcode_Popup::__construct()
S
73 1 5
Pardot_Plugin::delete_dc_html_transient()
S
79 1 3
Pardot_Settings::authenticate()
S
80 1 3
Pardot_API::is_authenticated()
S
80 1 3
_Pardot_Forms_Shortcode_Popup::load_css()
S
75 1 4
Pardot_Plugin::get_account()
S
79 1 3
Pardot_Settings::_get_html_name()
S
79 1 3
shortcode_exists()
S
76 1 4
Pardot_Plugin::plugins_loaded()
S
78 1 3
get_pardot_account()
S
81 1 3
Pardot_Settings::self()
S
81 1 3
Pardot_Settings::is_authenticated()
S
80 1 3
Pardot_Settings::clear_setting()
S
79 1 3
get_pardot_campaigns()
S
81 1 3
Pardot_Settings::extract_auth_args()
S
77 1 3
Pardot_Plugin::get_campaigns()
S
79 1 3
PardotCrypto::logError()
S
68 1 7