Freemius D

Total Complexity 1,413
Dependencies 33
Dependents 5
Total lines 11,614
Lines of code 5,799
Logical lines of code 2,802
Comment lines 3,987
Methods 357
Properties 48

Methods 357

Method Rating Maintainability Complexity Lines of code
_sync_plugin_license()
D
20
50 219
dynamic_init()
D
26
45 142
_handle_account_edits()
D
25
36 164
opt_in()
C
31 27 111
_add_trial_notice()
C
33 25 96
_add_connectivity_issue_message()
B
28
12 176
setup_account()
B
37 18 73
_fetch_licenses()
B
41 17 55
override_plugin_menu_with_activation()
B
40 15 63
_load_account()
B
42 16 48
get_themes_data_for_api()
A
38 14 74
parse_settings()
A
37 14 72
get_plugins_data_for_api()
A
39 14 69
_admin_init_action()
A
41 14 59
_activate_license()
A
39 13 65
add_submenu_items()
A
39 12 74
send_install_update()
A
45 14 42
_activate_plugin_event_hook()
A
44 14 41
_get_uninstall_reasons()
A
33 7 126
_add_tracking_links()
A
44 12 49
has_api_connectivity()
A
51 13 26
_sync_addon_license()
A
42 10 52
_get_admin_page_url()
A
47 11 35
should_run_connectivity_test()
A
50 11 29
get_plugin_slug()
A
52 11 26
deactivate_premium_only_addon_without_license()
A
48 10 35
_version_updates_handler()
A
49 10 34
_modify_plugin_action_links_hook()
A
48 10 32
start_trial()
A
42 8 61
send_email()
A
49 10 31
embed_submenu_items()
A
45 9 44
is_trial_plan()
A
50 9 29
_register_hooks()
A
45 8 42
track_event()
A
51 9 25
_activate_license_ajax_action()
A
46 8 40
should_stop_execution()
A
54 9 23
is_ajax_action_static()
A
53 9 22
_resend_license_key_ajax_action()
A
47 8 35
_cancel_trial()
A
44 7 50
_uninstall_plugin_event()
A
50 8 28
_find_caller_plugin_file()
A
52 8 27
get_email_sections()
A
37 4 84
get_opt_in_params()
A
42 6 53
is_ajax_action()
A
55 8 20
_activate_account()
A
47 7 33
_downgrade_site()
A
48 7 32
_include_plugins_in_auto_update()
A
55 8 17
get_install_data_for_api()
S
50 7 28
_deactivate_license()
S
45 6 41
store_connectivity_info()
S
52 7 25
get_after_plugin_activation_redirect_url()
S
53 7 25
is_plan()
S
53 7 24
install_with_current_user()
S
46 6 39
__construct()
S
47 6 35
_email_about_firewall_issue()
S
44 5 49
add_submenu_item()
S
49 6 33
_fetch_latest_version()
S
58 7 15
_handle_account_user_sync()
S
49 6 30
_deactivate_plugin_hook()
S
51 6 28
order_sub_submenu_items()
S
51 6 27
_update_site_license()
S
52 6 25
_debug_page_actions()
S
52 6 23
_account_page_load()
S
53 6 23
allow_tracking()
S
54 6 23
stop_tracking()
S
54 6 23
_data_migration()
S
56 6 20
sync_addons()
S
55 6 19
_get_latest_version_endpoint()
S
55 6 18
add_debug_page()
S
50 5 31
get_anonymous_id()
S
57 6 16
is_addon_connected()
S
58 6 16
_redirect_on_clicked_menu_link()
S
58 6 15
_get_available_premium_license()
S
61 6 14
check_updates()
S
51 5 28
add_submenu_link_item()
S
51 5 28
has_installed_addons()
S
60 6 13
_fetch_newer_version()
S
61 6 11
_start_trial_ajax_action()
S
53 5 25
_add_deactivation_feedback_dialog_box()
S
52 5 25
_add_upgrade_action_link()
S
55 5 23
get_complete_upgrade_instructions()
S
53 5 23
_uninstall_plugin_hook()
S
55 5 21
_plugin_code_type_changed()
S
49 4 35
_add_license_action_link()
S
55 5 20
_install_with_new_user()
S
56 5 20
_sync_cron()
S
58 5 18
_register_account_hooks()
S
58 5 17
_add_license_activation()
S
59 5 16
_get_license_by_id()
S
60 5 15
_get_debug_log()
S
65 6 8
is_activation_mode()
S
67 6 8
_sync_site_subscription()
S
59 5 15
_fetch_site_license_subscription()
S
58 5 14
is_paying()
S
61 5 14
get_plan_by_name()
S
61 5 12
get_account_addons()
S
61 5 12
_get_plan_by_id()
S
62 5 12
get_installed_addons()
S
62 5 11
set_pending_confirmation()
S
56 4 20
get_plugin_name()
S
58 4 16
_add_default_submenu_items()
S
58 4 16
contact_url()
S
59 4 15
_fetch_payments()
S
58 4 15
current_page_url()
S
58 4 15
get_all_plugins()
S
58 4 15
_activate_addon_account()
S
50 3 28
_stop_tracking_callback()
S
60 4 13
_get_user_by_email()
S
61 4 13
is_anonymous()
S
62 4 13
_allow_tracking_callback()
S
60 4 13
get_addon_by_slug()
S
62 4 12
_update_licenses()
S
61 4 12
_fetch_plugin_plans()
S
60 4 12
get_addon()
S
62 4 12
store_file_slug_map()
S
62 4 12
is_free_plan()
S
63 4 12
is_on()
S
64 4 11
add_menu_action()
S
64 4 11
delete_account_event()
S
54 3 21
verify_email()
S
55 3 20
_submit_uninstall_reason_action()
S
56 3 18
_addons_page_load()
S
56 3 18
_update_billing_ajax_action()
S
57 3 16
_add_pending_activation_notice()
S
58 3 16
get_account_url()
S
64 4 9
_install_with_current_user()
S
64 4 10
get_update()
S
64 4 9
get_logger()
S
76 4 3
get_addons()
S
64 4 10
has_active_valid_license()
S
68 4 8
add_plugin_action_link()
S
59 3 15
get_options_manager()
S
76 4 3
sync_install()
S
60 3 14
_store_licenses()
S
60 3 13
get_api_site_scope()
S
62 3 13
get_api_user_scope()
S
62 3 13
_store_update()
S
61 3 12
turn_on()
S
62 3 12
_sync_licenses()
S
63 3 11
get_addon_basename()
S
63 3 11
_sync_license()
S
62 3 11
clear_module_main_file_cache()
S
63 3 11
_add_connect_pointer_script()
S
50 1 40
complete_change_owner()
S
56 2 19
ping()
S
56 2 19
update_email()
S
56 2 18
schedule_sync_cron()
S
57 2 17
reconnect_locally()
S
67 3 9
_can_download_premium()
S
75 3 4
is_array_instanceof()
S
77 3 3
update_user_name()
S
58 2 15
has_trial_plan()
S
66 3 9
is_paid_trial()
S
69 3 7
_toggle_debug_mode()
S
67 3 7
_prepare_admin_menu()
S
66 3 9
_enrich_site_plan()
S
64 3 10
has_active_license()
S
70 3 7
is_user_in_admin()
S
79 3 3
get_top_level_menu_capability()
S
64 3 10
remove_sdk_reference()
S
64 3 10
_fetch_site_plan()
S
64 3 9
has_features_enabled_license()
S
70 3 7
instance()
S
64 3 10
_enrich_site_trial_plan()
S
64 3 10
find_slug_by_basename()
S
67 3 7
get_numeric_option()
S
77 3 3
_enqueue_common_css()
S
73 3 5
get_bool_option()
S
77 3 3
get_instance_by_id()
S
67 3 8
_load_required_static()
S
59 2 14
add_ajax_action_static()
S
60 2 14
_retry_connectivity_test()
S
61 2 13
checkout_url()
S
62 2 12
_store_site()
S
61 2 12
get_api_plugin_scope()
S
63 2 12
_set_account()
S
63 2 11
get_plugin_data()
S
64 2 11
_get_sync_license_url()
S
64 2 11
_load_textdomain()
S
64 2 11
install_with_new_user()
S
56 1 19
_debug_page_render()
S
57 1 17
_encrypt_entity()
S
66 2 8
_decrypt()
S
72 2 6
_encrypt()
S
72 2 6
_decrypt_entity()
S
66 2 8
is_ssl_and_plan()
S
78 2 3
_account_page_render()
S
64 2 9
is_permission_requested()
S
78 2 3
get_api_site_or_plugin_scope()
S
75 2 5
get_after_activation_url()
S
67 2 9
_pricing_page_render()
S
65 2 9
_get_latest_download_local_url()
S
68 2 7
_is_addon_id()
S
78 2 3
can_use_premium_code()
S
80 2 3
_redirect_on_activation_hook()
S
72 2 6
_fetch_billing()
S
67 2 8
is_plugin_upgrade_mode()
S
75 2 5
_delete_account_addons()
S
65 2 9
_store_user()
S
64 2 10
shoot_ajax_failure()
S
68 2 7
get_action_tag_static()
S
77 2 3
is_sdk_upgrade_mode()
S
75 2 5
get_top_level_menu_slug()
S
74 2 5
_store_plans()
S
63 2 10
has_paid_plan()
S
77 2 4
is_cron()
S
79 2 3
is_sync_executed()
S
71 2 6
get_all_account_addons()
S
68 2 7
get_all_addons()
S
68 2 7
get_all_updates()
S
68 2 7
is_addon()
S
79 2 3
next_install_sync()
S
69 2 7
get_all_plans()
S
68 2 7
get_all_licenses()
S
68 2 7
is_payments_sandbox()
S
79 2 3
get_all_sites()
S
68 2 7
get_all_users()
S
69 2 7
get_plugin_folder_name()
S
66 2 9
run_manual_sync()
S
65 2 9
is_sync_cron_on()
S
73 2 4
has_account_addons()
S
75 2 4
get_parent_id()
S
75 2 5
clear_sync_cron()
S
67 2 8
require_pluggable_essentials()
S
73 2 5
require_plugin_essentials()
S
70 2 6
next_sync_cron()
S
69 2 7
update_plugin_version_event()
S
70 2 7
is_ajax()
S
79 2 3
connect_again()
S
70 2 7
is_install_sync_scheduled()
S
73 2 4
is_plugin_new_install()
S
77 2 4
_delete_licenses()
S
65 2 9
_delete_site()
S
68 2 7
_is_plugin_page()
S
77 2 4
is_tracking_allowed()
S
79 2 3
clear_install_sync_cron()
S
67 2 8
_after_code_type_change()
S
69 2 7
has_any_license()
S
78 2 3
has_instance()
S
71 2 5
get_trial_plan()
S
70 2 7
_plugins_loaded()
S
71 2 6
get_instance_by_file()
S
70 2 6
is_trial_utilized()
S
70 2 7
is_trial()
S
70 2 7
_get_subscription()
S
75 2 5
get_active_plugins()
S
64 2 10
get_plan()
S
75 2 5
is_parent_in_activation()
S
69 2 7
get_option()
S
78 2 3
pricing_url()
S
64 2 10
get_addon_instance()
S
73 2 5
_sync_plans()
S
66 2 9
schedule_install_sync()
S
60 1 14
hook_plugin_action_links()
S
61 1 13
init_change_owner()
S
61 1 12
unregister_uninstall_hook()
S
70 1 6
is_api_result_entity()
S
80 1 3
set_sdk_upgrade_complete()
S
82 1 3
get_latest_download_link()
S
70 1 7
last_sync_cron()
S
77 1 4
has_purchased_before()
S
81 1 3
_get_invoice_api_url()
S
72 1 6
is_agency()
S
81 1 3
is_api_error()
S
80 1 3
is_developer()
S
81 1 3
get_latest_download_api_url()
S
71 1 6
get_parent_instance()
S
80 1 3
download_latest_directly()
S
77 1 4
last_install_sync()
S
77 1 4
is_api_result_object()
S
80 1 3
set_plugin_upgrade_complete()
S
82 1 3
get_reconnect_url()
S
72 1 5
add_sticky_admin_message()
S
79 1 3
_add_firewall_issues_javascript()
S
76 1 4
_fix_start_trial_menu_item_url()
S
75 1 4
_check_for_trial_plans()
S
80 1 3
is_addon_activated()
S
80 1 3
is_addon_installed()
S
78 1 3
init()
S
66 1 9
init_addon()
S
82 1 3
_clean_admin_content_section()
S
80 1 3
_clean_admin_content_section_hook()
S
77 1 4
_contact_page_render()
S
73 1 5
init_sandbox()
S
75 1 4
add_admin_message()
S
80 1 3
_addons_page_render()
S
72 1 5
_connect_page_render()
S
72 1 5
is_live()
S
83 1 3
is_pending_activation()
S
80 1 3
_get_current_wp_user()
S
77 1 4
is_org_repo_compliant()
S
83 1 3
get_activation_url()
S
78 1 3
is_parent_plugin_installed()
S
80 1 3
hook_callback_to_sync_cron()
S
79 1 3
_hide_admin_notices()
S
71 1 6
skip_connection()
S
67 1 8
hook_callback_to_install_sync()
S
79 1 3
_add_license_activation_dialog_box()
S
69 1 7
get_action_tag()
S
79 1 3
is_registered()
S
81 1 3
get_plugin()
S
83 1 3
get_user()
S
83 1 3
get_site()
S
83 1 3
is_premium()
S
83 1 3
get_plan_id()
S
83 1 3
get_plan_title()
S
83 1 3
get_menu_slug()
S
82 1 3
_has_premium_license()
S
73 1 5
_get_license()
S
83 1 3
has_free_plan()
S
81 1 3
_add_optout_dialog()
S
71 1 6
get_ajax_action_tag_static()
S
78 1 3
is_plugins_page()
S
76 1 4
get_upgrade_url()
S
80 1 3
get_trial_url()
S
80 1 3
addon_checkout_url()
S
71 1 6
has_addons()
S
78 1 4
enable_anonymous()
S
83 1 3
is_enable_anonymous()
S
83 1 3
addon_url()
S
74 1 5
is_only_premium()
S
83 1 3
get_account_tab_url()
S
75 1 4
has_premium_version()
S
83 1 3
is_feature_supported()
S
81 1 3
is_ssl()
S
83 1 3
get_ajax_action_tag()
S
79 1 3
do_action()
S
67 1 8
_run_sync_install()
S
73 1 5
get_public_key()
S
83 1 3
is_plugin_activation()
S
78 1 3
_enqueue_connect_essentials()
S
68 1 7
_delete_plans()
S
70 1 6
is_first_freemius_powered_version()
S
81 1 3
set_anonymous_mode()
S
67 1 8
reset_anonymous_mode()
S
81 1 3
track_event_once()
S
78 1 3
_update_plan()
S
74 1 5
premium_plugin_basename()
S
78 1 3
get_slug()
S
83 1 3
get_id()
S
83 1 3
get_sdk_version()
S
83 1 3
get_secret_key()
S
83 1 3
add_action()
S
75 1 4
_store_account()
S
68 1 8
_store_account_addons()
S
70 1 6
has_secret_key()
S
80 1 3
_store_addons()
S
70 1 6
get_plugin_version()
S
70 1 6
get_plugin_basename()
S
83 1 3
override_i18n()
S
80 1 3
has_filter()
S
76 1 4
add_filter()
S
75 1 4
apply_filters()
S
70 1 6
shoot_ajax_success()
S
81 1 3
shoot_ajax_response()
S
81 1 3
add_ajax_action()
S
67 1 9
is_business()
S
81 1 3