Code Analysis: Headers Security Advanced & HSTS WP 5.0.44

Function Rating Maintainability Complexity Lines of code
hsts_plugin_settings_page()
B
25
2 307
hsts_plugin_activate()
S
56 7 21
hsts_plugin_get_headers()
S
49 6 30
hsts_plugin_update_htaccess()
S
51 5 28
hsts_plugin_cleanup_htaccess()
S
57 4 18
hsts_plugin_get_x_frame_options_header()
S
62 4 11
hsts_plugin_get_writable_htaccess_path()
S
68 4 7
hsts_plugin_get_hsts_header()
S
61 3 13
hsts_plugin_get_dashboard_widget_contents()
S
50 1 42
hsts_plugin_add_plugin_action_links()
S
63 3 11
hsts_plugin_get_csp_header()
S
63 3 10
hsts_plugin_get_csp_report_only_header()
S
64 2 10
hsts_plugin_get_permissions_policy_header()
S
75 2 4
hsts_plugin_flush_rewrite_rules()
S
72 2 6
hsts_plugin_get_filesystem()
S
70 2 7
hsts_plugin_settings_init()
S
60 1 14
hsts_plugin_deactivate()
S
64 1 11
hsts_plugin_add_dashboard_widget()
S
70 1 7
hsts_plugin_add_admin_style()
S
75 1 4
hsts_plugin_delete_old_options()
S
82 1 3
hsts_plugin_settings()
S
67 1 9