diff --git a/phpunit/bh-wp-autologin-urls.php.html b/phpunit/bh-wp-autologin-urls.php.html index d93735b..6e8f5d9 100644 --- a/phpunit/bh-wp-autologin-urls.php.html +++ b/phpunit/bh-wp-autologin-urls.php.html @@ -105,7 +105,7 @@ 10 * Plugin Name:       Magic Emails & Autologin URLs 11 * Plugin URI:        https://wordpress.org/BrianHenryIE/bh-wp-autologin-urls 12 * Description:       Log in users via emails sent from WordPress. - 13 * Version:           2.4.1 + 13 * Version:           2.4.2 14 * Tested up to:      6.4 15 * Requires PHP:      7.4 16 * Author:            BrianHenryIE @@ -138,7 +138,7 @@ 43/** 44 * Currently plugin version. 45 */ - 46define( 'BH_WP_AUTOLOGIN_URLS_VERSION', '2.4.1' ); + 46define( 'BH_WP_AUTOLOGIN_URLS_VERSION', '2.4.2' ); 47define( 'BH_WP_AUTOLOGIN_URLS_BASENAME', plugin_basename( __FILE__ ) ); 48 49/** @@ -178,7 +178,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/dashboard.html b/phpunit/dashboard.html index 3b65557..f0ab867 100644 --- a/phpunit/dashboard.html +++ b/phpunit/dashboard.html @@ -58,28 +58,31 @@

Insufficient Coverage

BrianHenryIE\WP_Autologin_URLs\Admin\Plugin_Installer0% - BrianHenryIE\WP_Autologin_URLs\Admin\User_Edit0% - BrianHenryIE\WP_Autologin_URLs\Admin\Users_List_Table0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo0% BrianHenryIE\WP_Autologin_URLs\WP_Includes\REST_API0% + BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login0% BrianHenryIE\WP_Autologin_URLs\WP_Includes\CLI0% + BrianHenryIE\WP_Autologin_URLs\WooCommerce\Checkout0% BrianHenryIE\WP_Autologin_URLs\Logger\Klaviyo_Logs0% - BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin1% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Autologin_URLs0% + BrianHenryIE\WP_Autologin_URLs\Admin\User_Edit0% + BrianHenryIE\WP_Autologin_URLs\Admin\Users_List_Table0% + BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store2% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Checkbox_Setting_Element_Abstract4% BrianHenryIE\WP_Autologin_URLs\API\API14% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Log_Level40% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Klaviyo_Private_Key58% BrianHenryIE\WP_Autologin_URLs\Login\Login_Ajax65% - BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store65% BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\Transient_Data_Store66% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Enable_Magic_Links66% - BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet67% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Page69% - BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login70% + BrianHenryIE\WP_Autologin_URLs\WooCommerce\Admin_Order_UI70% BrianHenryIE\WP_Autologin_URLs\BH_WP_Autologin_URLs70% BrianHenryIE\WP_Autologin_URLs\WP_Includes\WP_Mail75% BrianHenryIE\WP_Autologin_URLs\API\Integrations\User_Finder_Factory81% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Use_WP_Login81% - BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo82% BrianHenryIE\WP_Autologin_URLs\API\Settings83% @@ -98,27 +101,30 @@

Project Risks

BrianHenryIE\WP_Autologin_URLs\API\API1424 + BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login380 BrianHenryIE\WP_Autologin_URLs\WP_Includes\REST_API272 BrianHenryIE\WP_Autologin_URLs\Admin\Users_List_Table210 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo182 + BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store170 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Autologin_URLs132 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet110 BrianHenryIE\WP_Autologin_URLs\WP_Includes\CLI90 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin85 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin90 + BrianHenryIE\WP_Autologin_URLs\WooCommerce\Checkout72 BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Checkbox_Setting_Element_Abstract37 BrianHenryIE\WP_Autologin_URLs\Admin\User_Edit30 - BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login28 BrianHenryIE\WP_Autologin_URLs\BH_WP_Autologin_URLs24 - BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store19 BrianHenryIE\WP_Autologin_URLs\WP_Includes\WP_Mail19 BrianHenryIE\WP_Autologin_URLs\API\Settings18 BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Log_Level17 + BrianHenryIE\WP_Autologin_URLs\WooCommerce\Admin_Order_UI17 BrianHenryIE\WP_Autologin_URLs\API\Integrations\User_Finder_Factory15 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo13 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet13 - BrianHenryIE\WP_Autologin_URLs\Admin\Plugin_Installer12 BrianHenryIE\WP_Autologin_URLs\Logger\Klaviyo_Logs12 + BrianHenryIE\WP_Autologin_URLs\Admin\Plugin_Installer12 BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Page11 BrianHenryIE\WP_Autologin_URLs\Login\Login_Ajax9 - BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Enable_Magic_Links7 BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\Transient_Data_Store7 + BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Enable_Magic_Links7 BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Use_WP_Login4 @@ -158,71 +164,82 @@

Insufficient Coverage

__construct0% - send_magic_link0% - get_klaviyo_private_api_key0% - is_magic_link_enabled0% - get_item_schema0% + __construct0% + define_logger_hooks0% + define_wp_mail_hooks0% + define_plugin_installer_hooks0% + setup_api0% + get_wp_user_array0% + is_querystring_valid0% + get_wp_user_array0% + link_to_klaviyo_profile_search0% + is_querystring_valid0% + __construct0% + get_user_data0% + get_wp_user_array0% + is_querystring_valid0% + __construct0% + define_cli_hooks0% + __construct0% add_settings_link0% + __construct0% + get_args_schema0% + get_item_schema0% prepare_item_for_response0% - delete_expired_codes0% create_item_permissions_check0% create_item0% - __construct0% - __construct0% - __construct0% - get_wp_user_array0% register_routes0% - setup_api0% - define_plugin_installer_hooks0% - define_wp_mail_hooks0% - define_logger_hooks0% - define_cli_hooks0% - link_to_klaviyo_profile_search0% + maybe_redirect0% + add_to_payment_url0% + process0% + __construct0% + send_magic_link0% add_autologin_to_url0% - __construct0% - get_should_use_wp_login0% - send_magic_link0% - get_ip_address0% - should_allow_login_attempt0% - display_plugin_admin_page0% - __construct0% - make_password_available_on_user_page0% - __construct0% - add_magic_email_link0% - send_magic_email_link0% - print_admin_notice0% + __construct0% + prefill_checkout_fields0% + __construct0% + get_wp_user_array0% + is_querystring_valid0% + __construct0% + get_wp_user0% print_field_callback0% sanitize_callback0% get_is_checked_value0% get_is_not_checked_value0% - get_args_schema0% + add_magic_email_link0% print_field_callback0% sanitize_callback0% print_field_callback0% sanitize_callback0% get_is_checked_value0% + __construct0% + delete_expired_codes0% get_is_not_checked_value0% add_autologin_to_message0% - get_wp_user0% add_autologin_to_url0% + send_magic_email_link0% delete_expired_codes0% - __construct0% - save37% + should_allow_login_attempt0% + make_password_available_on_user_page0% + get_ip_address0% + send_magic_link0% + get_should_use_wp_login0% + __construct0% + get_klaviyo_private_api_key0% + is_magic_link_enabled0% + create_db0% + save0% + get_value_for_code0% + delete_expired_codes0% + display_plugin_admin_page0% + print_admin_notice0% email_magic_link61% - maybe_redirect64% - get_plugin_version66% enqueue_styles66% - get_wp_user_array68% - process70% + get_plugin_version66% add_autologin_links_to_email74% - add_to_payment_url75% - get_wp_user_array75% - delete_expired_codes75% __construct76% get_user_finder79% - get_user_data83% get_value_for_code85% - get_value_for_code86% @@ -239,46 +256,51 @@

Project Risks

+ process156 add_autologin_to_url110 + get_wp_user_array90 get_wp_user90 get_wp_user_array56 + get_wp_user_array56 + prefill_checkout_fields56 + maybe_redirect42 send_magic_email_link42 + get_user_data42 send_magic_link42 get_ip_address42 add_autologin_to_url30 - create_item_permissions_check30 + get_value_for_code30 create_item30 + create_item_permissions_check30 should_allow_login_attempt20 - make_password_available_on_user_page20 - add_magic_email_link20 display_plugin_admin_page20 + add_magic_email_link20 + make_password_available_on_user_page20 + get_wp_user_array20 add_autologin_links_to_email18 - process15 get_user_finder14 - link_to_klaviyo_profile_search12 + send_magic_link12 + save12 sanitize_callback12 print_field_callback12 - send_magic_link12 sanitize_callback12 print_admin_notice12 define_cli_hooks12 - get_wp_user_array8 + link_to_klaviyo_profile_search12 email_magic_link8 - maybe_redirect7 - get_user_data6 + add_to_payment_url6 prepare_item_for_response6 add_settings_link6 + is_querystring_valid6 + __construct6 + delete_expired_codes6 + create_db6 add_autologin_to_message6 print_field_callback6 - save5 - get_value_for_code5 - get_wp_user_array4 __construct4 get_value_for_code3 enqueue_styles2 get_plugin_version2 - add_to_payment_url2 - delete_expired_codes2 @@ -288,7 +310,7 @@

Project Risks

@@ -307,7 +329,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([6,2,1,0,0,1,1,6,3,4,5,7], "Class Coverage")) + .datum(getCoverageDistributionData([12,2,1,0,0,1,1,4,3,3,2,7], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -325,7 +347,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([50,0,0,0,1,0,0,5,7,3,6,73], "Method Coverage")) + .datum(getCoverageDistributionData([70,0,0,0,0,0,0,3,3,1,2,66], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -375,7 +397,7 @@

Project Risks

chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page<\/a>"],[69.23076923076923,9,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit<\/a>"],[0,14,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table<\/a>"],[100,7,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable<\/a>"],[4.3478260869565215,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links<\/a>"],[100,5,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age<\/a>"],[58.333333333333336,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key<\/a>"],[40,7,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract<\/a>"],[81.81818181818183,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login<\/a>"],[14.556962025316455,47,"BrianHenryIE\\WP_Autologin_URLs\\API\\API<\/a>"],[83.33333333333334,17,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings<\/a>"],[65.9090909090909,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store<\/a>"],[95.23809523809523,11,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs<\/a>"],[82.25806451612904,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo<\/a>"],[67.64705882352942,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet<\/a>"],[1.694915254237288,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin<\/a>"],[81.08108108108108,14,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory<\/a>"],[70.88607594936708,17,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Logger\\Klaviyo_Logs<\/a>"],[65,7,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax<\/a>"],[90.47619047619048,5,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets<\/a>"],[95,13,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI<\/a>"],[93.18181818181817,8,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout<\/a>"],[94.73684210526315,3,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n<\/a>"],[70.51282051282051,19,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login<\/a>"],[0,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API<\/a>"],[75.75757575757575,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page<\/a>"],[69.23076923076923,9,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit<\/a>"],[0,14,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table<\/a>"],[100,7,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable<\/a>"],[4.3478260869565215,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links<\/a>"],[100,5,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age<\/a>"],[58.333333333333336,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key<\/a>"],[40,7,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract<\/a>"],[81.81818181818183,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login<\/a>"],[14.556962025316455,47,"BrianHenryIE\\WP_Autologin_URLs\\API\\API<\/a>"],[83.33333333333334,17,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings<\/a>"],[2.272727272727273,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store<\/a>"],[0,11,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs<\/a>"],[0,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo<\/a>"],[0,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin<\/a>"],[81.08108108108108,14,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory<\/a>"],[70.88607594936708,17,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Logger\\Klaviyo_Logs<\/a>"],[65,7,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax<\/a>"],[90.47619047619048,5,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets<\/a>"],[70,13,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI<\/a>"],[0,8,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout<\/a>"],[94.73684210526315,3,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n<\/a>"],[0,19,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login<\/a>"],[0,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API<\/a>"],[75.75757575757575,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -399,7 +421,7 @@

Project Risks

chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,1,"
BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::enqueue_styles<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::enqueue_scripts<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer::add_settings_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::action_links<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::row_meta<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::add_settings_page<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::display_plugin_admin_page<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::setup_sections<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::setup_fields<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit::__construct<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit::make_password_available_on_user_page<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::__construct<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::add_magic_email_link<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::send_magic_email_link<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::print_admin_notice<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::print_field_callback<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::__construct<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::get_is_checked_value<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::get_is_not_checked_value<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::print_field_callback<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::sanitize_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::get_is_checked_value<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::get_is_not_checked_value<\/a>"],[76.92307692307693,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::print_field_callback<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::print_field_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::__construct<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::print_field_callback<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::add_settings_field<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::register_setting<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::print_field_callback<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::sanitize_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::get_is_checked_value<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::get_is_not_checked_value<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_message<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_wp_user<\/a>"],[0,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_url<\/a>"],[100,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_code<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_password<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::verify_autologin_password<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::delete_expired_codes<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::should_allow_login_attempt<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_ip_address<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_expiry_age<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_add_autologin_for_admins_is_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_array<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_dictionary<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_should_use_wp_login<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_log_level<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_slug<\/a>"],[66.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_version<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_name<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_basename<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_klaviyo_private_api_key<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::is_magic_link_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::__construct<\/a>"],[91.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::create_db<\/a>"],[37.83783783783784,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::save<\/a>"],[86.20689655172413,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::get_value_for_code<\/a>"],[75,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::save<\/a>"],[85.71428571428571,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::get_value_for_code<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::is_querystring_valid<\/a>"],[94.44444444444444,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::get_wp_user_array<\/a>"],[90,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::is_querystring_valid<\/a>"],[75,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_wp_user_array<\/a>"],[83.87096774193549,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_user_data<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::is_querystring_valid<\/a>"],[68.75,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::get_wp_user_array<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::get_wp_user_array<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::__construct<\/a>"],[79.41176470588235,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::get_user_finder<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::set_locale<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::setup_api<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_admin_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_login_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_plugins_page_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_plugin_installer_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_wp_mail_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_wp_login_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_cron_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_woocommerce_admin_order_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_woocommerce_login_form_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_logger_hooks<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_cli_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_rest_api_hooks<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Logger\\Klaviyo_Logs::link_to_klaviyo_profile_search<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax::__construct<\/a>"],[61.111111111111114,6,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax::email_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::__construct<\/a>"],[66.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::enqueue_styles<\/a>"],[94.11764705882352,2,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::enqueue_scripts<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::__construct<\/a>"],[75,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::add_to_payment_url<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::remove_arrow_from_link_text<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_script<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_styles<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::is_on_shop_order_edit_screen<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::__construct<\/a>"],[95.34883720930233,7,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::prefill_checkout_fields<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::__construct<\/a>"],[94.44444444444444,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::enqueue_script<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::__construct<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::add_autologin_to_url<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::schedule_job<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n::load_plugin_textdomain<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::__construct<\/a>"],[70,12,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::process<\/a>"],[64.28571428571429,6,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::maybe_redirect<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::register_routes<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item_permissions_check<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::prepare_item_for_response<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_item_schema<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_args_schema<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::__construct<\/a>"],[74.19354838709677,15,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::add_autologin_links_to_email<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::enqueue_styles<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::enqueue_scripts<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer::add_settings_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::action_links<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::row_meta<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::add_settings_page<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::display_plugin_admin_page<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::setup_sections<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::setup_fields<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit::__construct<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit::make_password_available_on_user_page<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::__construct<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::add_magic_email_link<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::send_magic_email_link<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::print_admin_notice<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::print_field_callback<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::__construct<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::get_is_checked_value<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::get_is_not_checked_value<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::print_field_callback<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::sanitize_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::get_is_checked_value<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::get_is_not_checked_value<\/a>"],[76.92307692307693,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::print_field_callback<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::print_field_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::__construct<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::print_field_callback<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::add_settings_field<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::register_setting<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::print_field_callback<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::sanitize_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::get_is_checked_value<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::get_is_not_checked_value<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_message<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_wp_user<\/a>"],[0,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_url<\/a>"],[100,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_code<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_password<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::verify_autologin_password<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::delete_expired_codes<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::should_allow_login_attempt<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_ip_address<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_expiry_age<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_add_autologin_for_admins_is_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_array<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_dictionary<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_should_use_wp_login<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_log_level<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_slug<\/a>"],[66.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_version<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_name<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_basename<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_klaviyo_private_api_key<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::is_magic_link_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::create_db<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::save<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::get_value_for_code<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::save<\/a>"],[85.71428571428571,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::get_value_for_code<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::delete_expired_codes<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::is_querystring_valid<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::get_wp_user_array<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::is_querystring_valid<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_wp_user_array<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_user_data<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::get_wp_user_array<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::get_wp_user_array<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::__construct<\/a>"],[79.41176470588235,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::get_user_finder<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::set_locale<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::setup_api<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_admin_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_login_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_plugins_page_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_plugin_installer_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_wp_mail_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_wp_login_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_cron_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_woocommerce_admin_order_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_woocommerce_login_form_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_logger_hooks<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_cli_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_rest_api_hooks<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Logger\\Klaviyo_Logs::link_to_klaviyo_profile_search<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax::__construct<\/a>"],[61.111111111111114,6,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax::email_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::__construct<\/a>"],[66.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::enqueue_styles<\/a>"],[94.11764705882352,2,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::enqueue_scripts<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::add_to_payment_url<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::remove_arrow_from_link_text<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_script<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_styles<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::is_on_shop_order_edit_screen<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::__construct<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::prefill_checkout_fields<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::__construct<\/a>"],[94.44444444444444,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::enqueue_script<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::__construct<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::add_autologin_to_url<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::schedule_job<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n::load_plugin_textdomain<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::__construct<\/a>"],[0,12,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::process<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::maybe_redirect<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::register_routes<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item_permissions_check<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::prepare_item_for_response<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_item_schema<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_args_schema<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::__construct<\/a>"],[74.19354838709677,15,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::add_autologin_links_to_email<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/phpunit/index.html b/phpunit/index.html index 983b2cc..5298b7a 100644 --- a/phpunit/index.html +++ b/phpunit/index.html @@ -42,23 +42,23 @@ - Total -
-
- 52.97% covered (warning) + Total +
+
+ 33.02% covered (danger)
-
52.97%
-
669 / 1263
-
-
- 50.34% covered (warning) +
33.02%
+
417 / 1263
+
+
+ 45.52% covered (danger)
-
50.34%
-
73 / 145
+
45.52%
+
66 / 145
19.44% covered (danger) @@ -70,23 +70,23 @@ - src -
-
- 51.99% covered (warning) + src +
+
+ 31.09% covered (danger)
-
51.99%
-
627 / 1206
+
31.09%
+
375 / 1206
-
- 48.94% covered (danger) +
+ 43.97% covered (danger)
-
48.94%
-
69 / 141
+
43.97%
+
62 / 141
19.44% covered (danger) @@ -174,7 +174,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/class-admin-assets.php.html b/phpunit/src/admin/class-admin-assets.php.html index 4e351d7..2ac416d 100644 --- a/phpunit/src/admin/class-admin-assets.php.html +++ b/phpunit/src/admin/class-admin-assets.php.html @@ -242,7 +242,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/class-plugin-installer.php.html b/phpunit/src/admin/class-plugin-installer.php.html index 8d5849e..959838d 100644 --- a/phpunit/src/admin/class-plugin-installer.php.html +++ b/phpunit/src/admin/class-plugin-installer.php.html @@ -231,7 +231,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/class-plugins-page.php.html b/phpunit/src/admin/class-plugins-page.php.html index b1383fc..fe9bef3 100644 --- a/phpunit/src/admin/class-plugins-page.php.html +++ b/phpunit/src/admin/class-plugins-page.php.html @@ -262,7 +262,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/class-settings-page.php.html b/phpunit/src/admin/class-settings-page.php.html index 746a7ca..9259c6b 100644 --- a/phpunit/src/admin/class-settings-page.php.html +++ b/phpunit/src/admin/class-settings-page.php.html @@ -377,7 +377,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/class-user-edit.php.html b/phpunit/src/admin/class-user-edit.php.html index d12c57b..32d98aa 100644 --- a/phpunit/src/admin/class-user-edit.php.html +++ b/phpunit/src/admin/class-user-edit.php.html @@ -250,7 +250,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/class-users-list-table.php.html b/phpunit/src/admin/class-users-list-table.php.html index a90048f..5208fa8 100644 --- a/phpunit/src/admin/class-users-list-table.php.html +++ b/phpunit/src/admin/class-users-list-table.php.html @@ -341,7 +341,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/dashboard.html b/phpunit/src/admin/dashboard.html index 6de8296..98e7790 100644 --- a/phpunit/src/admin/dashboard.html +++ b/phpunit/src/admin/dashboard.html @@ -185,7 +185,7 @@

Project Risks

diff --git a/phpunit/src/admin/index.html b/phpunit/src/admin/index.html index 23a74a1..36b2f8d 100644 --- a/phpunit/src/admin/index.html +++ b/phpunit/src/admin/index.html @@ -280,7 +280,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/settings-fields/class-admin-enable.php.html b/phpunit/src/admin/settings-fields/class-admin-enable.php.html index e3f4316..3d7b4e7 100644 --- a/phpunit/src/admin/settings-fields/class-admin-enable.php.html +++ b/phpunit/src/admin/settings-fields/class-admin-enable.php.html @@ -261,7 +261,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/settings-fields/class-checkbox-setting-element-abstract.php.html b/phpunit/src/admin/settings-fields/class-checkbox-setting-element-abstract.php.html index 2792c8f..9215195 100644 --- a/phpunit/src/admin/settings-fields/class-checkbox-setting-element-abstract.php.html +++ b/phpunit/src/admin/settings-fields/class-checkbox-setting-element-abstract.php.html @@ -269,7 +269,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/settings-fields/class-enable-magic-links.php.html b/phpunit/src/admin/settings-fields/class-enable-magic-links.php.html index 10304b9..b6ab903 100644 --- a/phpunit/src/admin/settings-fields/class-enable-magic-links.php.html +++ b/phpunit/src/admin/settings-fields/class-enable-magic-links.php.html @@ -248,7 +248,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/settings-fields/class-expiry-age.php.html b/phpunit/src/admin/settings-fields/class-expiry-age.php.html index 77cc16f..8fc6771 100644 --- a/phpunit/src/admin/settings-fields/class-expiry-age.php.html +++ b/phpunit/src/admin/settings-fields/class-expiry-age.php.html @@ -275,7 +275,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/settings-fields/class-klaviyo-private-key.php.html b/phpunit/src/admin/settings-fields/class-klaviyo-private-key.php.html index a324aff..61dfa0f 100644 --- a/phpunit/src/admin/settings-fields/class-klaviyo-private-key.php.html +++ b/phpunit/src/admin/settings-fields/class-klaviyo-private-key.php.html @@ -250,7 +250,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/settings-fields/class-log-level.php.html b/phpunit/src/admin/settings-fields/class-log-level.php.html index 874221b..9818db7 100644 --- a/phpunit/src/admin/settings-fields/class-log-level.php.html +++ b/phpunit/src/admin/settings-fields/class-log-level.php.html @@ -280,7 +280,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/settings-fields/class-settings-section-element-abstract.php.html b/phpunit/src/admin/settings-fields/class-settings-section-element-abstract.php.html index a334a2e..dd3d89e 100644 --- a/phpunit/src/admin/settings-fields/class-settings-section-element-abstract.php.html +++ b/phpunit/src/admin/settings-fields/class-settings-section-element-abstract.php.html @@ -341,7 +341,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/settings-fields/class-use-wp-login.php.html b/phpunit/src/admin/settings-fields/class-use-wp-login.php.html index ab5fb8c..c69c2df 100644 --- a/phpunit/src/admin/settings-fields/class-use-wp-login.php.html +++ b/phpunit/src/admin/settings-fields/class-use-wp-login.php.html @@ -234,7 +234,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/admin/settings-fields/dashboard.html b/phpunit/src/admin/settings-fields/dashboard.html index 173987b..b8512fc 100644 --- a/phpunit/src/admin/settings-fields/dashboard.html +++ b/phpunit/src/admin/settings-fields/dashboard.html @@ -163,7 +163,7 @@

Project Risks

diff --git a/phpunit/src/admin/settings-fields/index.html b/phpunit/src/admin/settings-fields/index.html index 451f13b..8cf392b 100644 --- a/phpunit/src/admin/settings-fields/index.html +++ b/phpunit/src/admin/settings-fields/index.html @@ -309,7 +309,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/class-api.php.html b/phpunit/src/api/class-api.php.html index 77953a3..20810d4 100644 --- a/phpunit/src/api/class-api.php.html +++ b/phpunit/src/api/class-api.php.html @@ -573,27 +573,27 @@ 222     */ 223    public function generate_code( $user, ?int $seconds_valid ): ?string { 224 - 225        if ( is_null( $user ) || ! ( $user instanceof WP_User ) ) { + 225        if ( is_null( $user ) || ! ( $user instanceof WP_User ) ) { 226            return null; 227        } 228 - 229        if ( is_null( $seconds_valid ) ) { + 229        if ( is_null( $seconds_valid ) ) { 230            $seconds_valid = $this->settings->get_expiry_age(); 231        } 232 - 233        $user_id = $user->ID; + 233        $user_id = $user->ID; 234 - 235        if ( array_key_exists( "$user_id~$seconds_valid", $this->cache ) ) { + 235        if ( array_key_exists( "$user_id~$seconds_valid", $this->cache ) ) { 236            return $this->cache[ "$user_id~$seconds_valid" ]; 237        } 238 - 239        $password = $this->generate_password( $user_id, $seconds_valid ); + 239        $password = $this->generate_password( $user_id, $seconds_valid ); 240 - 241        $code = "$user_id~$password"; + 241        $code = "$user_id~$password"; 242 - 243        $this->cache[ "$user_id~$seconds_valid" ] = $code; + 243        $this->cache[ "$user_id~$seconds_valid" ] = $code; 244 - 245        return $code; + 245        return $code; 246    } 247 248    /** @@ -864,7 +864,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/class-settings.php.html b/phpunit/src/api/class-settings.php.html index 73a3ce3..29ad02a 100644 --- a/phpunit/src/api/class-settings.php.html +++ b/phpunit/src/api/class-settings.php.html @@ -530,7 +530,7 @@ 135    public function get_plugin_version(): string { 136        return defined( 'BH_WP_AUTOLOGIN_URLS_VERSION' ) 137            ? constant( 'BH_WP_AUTOLOGIN_URLS_VERSION' ) - 138            : '2.4.1'; + 138            : '2.4.2'; 139    } 140 141    /** @@ -578,7 +578,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/dashboard.html b/phpunit/src/api/dashboard.html index 64dadee..cd22034 100644 --- a/phpunit/src/api/dashboard.html +++ b/phpunit/src/api/dashboard.html @@ -59,13 +59,14 @@

Insufficient Coverage

-
BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin1% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Autologin_URLs0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin0% + BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store2% BrianHenryIE\WP_Autologin_URLs\API\API14% - BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store65% BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\Transient_Data_Store66% - BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet67% BrianHenryIE\WP_Autologin_URLs\API\Integrations\User_Finder_Factory81% - BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo82% BrianHenryIE\WP_Autologin_URLs\API\Settings83% @@ -84,12 +85,13 @@

Project Risks

BrianHenryIE\WP_Autologin_URLs\API\API1424 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin85 - BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store19 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo182 + BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store170 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Autologin_URLs132 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet110 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin90 BrianHenryIE\WP_Autologin_URLs\API\Settings18 BrianHenryIE\WP_Autologin_URLs\API\Integrations\User_Finder_Factory15 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo13 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet13 BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\Transient_Data_Store7 @@ -129,28 +131,36 @@

Insufficient Coverage

add_autologin_to_message0% - delete_expired_codes0% - add_autologin_to_url0% - delete_expired_codes0% - should_allow_login_attempt0% - get_ip_address0% - send_magic_link0% - get_should_use_wp_login0% - get_wp_user_array0% - get_klaviyo_private_api_key0% - is_magic_link_enabled0% get_wp_user0% __construct0% + get_wp_user_array0% + is_querystring_valid0% __construct0% - save37% + get_user_data0% + get_wp_user_array0% + is_querystring_valid0% + __construct0% + get_wp_user_array0% + is_querystring_valid0% + __construct0% + delete_expired_codes0% + delete_expired_codes0% + get_wp_user_array0% + get_value_for_code0% + save0% + create_db0% + is_magic_link_enabled0% + get_klaviyo_private_api_key0% + get_should_use_wp_login0% + send_magic_link0% + get_ip_address0% + should_allow_login_attempt0% + delete_expired_codes0% + add_autologin_to_url0% + is_querystring_valid0% get_plugin_version66% - get_wp_user_array68% - get_wp_user_array75% - delete_expired_codes75% get_user_finder79% - get_user_data83% get_value_for_code85% - get_value_for_code86% @@ -169,20 +179,24 @@

Project Risks

add_autologin_to_url110 get_wp_user90 + get_wp_user_array90 get_wp_user_array56 + get_wp_user_array56 get_ip_address42 send_magic_link42 + get_user_data42 + get_value_for_code30 + get_wp_user_array20 should_allow_login_attempt20 get_user_finder14 - get_wp_user_array8 - get_user_data6 + save12 + is_querystring_valid6 add_autologin_to_message6 - save5 - get_value_for_code5 - get_wp_user_array4 + __construct6 + create_db6 + delete_expired_codes6 get_value_for_code3 get_plugin_version2 - delete_expired_codes2 @@ -192,7 +206,7 @@

Project Risks

@@ -211,7 +225,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,1,1,0,0,0,0,3,0,3,1,0], "Class Coverage")) + .datum(getCoverageDistributionData([4,1,1,0,0,0,0,1,0,2,0,0], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -229,7 +243,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([14,0,0,0,1,0,0,2,3,3,3,22], "Method Coverage")) + .datum(getCoverageDistributionData([28,0,0,0,0,0,0,1,1,1,0,17], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -279,7 +293,7 @@

Project Risks

chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[14.556962025316455,47,"BrianHenryIE\\WP_Autologin_URLs\\API\\API<\/a>"],[83.33333333333334,17,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings<\/a>"],[65.9090909090909,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store<\/a>"],[95.23809523809523,11,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs<\/a>"],[82.25806451612904,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo<\/a>"],[67.64705882352942,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet<\/a>"],[1.694915254237288,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin<\/a>"],[81.08108108108108,14,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[14.556962025316455,47,"BrianHenryIE\\WP_Autologin_URLs\\API\\API<\/a>"],[83.33333333333334,17,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings<\/a>"],[2.272727272727273,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store<\/a>"],[0,11,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs<\/a>"],[0,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo<\/a>"],[0,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin<\/a>"],[81.08108108108108,14,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -303,7 +317,7 @@

Project Risks

chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,1,"
BrianHenryIE\\WP_Autologin_URLs\\API\\API::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_message<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_wp_user<\/a>"],[0,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_url<\/a>"],[100,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_code<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_password<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::verify_autologin_password<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::delete_expired_codes<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::should_allow_login_attempt<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_ip_address<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_expiry_age<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_add_autologin_for_admins_is_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_array<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_dictionary<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_should_use_wp_login<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_log_level<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_slug<\/a>"],[66.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_version<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_name<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_basename<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_klaviyo_private_api_key<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::is_magic_link_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::__construct<\/a>"],[91.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::create_db<\/a>"],[37.83783783783784,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::save<\/a>"],[86.20689655172413,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::get_value_for_code<\/a>"],[75,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::save<\/a>"],[85.71428571428571,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::get_value_for_code<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::is_querystring_valid<\/a>"],[94.44444444444444,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::get_wp_user_array<\/a>"],[90,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::is_querystring_valid<\/a>"],[75,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_wp_user_array<\/a>"],[83.87096774193549,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_user_data<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::is_querystring_valid<\/a>"],[68.75,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::get_wp_user_array<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::get_wp_user_array<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::__construct<\/a>"],[79.41176470588235,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::get_user_finder<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_message<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_wp_user<\/a>"],[0,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_url<\/a>"],[100,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_code<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_password<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::verify_autologin_password<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::delete_expired_codes<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::should_allow_login_attempt<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_ip_address<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_expiry_age<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_add_autologin_for_admins_is_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_array<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_dictionary<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_should_use_wp_login<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_log_level<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_slug<\/a>"],[66.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_version<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_name<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_basename<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_klaviyo_private_api_key<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::is_magic_link_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::create_db<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::save<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::get_value_for_code<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::save<\/a>"],[85.71428571428571,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::get_value_for_code<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::delete_expired_codes<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::is_querystring_valid<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::get_wp_user_array<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::is_querystring_valid<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_wp_user_array<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_user_data<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::get_wp_user_array<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::get_wp_user_array<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::__construct<\/a>"],[79.41176470588235,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::get_user_finder<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/phpunit/src/api/data-stores/class-db-data-store.php.html b/phpunit/src/api/data-stores/class-db-data-store.php.html index 559037a..7f7f16c 100644 --- a/phpunit/src/api/data-stores/class-db-data-store.php.html +++ b/phpunit/src/api/data-stores/class-db-data-store.php.html @@ -45,15 +45,15 @@ - Total -
-
- 65.91% covered (warning) + Total +
+
+ 2.27% covered (danger)
-
65.91%
-
58 / 88
+
2.27%
+
2 / 88
20.00% covered (danger) @@ -74,15 +74,15 @@ - DB_Data_Store -
-
- 65.91% covered (warning) + DB_Data_Store +
+
+ 2.27% covered (danger)
-
65.91%
-
58 / 88
+
2.27%
+
2 / 88
20.00% covered (danger) @@ -91,7 +91,7 @@
20.00%
1 / 5
- 19.70 + 170.74
0.00% covered (danger) @@ -125,15 +125,15 @@ -  create_db -
-
- 91.67% covered (success) +  create_db +
+
+ 0.00% covered (danger)
-
91.67%
-
11 / 12
+
0.00%
+
0 / 12
0.00% covered (danger) @@ -142,20 +142,20 @@
0.00%
0 / 1
- 2.00 + 6  save
-
- 37.84% covered (danger) +
+ 0.00% covered (danger)
-
37.84%
-
14 / 37
+
0.00%
+
0 / 37
0.00% covered (danger) @@ -164,20 +164,20 @@
0.00%
0 / 1
- 5.16 + 12 -  get_value_for_code -
-
- 86.21% covered (warning) +  get_value_for_code +
+
+ 0.00% covered (danger)
-
86.21%
-
25 / 29
+
0.00%
+
0 / 29
0.00% covered (danger) @@ -186,20 +186,20 @@
0.00%
0 / 1
- 5.07 + 30 -  delete_expired_codes -
-
- 75.00% covered (warning) +  delete_expired_codes +
+
+ 0.00% covered (danger)
-
75.00%
-
6 / 8
+
0.00%
+
0 / 8
0.00% covered (danger) @@ -208,7 +208,7 @@
0.00%
0 / 1
- 2.06 + 6 @@ -282,31 +282,31 @@ 62     */ 63    public function create_db(): void { 64 - 65        $current_db_version = get_option( self::$db_version_option_name, 0 ); + 65        $current_db_version = get_option( self::$db_version_option_name, 0 ); 66 - 67        if ( ! ( self::$db_version > $current_db_version ) ) { + 67        if ( ! ( self::$db_version > $current_db_version ) ) { 68            return; 69        } 70 - 71        global $wpdb; + 71        global $wpdb; 72 - 73        $table_name      = $wpdb->prefix . 'autologin_urls'; - 74        $charset_collate = $wpdb->get_charset_collate(); + 73        $table_name      = $wpdb->prefix . 'autologin_urls'; + 74        $charset_collate = $wpdb->get_charset_collate(); 75 - 76        $sql = "CREATE TABLE {$table_name} ( + 76        $sql = "CREATE TABLE {$table_name} ( 77          expires_at datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, 78          hash varchar(64) NOT NULL, 79          userhash varchar(64) NOT NULL,  80          PRIMARY KEY  (hash), 81          KEY expires_at (expires_at) - 82        ) {$charset_collate};"; + 82        ) {$charset_collate};"; 83 - 84        require_once ABSPATH . 'wp-admin/includes/upgrade.php'; - 85        $result = dbDelta( $sql ); + 84        require_once ABSPATH . 'wp-admin/includes/upgrade.php'; + 85        $result = dbDelta( $sql ); 86 - 87        update_option( self::$db_version_option_name, self::$db_version ); + 87        update_option( self::$db_version_option_name, self::$db_version ); 88 - 89        $this->logger->info( 'Updated database to version ' . self::$db_version ); + 89        $this->logger->info( 'Updated database to version ' . self::$db_version ); 90    } 91 92    /** @@ -321,25 +321,25 @@ 101     */ 102    public function save( int $user_id, string $code, int $expires_in ): void { 103 - 104        $key = hash( 'sha256', $code ); + 104        $key = hash( 'sha256', $code ); 105 106        // Concatenate $user_id and $password so the database cannot be searched by username. - 107        $value = hash( 'sha256', $user_id . $code ); + 107        $value = hash( 'sha256', $user_id . $code ); 108 - 109        global $wpdb; + 109        global $wpdb; 110 - 111        $datetime = new DateTime( 'now', new DateTimeZone( 'UTC' ) ); - 112        $datetime->add( new DateInterval( "PT{$expires_in}S" ) ); - 113        $expires_at = $datetime->format( 'Y-m-d H:i:s' ); + 111        $datetime = new DateTime( 'now', new DateTimeZone( 'UTC' ) ); + 112        $datetime->add( new DateInterval( "PT{$expires_in}S" ) ); + 113        $expires_at = $datetime->format( 'Y-m-d H:i:s' ); 114 - 115        $result = $wpdb->insert( - 116            $wpdb->prefix . 'autologin_urls', - 117            array( - 118                'expires_at' => $expires_at, - 119                'hash'       => $key, - 120                'userhash'   => $value, - 121            ) - 122        ); + 115        $result = $wpdb->insert( + 116            $wpdb->prefix . 'autologin_urls', + 117            array( + 118                'expires_at' => $expires_at, + 119                'hash'       => $key, + 120                'userhash'   => $value, + 121            ) + 122        ); 123 124        if ( ! empty( $wpdb->last_error ) ) { 125            $this->logger->error( $wpdb->last_error ); @@ -382,53 +382,53 @@ 162     */ 163    public function get_value_for_code( string $code, bool $delete = true ): ?string { 164 - 165        global $wpdb; + 165        global $wpdb; 166 - 167        $key = hash( 'sha256', $code ); + 167        $key = hash( 'sha256', $code ); 168 169        /** 170         * We've no interest in caching, rather, for security, we're deleting the entry as soon as it's found. 171         * phpcs:disable WordPress.DB.DirectDatabaseQuery.NoCaching 172         */ - 173        $result = $wpdb->get_row( - 174            $wpdb->prepare( 'SELECT expires_at, userhash FROM ' . $wpdb->prefix . 'autologin_urls WHERE hash = %s', $key ) - 175        ); + 173        $result = $wpdb->get_row( + 174            $wpdb->prepare( 'SELECT expires_at, userhash FROM ' . $wpdb->prefix . 'autologin_urls WHERE hash = %s', $key ) + 175        ); 176 - 177        if ( ! empty( $wpdb->last_error ) ) { + 177        if ( ! empty( $wpdb->last_error ) ) { 178            $this->logger->error( $wpdb->last_error ); 179            throw new Exception( $wpdb->last_error ); 180        } 181 - 182        if ( is_null( $result ) ) { + 182        if ( is_null( $result ) ) { 183            $this->logger->debug( 'Code not found.' ); 184            return null; 185        } 186 187        // Delete the code so it can only be used once (whether valid or not). - 188        if ( $delete ) { - 189            $wpdb->delete( - 190                $wpdb->prefix . 'autologin_urls', - 191                array( 'hash' => $key ) - 192            ); + 188        if ( $delete ) { + 189            $wpdb->delete( + 190                $wpdb->prefix . 'autologin_urls', + 191                array( 'hash' => $key ) + 192            ); 193        } 194 - 195        $expires_at = new DateTimeImmutable( $result->expires_at, new DateTimeZone( 'UTC' ) ); + 195        $expires_at = new DateTimeImmutable( $result->expires_at, new DateTimeZone( 'UTC' ) ); 196 - 197        $now = new DateTimeImmutable( 'now', new DateTimeZone( 'UTC' ) ); + 197        $now = new DateTimeImmutable( 'now', new DateTimeZone( 'UTC' ) ); 198 - 199        if ( $now > $expires_at ) { - 200            $this->logger->debug( - 201                'Valid code but already expired', - 202                array( - 203                    'code'       => $code, - 204                    'expires_at' => $expires_at, - 205                    'hash'       => $key, - 206                ) - 207            ); - 208            return null; + 199        if ( $now > $expires_at ) { + 200            $this->logger->debug( + 201                'Valid code but already expired', + 202                array( + 203                    'code'       => $code, + 204                    'expires_at' => $expires_at, + 205                    'hash'       => $key, + 206                ) + 207            ); + 208            return null; 209        } 210 - 211        return $result->userhash; + 211        return $result->userhash; 212    } 213 214    /** @@ -442,20 +442,20 @@ 222    public function delete_expired_codes( DateTimeInterface $before ): array { 223 224        // get current datetime in mysql format. - 225        $mysql_formatted_date = $before->format( 'Y-m-d H:i:s' ); + 225        $mysql_formatted_date = $before->format( 'Y-m-d H:i:s' ); 226 - 227        global $wpdb; - 228        $result = $wpdb->query( $wpdb->prepare( 'DELETE FROM ' . $wpdb->prefix . 'autologin_urls WHERE expires_at < %s', $mysql_formatted_date ) ); + 227        global $wpdb; + 228        $result = $wpdb->query( $wpdb->prepare( 'DELETE FROM ' . $wpdb->prefix . 'autologin_urls WHERE expires_at < %s', $mysql_formatted_date ) ); 229 - 230        if ( ! empty( $wpdb->last_error ) ) { + 230        if ( ! empty( $wpdb->last_error ) ) { 231            $this->logger->error( $wpdb->last_error ); 232            throw new Exception( $wpdb->last_error ); 233        } 234 235        // I think this is the number of entries deleted. - 236        $this->logger->info( 'Delete expired codes wpdb result: ' . $result, array( 'result' => $result ) ); + 236        $this->logger->info( 'Delete expired codes wpdb result: ' . $result, array( 'result' => $result ) ); 237 - 238        return array( 'deleted_count' => intval( $result ) ); + 238        return array( 'deleted_count' => intval( $result ) ); 239    } 240} @@ -468,7 +468,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/data-stores/class-transient-data-store.php.html b/phpunit/src/api/data-stores/class-transient-data-store.php.html index 0cfff01..779c2d1 100644 --- a/phpunit/src/api/data-stores/class-transient-data-store.php.html +++ b/phpunit/src/api/data-stores/class-transient-data-store.php.html @@ -301,7 +301,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/data-stores/dashboard.html b/phpunit/src/api/data-stores/dashboard.html index b85c8f0..1631023 100644 --- a/phpunit/src/api/data-stores/dashboard.html +++ b/phpunit/src/api/data-stores/dashboard.html @@ -60,7 +60,7 @@

Insufficient Coverage

-
BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store65% + BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store2% BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\Transient_Data_Store66% @@ -78,7 +78,7 @@

Project Risks

- BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store19 + BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store170 BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\Transient_Data_Store7 @@ -117,11 +117,12 @@

Insufficient Coverage

+ create_db0% + save0% + get_value_for_code0% + delete_expired_codes0% delete_expired_codes0% - save37% - delete_expired_codes75% get_value_for_code85% - get_value_for_code86% @@ -138,10 +139,11 @@

Project Risks

- save5 - get_value_for_code5 + get_value_for_code30 + save12 + create_db6 + delete_expired_codes6 get_value_for_code3 - delete_expired_codes2 @@ -151,7 +153,7 @@

Project Risks

@@ -170,7 +172,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,2,0,0,0,0], "Class Coverage")) + .datum(getCoverageDistributionData([0,1,0,0,0,0,0,1,0,0,0,0], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -188,7 +190,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([1,0,0,0,1,0,0,0,1,2,1,3], "Method Coverage")) + .datum(getCoverageDistributionData([5,0,0,0,0,0,0,0,0,1,0,3], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -238,7 +240,7 @@

Project Risks

chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[65.9090909090909,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[2.272727272727273,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -262,7 +264,7 @@

Project Risks

chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,1,"
BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::__construct<\/a>"],[91.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::create_db<\/a>"],[37.83783783783784,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::save<\/a>"],[86.20689655172413,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::get_value_for_code<\/a>"],[75,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::save<\/a>"],[85.71428571428571,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::get_value_for_code<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::delete_expired_codes<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::create_db<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::save<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::get_value_for_code<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::save<\/a>"],[85.71428571428571,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::get_value_for_code<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::delete_expired_codes<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/phpunit/src/api/data-stores/index.html b/phpunit/src/api/data-stores/index.html index eaf5b11..e5f1cd6 100644 --- a/phpunit/src/api/data-stores/index.html +++ b/phpunit/src/api/data-stores/index.html @@ -45,15 +45,15 @@ - Total -
-
- 66.02% covered (warning) + Total +
+
+ 11.65% covered (danger)
-
66.02%
-
68 / 103
+
11.65%
+
12 / 103
33.33% covered (danger) @@ -73,15 +73,15 @@ - class-db-data-store.php -
-
- 65.91% covered (warning) + class-db-data-store.php +
+
+ 2.27% covered (danger)
-
65.91%
-
58 / 88
+
2.27%
+
2 / 88
20.00% covered (danger) @@ -141,7 +141,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/index.html b/phpunit/src/api/index.html index 680e332..06a0be8 100644 --- a/phpunit/src/api/index.html +++ b/phpunit/src/api/index.html @@ -46,21 +46,21 @@ Total
-
- 47.39% covered (danger) +
+ 17.07% covered (danger)
-
47.39%
-
236 / 498
+
17.07%
+
85 / 498
-
- 45.83% covered (danger) +
+ 35.42% covered (danger)
-
45.83%
-
22 / 48
+
35.42%
+
17 / 48
0.00% covered (danger) @@ -72,15 +72,15 @@ - data-stores -
-
- 66.02% covered (warning) + data-stores +
+
+ 11.65% covered (danger)
-
66.02%
-
68 / 103
+
11.65%
+
12 / 103
33.33% covered (danger) @@ -100,23 +100,23 @@ - integrations -
-
- 58.69% covered (warning) + integrations +
+
+ 14.08% covered (danger)
-
58.69%
-
125 / 213
+
14.08%
+
30 / 213
-
- 40.00% covered (danger) +
+ 6.67% covered (danger)
-
40.00%
-
6 / 15
+
6.67%
+
1 / 15
0.00% covered (danger) @@ -196,7 +196,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/integrations/class-autologin-urls.php.html b/phpunit/src/api/integrations/class-autologin-urls.php.html index d7031a4..034cb2e 100644 --- a/phpunit/src/api/integrations/class-autologin-urls.php.html +++ b/phpunit/src/api/integrations/class-autologin-urls.php.html @@ -45,24 +45,24 @@ - Total -
-
- 95.24% covered (success) + Total +
+
+ 0.00% covered (danger)
-
95.24%
-
20 / 21
-
-
- 66.67% covered (warning) +
0.00%
+
0 / 21
+
+
+ 0.00% covered (danger)
-
66.67%
-
2 / 3
- CRAP +
0.00%
+
0 / 3
+ CRAP
0.00% covered (danger) @@ -74,24 +74,24 @@ - Autologin_URLs -
-
- 95.24% covered (success) + Autologin_URLs +
+
+ 0.00% covered (danger)
-
95.24%
-
20 / 21
-
-
- 66.67% covered (warning) +
0.00%
+
0 / 21
+
+
+ 0.00% covered (danger)
-
66.67%
-
2 / 3
- 11 +
0.00%
+
0 / 3
+ 132
0.00% covered (danger) @@ -103,59 +103,59 @@ -  __construct -
-
- 100.00% covered (success) +  __construct +
+
+ 0.00% covered (danger)
-
100.00%
-
2 / 2
-
-
- 100.00% covered (success) +
0.00%
+
0 / 2
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 - +
0.00%
+
0 / 1
+ 2 + -  is_querystring_valid -
-
- 100.00% covered (success) +  is_querystring_valid +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 - +
0.00%
+
0 / 1
+ 2 + -  get_wp_user_array -
-
- 94.44% covered (success) +  get_wp_user_array +
+
+ 0.00% covered (danger)
-
94.44%
-
17 / 18
+
0.00%
+
0 / 18
0.00% covered (danger) @@ -164,7 +164,7 @@
0.00%
0 / 1
- 9.01 + 90 @@ -198,15 +198,15 @@ 22    protected API_Interface $api; 23 24    public function __construct( API_Interface $api, LoggerInterface $logger ) { - 25        $this->setLogger( $logger ); - 26        $this->api = $api; + 25        $this->setLogger( $logger ); + 26        $this->api = $api; 27    } 28 29    /** 30     * Determine is the querystring needed for this integration present. 31     */ 32    public function is_querystring_valid(): bool { - 33        return isset( $_GET[ self::QUERYSTRING_PARAMETER_NAME ] ); + 33        return isset( $_GET[ self::QUERYSTRING_PARAMETER_NAME ] ); 34    } 35 36    /** @@ -223,43 +223,43 @@ 47     */ 48    public function get_wp_user_array(): array { 49 - 50        $result              = array(); - 51        $result['source']    = 'Autologin URL'; - 52        $result['wp_user']   = null; - 53        $result['user_data'] = array(); + 50        $result              = array(); + 51        $result['source']    = 'Autologin URL'; + 52        $result['wp_user']   = null; + 53        $result['user_data'] = array(); 54 55        // This input is not coming from a WordPress page so cannot have a nonce. 56        // phpcs:disable WordPress.Security.NonceVerification.Recommended 57 - 58        if ( ! isset( $_GET[ self::QUERYSTRING_PARAMETER_NAME ] ) ) { - 59            return $result; + 58        if ( ! isset( $_GET[ self::QUERYSTRING_PARAMETER_NAME ] ) ) { + 59            return $result; 60        } 61 - 62        $autologin_querystring = sanitize_text_field( wp_unslash( $_GET[ self::QUERYSTRING_PARAMETER_NAME ] ) ); + 62        $autologin_querystring = sanitize_text_field( wp_unslash( $_GET[ self::QUERYSTRING_PARAMETER_NAME ] ) ); 63 - 64        list( $user_id, $password ) = explode( '~', $autologin_querystring, 2 ); + 64        list( $user_id, $password ) = explode( '~', $autologin_querystring, 2 ); 65 - 66        if ( empty( $user_id ) || empty( $password ) || ! is_numeric( $user_id ) || ! ctype_alnum( $password ) ) { + 66        if ( empty( $user_id ) || empty( $password ) || ! is_numeric( $user_id ) || ! ctype_alnum( $password ) ) { 67 - 68            return $result; + 68            return $result; 69        } 70 - 71        $user_id = intval( $user_id ); + 71        $user_id = intval( $user_id ); 72 - 73        if ( $this->api->verify_autologin_password( $user_id, $password ) ) { + 73        if ( $this->api->verify_autologin_password( $user_id, $password ) ) { 74 - 75            $wp_user = get_user_by( 'id', $user_id ); - 76            if ( $wp_user instanceof WP_User ) { + 75            $wp_user = get_user_by( 'id', $user_id ); + 76            if ( $wp_user instanceof WP_User ) { 77                // e.g. The user account may have been deleted since the link was created. - 78                $result['wp_user'] = $wp_user; + 78                $result['wp_user'] = $wp_user; 79            } 80        } 81 - 82        if ( isset( $_GET['magic'] ) ) { + 82        if ( isset( $_GET['magic'] ) ) { 83            $result['source'] = 'Magic Email'; 84        } 85 - 86        return $result; + 86        return $result; 87    } 88} @@ -272,7 +272,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/integrations/class-klaviyo.php.html b/phpunit/src/api/integrations/class-klaviyo.php.html index 7cb5bf1..367939c 100644 --- a/phpunit/src/api/integrations/class-klaviyo.php.html +++ b/phpunit/src/api/integrations/class-klaviyo.php.html @@ -45,23 +45,23 @@ - Total -
-
- 82.26% covered (warning) + Total +
+
+ 0.00% covered (danger)
-
82.26%
-
51 / 62
+
0.00%
+
0 / 62
-
- 25.00% covered (danger) +
+ 0.00% covered (danger)
-
25.00%
-
1 / 4
+
0.00%
+
0 / 4
CRAP
@@ -74,24 +74,24 @@ - Klaviyo -
-
- 82.26% covered (warning) + Klaviyo +
+
+ 0.00% covered (danger)
-
82.26%
-
51 / 62
+
0.00%
+
0 / 62
-
- 25.00% covered (danger) +
+ 0.00% covered (danger)
-
25.00%
-
1 / 4
- 13.94 +
0.00%
+
0 / 4
+ 182
0.00% covered (danger) @@ -103,15 +103,15 @@ -  __construct -
-
- 90.00% covered (success) +  __construct +
+
+ 0.00% covered (danger)
-
90.00%
-
9 / 10
+
0.00%
+
0 / 10
0.00% covered (danger) @@ -120,42 +120,42 @@
0.00%
0 / 1
- 2.00 + 6 -  is_querystring_valid -
-
- 100.00% covered (success) +  is_querystring_valid +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 - +
0.00%
+
0 / 1
+ 2 + -  get_wp_user_array -
-
- 75.00% covered (warning) +  get_wp_user_array +
+
+ 0.00% covered (danger)
-
75.00%
-
15 / 20
+
0.00%
+
0 / 20
0.00% covered (danger) @@ -164,20 +164,20 @@
0.00%
0 / 1
- 4.25 + 20 -  get_user_data -
-
- 83.87% covered (warning) +  get_user_data +
+
+ 0.00% covered (danger)
-
83.87%
-
26 / 31
+
0.00%
+
0 / 31
0.00% covered (danger) @@ -186,7 +186,7 @@
0.00%
0 / 1
- 6.15 + 42 @@ -243,27 +243,27 @@ 45     */ 46    public function __construct( Settings_Interface $settings, LoggerInterface $logger, ?Client $client = null ) { 47 - 48        $this->setLogger( $logger ); + 48        $this->setLogger( $logger ); 49 - 50        $private_key = $settings->get_klaviyo_private_api_key(); + 50        $private_key = $settings->get_klaviyo_private_api_key(); 51 - 52        if ( empty( $private_key ) ) { + 52        if ( empty( $private_key ) ) { 53            throw new Exception( 'Klaviyo private key not set' ); 54        } 55 - 56        $this->setLogger( $logger ); - 57        $this->client = $client ?? new Client( - 58            $private_key, - 59            0, - 60            3 - 61        ); + 56        $this->setLogger( $logger ); + 57        $this->client = $client ?? new Client( + 58            $private_key, + 59            0, + 60            3 + 61        ); 62    } 63 64    /** 65     * Determine is the querystring needed for this integration present. 66     */ 67    public function is_querystring_valid(): bool { - 68        return ! empty( $_GET[ self::QUERYSTRING_PARAMETER_NAME ] ); + 68        return ! empty( $_GET[ self::QUERYSTRING_PARAMETER_NAME ] ); 69    } 70 71    /** @@ -273,10 +273,10 @@ 75     */ 76    public function get_wp_user_array(): array { 77 - 78        $result              = array(); - 79        $result['source']    = 'BrianHenryIE\WP_Autologin_URLs\Klaviyo'; - 80        $result['wp_user']   = null; - 81        $result['user_data'] = array(); + 78        $result              = array(); + 79        $result['source']    = 'BrianHenryIE\WP_Autologin_URLs\Klaviyo'; + 80        $result['wp_user']   = null; + 81        $result['user_data'] = array(); 82 83        /** 84         * This was checked above. @@ -284,35 +284,35 @@ 86         * @see Klaviyo::is_querystring_valid() 87         */ 88        // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated - 89        $klaviyo_parameter = sanitize_text_field( wp_unslash( $_GET[ self::QUERYSTRING_PARAMETER_NAME ] ) ); + 89        $klaviyo_parameter = sanitize_text_field( wp_unslash( $_GET[ self::QUERYSTRING_PARAMETER_NAME ] ) ); 90 - 91        $user_data = $this->get_user_data( $klaviyo_parameter ); + 91        $user_data = $this->get_user_data( $klaviyo_parameter ); 92 - 93        if ( empty( $user_data ) ) { + 93        if ( empty( $user_data ) ) { 94            $this->logger->debug( 'Email not returned from Klaviyo.' ); 95            return $result; 96        } 97 - 98        $result['user_data'] = $user_data; + 98        $result['user_data'] = $user_data; 99 - 100        if ( ! isset( $user_data['email'] ) ) { + 100        if ( ! isset( $user_data['email'] ) ) { 101            return $result; 102        } 103 - 104        $user_email = $user_data['email']; + 104        $user_email = $user_data['email']; 105 - 106        $user = get_user_by( 'email', $user_email ); + 106        $user = get_user_by( 'email', $user_email ); 107 - 108        if ( ! ( $user instanceof WP_User ) ) { + 108        if ( ! ( $user instanceof WP_User ) ) { 109            $this->logger->debug( "No WP_User account found for Klaviyo user {$user_data['klaviyo_user_id']}" ); 110            return $result; 111        } 112 - 113        $this->logger->info( "User wp_user:{$user->ID}, klaviyo:{$user->ID} {$user_data['klaviyo_user_id']} found via Klaviyo Email URL." ); + 113        $this->logger->info( "User wp_user:{$user->ID}, klaviyo:{$user->ID} {$user_data['klaviyo_user_id']} found via Klaviyo Email URL." ); 114 - 115        $result['wp_user'] = $user; + 115        $result['wp_user'] = $user; 116 - 117        return $result; + 117        return $result; 118    } 119 120    /** @@ -330,7 +330,7 @@ 132    protected function get_user_data( string $kx_parameter ): array { 133 134        /** @var ProfilesApi $profiles */ - 135        $profiles = $this->client->Profiles; + 135        $profiles = $this->client->Profiles; 136 137        try { 138            /** @@ -340,18 +340,18 @@ 142             * 143             * @var array{id?:string} $response 144             */ - 145            $response = $profiles->exchange( array( 'exchange_id' => $kx_parameter ) ); + 145            $response = $profiles->exchange( array( 'exchange_id' => $kx_parameter ) ); 146        } catch ( ApiException $exception ) { // ApiException seemingly not catching 429 errors. 147            $this->logger->error( $exception->getMessage(), array( 'exception' => $exception ) ); 148            return array(); 149        } 150 - 151        if ( ! isset( $response['id'] ) ) { + 151        if ( ! isset( $response['id'] ) ) { 152            $this->logger->debug( 'No Klaviyo profile id found for _kx ' . $kx_parameter ); 153            return array(); 154        } 155 - 156        $klaviyo_user_id = $response['id']; + 156        $klaviyo_user_id = $response['id']; 157 158        /** 159         * Query the Klaviyo API for the profile data. @@ -360,37 +360,37 @@ 162         * 163         * @var array{'$address1':string,'$address2':string,'$city':string,'$country':string,'$region':string,'$zip':string,'$organization':string,'$first_name':string,'$email':string,'$phone_number':string,'$title':string,'$last_name':string} $klaviyo_user 164         */ - 165        $klaviyo_user = $profiles->getProfile( $klaviyo_user_id ); + 165        $klaviyo_user = $profiles->getProfile( $klaviyo_user_id ); 166 - 167        $user_data_map = array( - 168            '$address1'     => 'address', - 169            '$address2'     => 'address_2', - 170            '$city'         => 'city', - 171            '$country'      => 'country', - 172            '$region'       => 'state', - 173            '$zip'          => 'postcode', - 174            '$organization' => 'company', - 175            '$first_name'   => 'first_name', - 176            '$email'        => 'email', - 177            '$phone_number' => 'billing_phone', - 178            '$last_name'    => 'last_name', - 179        ); + 167        $user_data_map = array( + 168            '$address1'     => 'address', + 169            '$address2'     => 'address_2', + 170            '$city'         => 'city', + 171            '$country'      => 'country', + 172            '$region'       => 'state', + 173            '$zip'          => 'postcode', + 174            '$organization' => 'company', + 175            '$first_name'   => 'first_name', + 176            '$email'        => 'email', + 177            '$phone_number' => 'billing_phone', + 178            '$last_name'    => 'last_name', + 179        ); 180 - 181        $user_data = array(); + 181        $user_data = array(); 182 - 183        $user_data['klaviyo_user_id'] = $klaviyo_user_id; + 183        $user_data['klaviyo_user_id'] = $klaviyo_user_id; 184 - 185        foreach ( $klaviyo_user as $key => $value ) { - 186            if ( isset( $user_data_map[ $key ] ) ) { - 187                $user_data[ $user_data_map[ $key ] ] = (string) $value; + 185        foreach ( $klaviyo_user as $key => $value ) { + 186            if ( isset( $user_data_map[ $key ] ) ) { + 187                $user_data[ $user_data_map[ $key ] ] = (string) $value; 188            } 189        } 190 - 191        if ( isset( $user_data['email'] ) ) { - 192            $user_data['billing_email'] = $user_data['email']; + 191        if ( isset( $user_data['email'] ) ) { + 192            $user_data['billing_email'] = $user_data['email']; 193        } 194 - 195        return $user_data; + 195        return $user_data; 196    } 197} @@ -403,7 +403,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/integrations/class-mailpoet.php.html b/phpunit/src/api/integrations/class-mailpoet.php.html index 15ee7fa..356a6bb 100644 --- a/phpunit/src/api/integrations/class-mailpoet.php.html +++ b/phpunit/src/api/integrations/class-mailpoet.php.html @@ -45,23 +45,23 @@ - Total -
-
- 67.65% covered (warning) + Total +
+
+ 0.00% covered (danger)
-
67.65%
-
23 / 34
+
0.00%
+
0 / 34
-
- 33.33% covered (danger) +
+ 0.00% covered (danger)
-
33.33%
-
1 / 3
+
0.00%
+
0 / 3
CRAP
@@ -74,24 +74,24 @@ - MailPoet -
-
- 67.65% covered (warning) + MailPoet +
+
+ 0.00% covered (danger)
-
67.65%
-
23 / 34
+
0.00%
+
0 / 34
-
- 33.33% covered (danger) +
+ 0.00% covered (danger)
-
33.33%
-
1 / 3
- 13.39 +
0.00%
+
0 / 3
+ 110
0.00% covered (danger) @@ -125,37 +125,37 @@ -  is_querystring_valid -
-
- 100.00% covered (success) +  is_querystring_valid +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 2 - +
0.00%
+
0 / 1
+ 6 + -  get_wp_user_array -
-
- 68.75% covered (warning) +  get_wp_user_array +
+
+ 0.00% covered (danger)
-
68.75%
-
22 / 32
+
0.00%
+
0 / 32
0.00% covered (danger) @@ -164,7 +164,7 @@
0.00%
0 / 1
- 8.50 + 56 @@ -216,7 +216,7 @@ 40     * Determine is the querystring needed for this integration present. 41     */ 42    public function is_querystring_valid(): bool { - 43        return isset( $_GET['mailpoet_router'] ) && isset( $_GET['data'] ); + 43        return isset( $_GET['mailpoet_router'] ) && isset( $_GET['data'] ); 44    } 45 46    /** @@ -236,64 +236,64 @@ 60     */ 61    public function get_wp_user_array(): array { 62 - 63        $result              = array(); - 64        $result['source']    = 'MailPoet'; - 65        $result['wp_user']   = null; - 66        $result['user_data'] = array(); + 63        $result              = array(); + 64        $result['source']    = 'MailPoet'; + 65        $result['wp_user']   = null; + 66        $result['user_data'] = array(); 67 - 68        if ( ! isset( $_GET['mailpoet_router'] ) ) { + 68        if ( ! isset( $_GET['mailpoet_router'] ) ) { 69            return $result; 70        } 71 - 72        if ( ! isset( $_GET['data'] ) ) { + 72        if ( ! isset( $_GET['data'] ) ) { 73            return $result; 74        } 75 - 76        if ( ! class_exists( Router::class ) ) { + 76        if ( ! class_exists( Router::class ) ) { 77            return $result; 78        } 79 80        // phpcs:disable WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode - 81        $data = Router::decodeRequestData( filter_var( wp_unslash( $_GET['data'] ), FILTER_SANITIZE_STRIPPED ) ); + 81        $data = Router::decodeRequestData( filter_var( wp_unslash( $_GET['data'] ), FILTER_SANITIZE_STRIPPED ) ); 82 83        /** 84         * The required data from the MailPoet querystring. 85         * 86         * @see Links::transformUrlDataObject() 87         */ - 88        $subscriber_id = $data[0]; - 89        $request_token = $data[1]; + 88        $subscriber_id = $data[0]; + 89        $request_token = $data[1]; 90 91        /** 92         * The MailPoet subscriber object, false if none found. 93         * 94         * @var \MailPoet\Models\Subscriber $subscriber 95         */ - 96        $subscriber = Subscriber::where( 'id', $subscriber_id )->findOne(); + 96        $subscriber = Subscriber::where( 'id', $subscriber_id )->findOne(); 97 98        // @phpstan-ignore-next-line - 99        if ( empty( $subscriber ) ) { + 99        if ( empty( $subscriber ) ) { 100            return $result; 101        } 102 103        // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase - 104        $database_token = $subscriber->linkToken; - 105        $request_token  = substr( $request_token, 0, strlen( $database_token ) ); - 106        $valid          = hash_equals( $database_token, $request_token ); + 104        $database_token = $subscriber->linkToken; + 105        $request_token  = substr( $request_token, 0, strlen( $database_token ) ); + 106        $valid          = hash_equals( $database_token, $request_token ); 107 - 108        if ( ! $valid ) { + 108        if ( ! $valid ) { 109            return $result; 110        } 111 - 112        $user_email_address = $subscriber->email; + 112        $user_email_address = $subscriber->email; 113 - 114        $wp_user = get_user_by( 'email', $user_email_address ); + 114        $wp_user = get_user_by( 'email', $user_email_address ); 115 - 116        if ( $wp_user instanceof WP_User ) { + 116        if ( $wp_user instanceof WP_User ) { 117 - 118            $this->logger->info( "User wp_user:{$wp_user->ID} found via mailpoet_user:{$subscriber_id} from MailPoet URL." ); + 118            $this->logger->info( "User wp_user:{$wp_user->ID} found via mailpoet_user:{$subscriber_id} from MailPoet URL." ); 119 - 120            $result['wp_user'] = $wp_user; + 120            $result['wp_user'] = $wp_user; 121 122        } else { 123 @@ -310,7 +310,7 @@ 134 135        } 136 - 137        return $result; + 137        return $result; 138    } 139} @@ -323,7 +323,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/integrations/class-the-newsletter-plugin.php.html b/phpunit/src/api/integrations/class-the-newsletter-plugin.php.html index db6f1e5..ae8d323 100644 --- a/phpunit/src/api/integrations/class-the-newsletter-plugin.php.html +++ b/phpunit/src/api/integrations/class-the-newsletter-plugin.php.html @@ -47,21 +47,21 @@ Total
-
- 1.69% covered (danger) +
+ 0.00% covered (danger)
-
1.69%
-
1 / 59
+
0.00%
+
0 / 59
-
- 33.33% covered (danger) +
+ 0.00% covered (danger)
-
33.33%
-
1 / 3
+
0.00%
+
0 / 3
CRAP
@@ -76,22 +76,22 @@ The_Newsletter_Plugin
-
- 1.69% covered (danger) +
+ 0.00% covered (danger)
-
1.69%
-
1 / 59
+
0.00%
+
0 / 59
-
- 33.33% covered (danger) +
+ 0.00% covered (danger)
-
33.33%
-
1 / 3
- 85.95 +
0.00%
+
0 / 3
+ 90
0.00% covered (danger) @@ -125,25 +125,25 @@ -  is_querystring_valid -
-
- 100.00% covered (success) +  is_querystring_valid +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 - +
0.00%
+
0 / 1
+ 2 + @@ -202,7 +202,7 @@ 26     * Determine is the querystring needed for this integration present. 27     */ 28    public function is_querystring_valid(): bool { - 29        return isset( $_GET['nltr'] ); + 29        return isset( $_GET['nltr'] ); 30    } 31 32    /** @@ -322,7 +322,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/integrations/class-user-finder-factory.php.html b/phpunit/src/api/integrations/class-user-finder-factory.php.html index 94cef3e..bb27f38 100644 --- a/phpunit/src/api/integrations/class-user-finder-factory.php.html +++ b/phpunit/src/api/integrations/class-user-finder-factory.php.html @@ -264,7 +264,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/api/integrations/dashboard.html b/phpunit/src/api/integrations/dashboard.html index 59522d4..2786918 100644 --- a/phpunit/src/api/integrations/dashboard.html +++ b/phpunit/src/api/integrations/dashboard.html @@ -60,10 +60,11 @@

Insufficient Coverage

-
BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin1% - BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet67% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Autologin_URLs0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin0% BrianHenryIE\WP_Autologin_URLs\API\Integrations\User_Finder_Factory81% - BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo82% @@ -80,10 +81,11 @@

Project Risks

- BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin85 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo182 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Autologin_URLs132 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet110 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin90 BrianHenryIE\WP_Autologin_URLs\API\Integrations\User_Finder_Factory15 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo13 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet13 @@ -121,13 +123,20 @@

Insufficient Coverage

+ __construct0% + is_querystring_valid0% + get_wp_user_array0% + __construct0% + is_querystring_valid0% + get_wp_user_array0% + get_user_data0% __construct0% + is_querystring_valid0% + get_wp_user_array0% __construct0% + is_querystring_valid0% get_wp_user_array0% - get_wp_user_array68% - get_wp_user_array75% get_user_finder79% - get_user_data83% @@ -144,11 +153,14 @@

Project Risks

+ get_wp_user_array90 + get_wp_user_array56 get_wp_user_array56 + get_user_data42 + get_wp_user_array20 get_user_finder14 - get_wp_user_array8 - get_user_data6 - get_wp_user_array4 + __construct6 + is_querystring_valid6 @@ -158,7 +170,7 @@

Project Risks

@@ -177,7 +189,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,1,0,0,0,0,0,1,0,2,1,0], "Class Coverage")) + .datum(getCoverageDistributionData([4,0,0,0,0,0,0,0,0,1,0,0], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -195,7 +207,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([3,0,0,0,0,0,0,1,2,1,2,6], "Method Coverage")) + .datum(getCoverageDistributionData([13,0,0,0,0,0,0,0,1,0,0,1], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -245,7 +257,7 @@

Project Risks

chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[95.23809523809523,11,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs<\/a>"],[82.25806451612904,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo<\/a>"],[67.64705882352942,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet<\/a>"],[1.694915254237288,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin<\/a>"],[81.08108108108108,14,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[0,11,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs<\/a>"],[0,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo<\/a>"],[0,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin<\/a>"],[81.08108108108108,14,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -269,7 +281,7 @@

Project Risks

chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,1,"
BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::is_querystring_valid<\/a>"],[94.44444444444444,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::get_wp_user_array<\/a>"],[90,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::is_querystring_valid<\/a>"],[75,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_wp_user_array<\/a>"],[83.87096774193549,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_user_data<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::is_querystring_valid<\/a>"],[68.75,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::get_wp_user_array<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::get_wp_user_array<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::__construct<\/a>"],[79.41176470588235,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::get_user_finder<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::is_querystring_valid<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::get_wp_user_array<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::is_querystring_valid<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_wp_user_array<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_user_data<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::get_wp_user_array<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::get_wp_user_array<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::__construct<\/a>"],[79.41176470588235,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::get_user_finder<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/phpunit/src/api/integrations/index.html b/phpunit/src/api/integrations/index.html index 6a991ef..8a9943c 100644 --- a/phpunit/src/api/integrations/index.html +++ b/phpunit/src/api/integrations/index.html @@ -45,23 +45,23 @@ - Total -
-
- 58.69% covered (warning) + Total +
+
+ 14.08% covered (danger)
-
58.69%
-
125 / 213
+
14.08%
+
30 / 213
-
- 40.00% covered (danger) +
+ 6.67% covered (danger)
-
40.00%
-
6 / 15
+
6.67%
+
1 / 15
0.00% covered (danger) @@ -73,23 +73,23 @@ - class-autologin-urls.php -
-
- 95.24% covered (success) + class-autologin-urls.php +
+
+ 0.00% covered (danger)
-
95.24%
-
20 / 21
-
-
- 66.67% covered (warning) +
0.00%
+
0 / 21
+
+
+ 0.00% covered (danger)
-
66.67%
-
2 / 3
+
0.00%
+
0 / 3
0.00% covered (danger) @@ -101,23 +101,23 @@ - class-klaviyo.php -
-
- 82.26% covered (warning) + class-klaviyo.php +
+
+ 0.00% covered (danger)
-
82.26%
-
51 / 62
+
0.00%
+
0 / 62
-
- 25.00% covered (danger) +
+ 0.00% covered (danger)
-
25.00%
-
1 / 4
+
0.00%
+
0 / 4
0.00% covered (danger) @@ -129,23 +129,23 @@ - class-mailpoet.php -
-
- 67.65% covered (warning) + class-mailpoet.php +
+
+ 0.00% covered (danger)
-
67.65%
-
23 / 34
+
0.00%
+
0 / 34
-
- 33.33% covered (danger) +
+ 0.00% covered (danger)
-
33.33%
-
1 / 3
+
0.00%
+
0 / 3
0.00% covered (danger) @@ -159,21 +159,21 @@ class-the-newsletter-plugin.php
-
- 1.69% covered (danger) +
+ 0.00% covered (danger)
-
1.69%
-
1 / 59
+
0.00%
+
0 / 59
-
- 33.33% covered (danger) +
+ 0.00% covered (danger)
-
33.33%
-
1 / 3
+
0.00%
+
0 / 3
0.00% covered (danger) @@ -225,7 +225,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/class-bh-wp-autologin-urls.php.html b/phpunit/src/class-bh-wp-autologin-urls.php.html index 0aea261..3681bd1 100644 --- a/phpunit/src/class-bh-wp-autologin-urls.php.html +++ b/phpunit/src/class-bh-wp-autologin-urls.php.html @@ -758,7 +758,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/dashboard.html b/phpunit/src/dashboard.html index 9095376..2c6ff04 100644 --- a/phpunit/src/dashboard.html +++ b/phpunit/src/dashboard.html @@ -59,28 +59,31 @@

Insufficient Coverage

BrianHenryIE\WP_Autologin_URLs\Admin\Plugin_Installer0% - BrianHenryIE\WP_Autologin_URLs\Admin\User_Edit0% - BrianHenryIE\WP_Autologin_URLs\Admin\Users_List_Table0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo0% BrianHenryIE\WP_Autologin_URLs\WP_Includes\REST_API0% + BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login0% BrianHenryIE\WP_Autologin_URLs\WP_Includes\CLI0% + BrianHenryIE\WP_Autologin_URLs\WooCommerce\Checkout0% BrianHenryIE\WP_Autologin_URLs\Logger\Klaviyo_Logs0% - BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin1% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet0% + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Autologin_URLs0% + BrianHenryIE\WP_Autologin_URLs\Admin\User_Edit0% + BrianHenryIE\WP_Autologin_URLs\Admin\Users_List_Table0% + BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store2% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Checkbox_Setting_Element_Abstract4% BrianHenryIE\WP_Autologin_URLs\API\API14% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Log_Level40% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Klaviyo_Private_Key58% BrianHenryIE\WP_Autologin_URLs\Login\Login_Ajax65% - BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store65% BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\Transient_Data_Store66% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Enable_Magic_Links66% - BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet67% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Page69% - BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login70% + BrianHenryIE\WP_Autologin_URLs\WooCommerce\Admin_Order_UI70% BrianHenryIE\WP_Autologin_URLs\BH_WP_Autologin_URLs70% BrianHenryIE\WP_Autologin_URLs\WP_Includes\WP_Mail75% BrianHenryIE\WP_Autologin_URLs\API\Integrations\User_Finder_Factory81% BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Use_WP_Login81% - BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo82% BrianHenryIE\WP_Autologin_URLs\API\Settings83% @@ -99,27 +102,30 @@

Project Risks

BrianHenryIE\WP_Autologin_URLs\API\API1424 + BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login380 BrianHenryIE\WP_Autologin_URLs\WP_Includes\REST_API272 BrianHenryIE\WP_Autologin_URLs\Admin\Users_List_Table210 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo182 + BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store170 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\Autologin_URLs132 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet110 BrianHenryIE\WP_Autologin_URLs\WP_Includes\CLI90 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin85 + BrianHenryIE\WP_Autologin_URLs\API\Integrations\The_Newsletter_Plugin90 + BrianHenryIE\WP_Autologin_URLs\WooCommerce\Checkout72 BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Checkbox_Setting_Element_Abstract37 BrianHenryIE\WP_Autologin_URLs\Admin\User_Edit30 - BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login28 BrianHenryIE\WP_Autologin_URLs\BH_WP_Autologin_URLs24 - BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\DB_Data_Store19 BrianHenryIE\WP_Autologin_URLs\WP_Includes\WP_Mail19 BrianHenryIE\WP_Autologin_URLs\API\Settings18 BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Log_Level17 + BrianHenryIE\WP_Autologin_URLs\WooCommerce\Admin_Order_UI17 BrianHenryIE\WP_Autologin_URLs\API\Integrations\User_Finder_Factory15 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\Klaviyo13 - BrianHenryIE\WP_Autologin_URLs\API\Integrations\MailPoet13 - BrianHenryIE\WP_Autologin_URLs\Admin\Plugin_Installer12 BrianHenryIE\WP_Autologin_URLs\Logger\Klaviyo_Logs12 + BrianHenryIE\WP_Autologin_URLs\Admin\Plugin_Installer12 BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Page11 BrianHenryIE\WP_Autologin_URLs\Login\Login_Ajax9 - BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Enable_Magic_Links7 BrianHenryIE\WP_Autologin_URLs\API\Data_Stores\Transient_Data_Store7 + BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Enable_Magic_Links7 BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Fields\Use_WP_Login4 @@ -159,71 +165,82 @@

Insufficient Coverage

__construct0% - send_magic_link0% - get_klaviyo_private_api_key0% - is_magic_link_enabled0% - get_item_schema0% + __construct0% + define_logger_hooks0% + define_wp_mail_hooks0% + define_plugin_installer_hooks0% + setup_api0% + get_wp_user_array0% + is_querystring_valid0% + get_wp_user_array0% + link_to_klaviyo_profile_search0% + is_querystring_valid0% + __construct0% + get_user_data0% + get_wp_user_array0% + is_querystring_valid0% + __construct0% + define_cli_hooks0% + __construct0% add_settings_link0% + __construct0% + get_args_schema0% + get_item_schema0% prepare_item_for_response0% - delete_expired_codes0% create_item_permissions_check0% create_item0% - __construct0% - __construct0% - __construct0% - get_wp_user_array0% register_routes0% - setup_api0% - define_plugin_installer_hooks0% - define_wp_mail_hooks0% - define_logger_hooks0% - define_cli_hooks0% - link_to_klaviyo_profile_search0% + maybe_redirect0% + add_to_payment_url0% + process0% + __construct0% + send_magic_link0% add_autologin_to_url0% - __construct0% - get_should_use_wp_login0% - send_magic_link0% - get_ip_address0% - should_allow_login_attempt0% - display_plugin_admin_page0% - __construct0% - make_password_available_on_user_page0% - __construct0% - add_magic_email_link0% - send_magic_email_link0% - print_admin_notice0% + __construct0% + prefill_checkout_fields0% + __construct0% + get_wp_user_array0% + is_querystring_valid0% + __construct0% + get_wp_user0% print_field_callback0% sanitize_callback0% get_is_checked_value0% get_is_not_checked_value0% - get_args_schema0% + add_magic_email_link0% print_field_callback0% sanitize_callback0% print_field_callback0% sanitize_callback0% get_is_checked_value0% + __construct0% + delete_expired_codes0% get_is_not_checked_value0% add_autologin_to_message0% - get_wp_user0% add_autologin_to_url0% + send_magic_email_link0% delete_expired_codes0% - __construct0% - save37% + should_allow_login_attempt0% + make_password_available_on_user_page0% + get_ip_address0% + send_magic_link0% + get_should_use_wp_login0% + __construct0% + get_klaviyo_private_api_key0% + is_magic_link_enabled0% + create_db0% + save0% + get_value_for_code0% + delete_expired_codes0% + display_plugin_admin_page0% + print_admin_notice0% email_magic_link61% - maybe_redirect64% - get_plugin_version66% enqueue_styles66% - get_wp_user_array68% - process70% + get_plugin_version66% add_autologin_links_to_email74% - add_to_payment_url75% - get_wp_user_array75% - delete_expired_codes75% __construct76% get_user_finder79% - get_user_data83% get_value_for_code85% - get_value_for_code86% @@ -240,46 +257,51 @@

Project Risks

+ process156 add_autologin_to_url110 + get_wp_user_array90 get_wp_user90 get_wp_user_array56 + get_wp_user_array56 + prefill_checkout_fields56 + maybe_redirect42 send_magic_email_link42 + get_user_data42 send_magic_link42 get_ip_address42 add_autologin_to_url30 - create_item_permissions_check30 + get_value_for_code30 create_item30 + create_item_permissions_check30 should_allow_login_attempt20 - make_password_available_on_user_page20 - add_magic_email_link20 display_plugin_admin_page20 + add_magic_email_link20 + make_password_available_on_user_page20 + get_wp_user_array20 add_autologin_links_to_email18 - process15 get_user_finder14 - link_to_klaviyo_profile_search12 + send_magic_link12 + save12 sanitize_callback12 print_field_callback12 - send_magic_link12 sanitize_callback12 print_admin_notice12 define_cli_hooks12 - get_wp_user_array8 + link_to_klaviyo_profile_search12 email_magic_link8 - maybe_redirect7 - get_user_data6 + add_to_payment_url6 prepare_item_for_response6 add_settings_link6 + is_querystring_valid6 + __construct6 + delete_expired_codes6 + create_db6 add_autologin_to_message6 print_field_callback6 - save5 - get_value_for_code5 - get_wp_user_array4 __construct4 get_value_for_code3 enqueue_styles2 get_plugin_version2 - add_to_payment_url2 - delete_expired_codes2 @@ -289,7 +311,7 @@

Project Risks

@@ -308,7 +330,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([6,2,1,0,0,1,1,6,3,4,5,7], "Class Coverage")) + .datum(getCoverageDistributionData([12,2,1,0,0,1,1,4,3,3,2,7], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -326,7 +348,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([50,0,0,0,1,0,0,5,7,3,6,73], "Method Coverage")) + .datum(getCoverageDistributionData([70,0,0,0,0,0,0,3,3,1,2,66], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -376,7 +398,7 @@

Project Risks

chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page<\/a>"],[69.23076923076923,9,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit<\/a>"],[0,14,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table<\/a>"],[100,7,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable<\/a>"],[4.3478260869565215,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links<\/a>"],[100,5,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age<\/a>"],[58.333333333333336,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key<\/a>"],[40,7,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract<\/a>"],[81.81818181818183,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login<\/a>"],[14.556962025316455,47,"BrianHenryIE\\WP_Autologin_URLs\\API\\API<\/a>"],[83.33333333333334,17,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings<\/a>"],[65.9090909090909,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store<\/a>"],[95.23809523809523,11,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs<\/a>"],[82.25806451612904,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo<\/a>"],[67.64705882352942,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet<\/a>"],[1.694915254237288,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin<\/a>"],[81.08108108108108,14,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory<\/a>"],[70.88607594936708,17,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Logger\\Klaviyo_Logs<\/a>"],[65,7,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax<\/a>"],[90.47619047619048,5,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets<\/a>"],[95,13,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI<\/a>"],[93.18181818181817,8,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout<\/a>"],[94.73684210526315,3,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n<\/a>"],[70.51282051282051,19,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login<\/a>"],[0,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API<\/a>"],[75.75757575757575,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page<\/a>"],[69.23076923076923,9,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit<\/a>"],[0,14,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table<\/a>"],[100,7,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable<\/a>"],[4.3478260869565215,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links<\/a>"],[100,5,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age<\/a>"],[58.333333333333336,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key<\/a>"],[40,7,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract<\/a>"],[81.81818181818183,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login<\/a>"],[14.556962025316455,47,"BrianHenryIE\\WP_Autologin_URLs\\API\\API<\/a>"],[83.33333333333334,17,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings<\/a>"],[2.272727272727273,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store<\/a>"],[66.66666666666666,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store<\/a>"],[0,11,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs<\/a>"],[0,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo<\/a>"],[0,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin<\/a>"],[81.08108108108108,14,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory<\/a>"],[70.88607594936708,17,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Logger\\Klaviyo_Logs<\/a>"],[65,7,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax<\/a>"],[90.47619047619048,5,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets<\/a>"],[70,13,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI<\/a>"],[0,8,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout<\/a>"],[94.73684210526315,3,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n<\/a>"],[0,19,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login<\/a>"],[0,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API<\/a>"],[75.75757575757575,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -400,7 +422,7 @@

Project Risks

chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,1,"
BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::enqueue_styles<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::enqueue_scripts<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer::add_settings_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::action_links<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::row_meta<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::add_settings_page<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::display_plugin_admin_page<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::setup_sections<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::setup_fields<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit::__construct<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit::make_password_available_on_user_page<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::__construct<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::add_magic_email_link<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::send_magic_email_link<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::print_admin_notice<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::print_field_callback<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::__construct<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::get_is_checked_value<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::get_is_not_checked_value<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::print_field_callback<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::sanitize_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::get_is_checked_value<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::get_is_not_checked_value<\/a>"],[76.92307692307693,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::print_field_callback<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::print_field_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::__construct<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::print_field_callback<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::add_settings_field<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::register_setting<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::print_field_callback<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::sanitize_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::get_is_checked_value<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::get_is_not_checked_value<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_message<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_wp_user<\/a>"],[0,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_url<\/a>"],[100,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_code<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_password<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::verify_autologin_password<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::delete_expired_codes<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::should_allow_login_attempt<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_ip_address<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_expiry_age<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_add_autologin_for_admins_is_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_array<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_dictionary<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_should_use_wp_login<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_log_level<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_slug<\/a>"],[66.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_version<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_name<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_basename<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_klaviyo_private_api_key<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::is_magic_link_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::__construct<\/a>"],[91.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::create_db<\/a>"],[37.83783783783784,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::save<\/a>"],[86.20689655172413,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::get_value_for_code<\/a>"],[75,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::save<\/a>"],[85.71428571428571,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::get_value_for_code<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::is_querystring_valid<\/a>"],[94.44444444444444,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::get_wp_user_array<\/a>"],[90,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::is_querystring_valid<\/a>"],[75,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_wp_user_array<\/a>"],[83.87096774193549,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_user_data<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::is_querystring_valid<\/a>"],[68.75,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::get_wp_user_array<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::get_wp_user_array<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::__construct<\/a>"],[79.41176470588235,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::get_user_finder<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::set_locale<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::setup_api<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_admin_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_login_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_plugins_page_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_plugin_installer_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_wp_mail_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_wp_login_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_cron_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_woocommerce_admin_order_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_woocommerce_login_form_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_logger_hooks<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_cli_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_rest_api_hooks<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Logger\\Klaviyo_Logs::link_to_klaviyo_profile_search<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax::__construct<\/a>"],[61.111111111111114,6,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax::email_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::__construct<\/a>"],[66.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::enqueue_styles<\/a>"],[94.11764705882352,2,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::enqueue_scripts<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::__construct<\/a>"],[75,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::add_to_payment_url<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::remove_arrow_from_link_text<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_script<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_styles<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::is_on_shop_order_edit_screen<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::__construct<\/a>"],[95.34883720930233,7,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::prefill_checkout_fields<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::__construct<\/a>"],[94.44444444444444,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::enqueue_script<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::__construct<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::add_autologin_to_url<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::schedule_job<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n::load_plugin_textdomain<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::__construct<\/a>"],[70,12,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::process<\/a>"],[64.28571428571429,6,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::maybe_redirect<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::register_routes<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item_permissions_check<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::prepare_item_for_response<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_item_schema<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_args_schema<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::__construct<\/a>"],[74.19354838709677,15,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::add_autologin_links_to_email<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::enqueue_styles<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Admin_Assets::enqueue_scripts<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugin_Installer::add_settings_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::action_links<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Plugins_Page::row_meta<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::add_settings_page<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::display_plugin_admin_page<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::setup_sections<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Page::setup_fields<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit::__construct<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\User_Edit::make_password_available_on_user_page<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::__construct<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::add_magic_email_link<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::send_magic_email_link<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Users_List_Table::print_admin_notice<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::print_field_callback<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Admin_Enable::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::__construct<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::get_is_checked_value<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::get_is_not_checked_value<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::print_field_callback<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Checkbox_Setting_Element_Abstract::sanitize_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::get_is_checked_value<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::get_is_not_checked_value<\/a>"],[76.92307692307693,4,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Enable_Magic_Links::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::print_field_callback<\/a>"],[100,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Expiry_Age::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::print_field_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Klaviyo_Private_Key::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::__construct<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::print_field_callback<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Log_Level::sanitize_callback<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::add_settings_field<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::register_setting<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::print_field_callback<\/a>"],[100,0,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Settings_Section_Element_Abstract::sanitize_callback<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::get_is_checked_value<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::get_is_not_checked_value<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\Admin\\Settings_Fields\\Use_WP_Login::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_message<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_wp_user<\/a>"],[0,10,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::add_autologin_to_url<\/a>"],[100,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_code<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::generate_password<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::verify_autologin_password<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::delete_expired_codes<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::should_allow_login_attempt<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::get_ip_address<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\API::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_expiry_age<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_add_autologin_for_admins_is_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_array<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_disallowed_subjects_regex_dictionary<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_should_use_wp_login<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_log_level<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_slug<\/a>"],[66.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_version<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_name<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_plugin_basename<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::get_klaviyo_private_api_key<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Settings::is_magic_link_enabled<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::create_db<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::save<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::get_value_for_code<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\DB_Data_Store::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::save<\/a>"],[85.71428571428571,3,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::get_value_for_code<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Data_Stores\\Transient_Data_Store::delete_expired_codes<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::is_querystring_valid<\/a>"],[0,9,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Autologin_URLs::get_wp_user_array<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::is_querystring_valid<\/a>"],[0,4,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_wp_user_array<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\Klaviyo::get_user_data<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\MailPoet::get_wp_user_array<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::is_querystring_valid<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\The_Newsletter_Plugin::get_wp_user_array<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::__construct<\/a>"],[79.41176470588235,13,"BrianHenryIE\\WP_Autologin_URLs\\API\\Integrations\\User_Finder_Factory::get_user_finder<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::__construct<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::set_locale<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::setup_api<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_admin_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_login_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_plugins_page_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_plugin_installer_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_wp_mail_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_wp_login_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_cron_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_woocommerce_admin_order_ui_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_woocommerce_login_form_hooks<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_logger_hooks<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_cli_hooks<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\BH_WP_Autologin_URLs::define_rest_api_hooks<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\Logger\\Klaviyo_Logs::link_to_klaviyo_profile_search<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax::__construct<\/a>"],[61.111111111111114,6,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Ajax::email_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::__construct<\/a>"],[66.66666666666666,2,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::enqueue_styles<\/a>"],[94.11764705882352,2,"BrianHenryIE\\WP_Autologin_URLs\\Login\\Login_Assets::enqueue_scripts<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::add_to_payment_url<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::remove_arrow_from_link_text<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_script<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_styles<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::is_on_shop_order_edit_screen<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::__construct<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::prefill_checkout_fields<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::__construct<\/a>"],[94.44444444444444,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::enqueue_script<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::__construct<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::add_autologin_to_url<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::schedule_job<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n::load_plugin_textdomain<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::__construct<\/a>"],[0,12,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::process<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::maybe_redirect<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::register_routes<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item_permissions_check<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::prepare_item_for_response<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_item_schema<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_args_schema<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::__construct<\/a>"],[74.19354838709677,15,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::add_autologin_links_to_email<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/phpunit/src/index.html b/phpunit/src/index.html index a19b1e6..6c5de4f 100644 --- a/phpunit/src/index.html +++ b/phpunit/src/index.html @@ -43,23 +43,23 @@ - Total -
-
- 51.99% covered (warning) + Total +
+
+ 31.09% covered (danger)
-
51.99%
-
627 / 1206
+
31.09%
+
375 / 1206
-
- 48.94% covered (danger) +
+ 43.97% covered (danger)
-
48.94%
-
69 / 141
+
43.97%
+
62 / 141
19.44% covered (danger) @@ -101,21 +101,21 @@ api
-
- 47.39% covered (danger) +
+ 17.07% covered (danger)
-
47.39%
-
236 / 498
+
17.07%
+
85 / 498
-
- 45.83% covered (danger) +
+ 35.42% covered (danger)
-
45.83%
-
22 / 48
+
35.42%
+
17 / 48
0.00% covered (danger) @@ -183,23 +183,23 @@ - woocommerce -
-
- 93.98% covered (success) + woocommerce +
+
+ 38.55% covered (danger)
-
93.98%
-
78 / 83
-
-
- 60.00% covered (warning) +
38.55%
+
32 / 83
+
+
+ 50.00% covered (danger)
-
60.00%
-
6 / 10
+
50.00%
+
5 / 10
0.00% covered (danger) @@ -213,21 +213,21 @@ wp-includes
-
- 39.33% covered (danger) +
+ 16.32% covered (danger)
-
39.33%
-
94 / 239
+
16.32%
+
39 / 239
-
- 31.58% covered (danger) +
+ 26.32% covered (danger)
-
31.58%
-
6 / 19
+
26.32%
+
5 / 19
33.33% covered (danger) @@ -279,7 +279,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/logger/class-klaviyo-logs.php.html b/phpunit/src/logger/class-klaviyo-logs.php.html index c9f6ef5..dd10f2c 100644 --- a/phpunit/src/logger/class-klaviyo-logs.php.html +++ b/phpunit/src/logger/class-klaviyo-logs.php.html @@ -201,7 +201,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/logger/dashboard.html b/phpunit/src/logger/dashboard.html index f616279..96f1105 100644 --- a/phpunit/src/logger/dashboard.html +++ b/phpunit/src/logger/dashboard.html @@ -141,7 +141,7 @@

Project Risks

diff --git a/phpunit/src/logger/index.html b/phpunit/src/logger/index.html index 85051fc..549ecf8 100644 --- a/phpunit/src/logger/index.html +++ b/phpunit/src/logger/index.html @@ -112,7 +112,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/login/class-login-ajax.php.html b/phpunit/src/login/class-login-ajax.php.html index d9552af..d87c1a9 100644 --- a/phpunit/src/login/class-login-ajax.php.html +++ b/phpunit/src/login/class-login-ajax.php.html @@ -249,7 +249,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/login/class-login-assets.php.html b/phpunit/src/login/class-login-assets.php.html index 62d2667..7c950bd 100644 --- a/phpunit/src/login/class-login-assets.php.html +++ b/phpunit/src/login/class-login-assets.php.html @@ -268,7 +268,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/login/dashboard.html b/phpunit/src/login/dashboard.html index fcd15f5..de13747 100644 --- a/phpunit/src/login/dashboard.html +++ b/phpunit/src/login/dashboard.html @@ -143,7 +143,7 @@

Project Risks

diff --git a/phpunit/src/login/index.html b/phpunit/src/login/index.html index dd41a81..97ccd37 100644 --- a/phpunit/src/login/index.html +++ b/phpunit/src/login/index.html @@ -140,7 +140,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/woocommerce/class-admin-order-ui.php.html b/phpunit/src/woocommerce/class-admin-order-ui.php.html index 057bb8a..29e419a 100644 --- a/phpunit/src/woocommerce/class-admin-order-ui.php.html +++ b/phpunit/src/woocommerce/class-admin-order-ui.php.html @@ -44,23 +44,23 @@ - Total -
-
- 95.00% covered (success) + Total +
+
+ 70.00% covered (warning)
-
95.00%
-
19 / 20
+
70.00%
+
14 / 20
-
- 83.33% covered (warning) +
+ 66.67% covered (warning)
-
83.33%
-
5 / 6
+
66.67%
+
4 / 6
CRAP
@@ -73,24 +73,24 @@ - Admin_Order_UI -
-
- 95.00% covered (success) + Admin_Order_UI +
+
+ 70.00% covered (warning)
-
95.00%
-
19 / 20
+
70.00%
+
14 / 20
-
- 83.33% covered (warning) +
+ 66.67% covered (warning)
-
83.33%
-
5 / 6
- 13 +
66.67%
+
4 / 6
+ 17.56
0.00% covered (danger) @@ -102,37 +102,37 @@ -  __construct -
-
- 100.00% covered (success) +  __construct +
+
+ 0.00% covered (danger)
-
100.00%
-
2 / 2
-
-
- 100.00% covered (success) +
0.00%
+
0 / 2
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 - +
0.00%
+
0 / 1
+ 2 + -  add_to_payment_url -
-
- 75.00% covered (warning) +  add_to_payment_url +
+
+ 0.00% covered (danger)
-
75.00%
-
3 / 4
+
0.00%
+
0 / 4
0.00% covered (danger) @@ -141,7 +141,7 @@
0.00%
0 / 1
- 2.06 + 6 @@ -287,8 +287,8 @@ 46     * @param Settings_Interface $settings The settings, to find the plugin version for cache versioning. 47     */ 48    public function __construct( API_Interface $api, Settings_Interface $settings ) { - 49        $this->settings = $settings; - 50        $this->api      = $api; + 49        $this->settings = $settings; + 50        $this->api      = $api; 51    } 52 53    /** @@ -307,13 +307,13 @@ 66    public function add_to_payment_url( string $payment_url, WC_Order $order ): string { 67 68        // Without this check for admin UI, autologin codes were being created on every REST request by the 3PF fulfillment. - 69        if ( ! is_admin() ) { + 69        if ( ! is_admin() ) { 70            return $payment_url; 71        } 72 - 73        $payment_url = $this->api->add_autologin_to_url( $payment_url, $order->get_billing_email() ); + 73        $payment_url = $this->api->add_autologin_to_url( $payment_url, $order->get_billing_email() ); 74 - 75        return $payment_url; + 75        return $payment_url; 76    } 77 78    /** @@ -396,7 +396,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/woocommerce/class-checkout.php.html b/phpunit/src/woocommerce/class-checkout.php.html index 6b26b60..49f0604 100644 --- a/phpunit/src/woocommerce/class-checkout.php.html +++ b/phpunit/src/woocommerce/class-checkout.php.html @@ -44,15 +44,15 @@ - Total -
-
- 93.18% covered (success) + Total +
+
+ 0.00% covered (danger)
-
93.18%
-
41 / 44
+
0.00%
+
0 / 44
0.00% covered (danger) @@ -73,15 +73,15 @@ - Checkout -
-
- 93.18% covered (success) + Checkout +
+
+ 0.00% covered (danger)
-
93.18%
-
41 / 44
+
0.00%
+
0 / 44
0.00% covered (danger) @@ -90,7 +90,7 @@
0.00%
0 / 2
- 8.02 + 72
0.00% covered (danger) @@ -124,15 +124,15 @@ -  prefill_checkout_fields -
-
- 95.35% covered (success) +  prefill_checkout_fields +
+
+ 0.00% covered (danger)
-
95.35%
-
41 / 43
+
0.00%
+
0 / 43
0.00% covered (danger) @@ -141,7 +141,7 @@
0.00%
0 / 1
- 7 + 56 @@ -193,72 +193,72 @@ 40     * @param array{email:string, first_name:string, last_name:string} $user_info Information e.g. first name, last name that might be available from MailPoet/Newsletter/Klaviyo. 41     */ 42    public function prefill_checkout_fields( array $user_info ): void { - 43        $this->logger->debug( 'Prefilling WooCommerce checkout.', $user_info ); + 43        $this->logger->debug( 'Prefilling WooCommerce checkout.', $user_info ); 44 - 45        WC()->session->set_customer_session_cookie( true ); + 45        WC()->session->set_customer_session_cookie( true ); 46 - 47        if ( ! empty( $user_info['email'] ) && is_email( $user_info['email'] ) ) { - 48            WC()->session->set( 'billing_email', $user_info['email'] ); - 49            WC()->customer->set_billing_email( $user_info['email'] ); + 47        if ( ! empty( $user_info['email'] ) && is_email( $user_info['email'] ) ) { + 48            WC()->session->set( 'billing_email', $user_info['email'] ); + 49            WC()->customer->set_billing_email( $user_info['email'] ); 50        } 51 - 52        if ( ! empty( $user_info['first_name'] ) ) { - 53            WC()->customer->set_first_name( $user_info['first_name'] ); - 54            WC()->customer->set_billing_first_name( $user_info['first_name'] ); - 55            WC()->customer->set_shipping_first_name( $user_info['first_name'] ); + 52        if ( ! empty( $user_info['first_name'] ) ) { + 53            WC()->customer->set_first_name( $user_info['first_name'] ); + 54            WC()->customer->set_billing_first_name( $user_info['first_name'] ); + 55            WC()->customer->set_shipping_first_name( $user_info['first_name'] ); 56        } 57 - 58        if ( ! empty( $user_info['last_name'] ) ) { - 59            WC()->customer->set_last_name( $user_info['last_name'] ); - 60            WC()->customer->set_billing_last_name( $user_info['last_name'] ); - 61            WC()->customer->set_shipping_last_name( $user_info['last_name'] ); + 58        if ( ! empty( $user_info['last_name'] ) ) { + 59            WC()->customer->set_last_name( $user_info['last_name'] ); + 60            WC()->customer->set_billing_last_name( $user_info['last_name'] ); + 61            WC()->customer->set_shipping_last_name( $user_info['last_name'] ); 62        } 63 - 64        if ( ! isset( $user_info['email'] ) ) { + 64        if ( ! isset( $user_info['email'] ) ) { 65            return; 66        } 67 68        // Hook after `woocommerce_after_register_post_type` otherwise "wc_get_order was called incorrectly" warning is shown. - 69        add_action( - 70            'woocommerce_after_register_post_type', - 71            function () use ( $user_info ) { + 69        add_action( + 70            'woocommerce_after_register_post_type', + 71            function () use ( $user_info ) { 72 73                /** 74                 * Try to get one past order placed by this email address. 75                 * 76                 * @var WC_Order[] $customer_orders 77                 */ - 78                $customer_orders = wc_get_orders( - 79                    array( - 80                        'customer' => $user_info['email'], - 81                        'limit'    => 1, - 82                        'order'    => 'DESC', - 83                        'orderby'  => 'id', - 84                        'paginate' => false, - 85                    ) - 86                ); + 78                $customer_orders = wc_get_orders( + 79                    array( + 80                        'customer' => $user_info['email'], + 81                        'limit'    => 1, + 82                        'order'    => 'DESC', + 83                        'orderby'  => 'id', + 84                        'paginate' => false, + 85                    ) + 86                ); 87 - 88                if ( count( $customer_orders ) > 0 ) { + 88                if ( count( $customer_orders ) > 0 ) { 89 - 90                    $order = $customer_orders[0]; + 90                    $order = $customer_orders[0]; 91 - 92                    WC()->customer->set_billing_country( $order->get_billing_country() ); - 93                    WC()->customer->set_billing_postcode( $order->get_billing_postcode() ); - 94                    WC()->customer->set_billing_state( $order->get_billing_state() ); - 95                    WC()->customer->set_billing_last_name( $order->get_billing_last_name() ); - 96                    WC()->customer->set_billing_first_name( $order->get_billing_first_name() ); - 97                    WC()->customer->set_billing_address_1( $order->get_billing_address_1() ); - 98                    WC()->customer->set_billing_address_2( $order->get_billing_address_2() ); - 99                    WC()->customer->set_billing_city( $order->get_billing_city() ); - 100                    WC()->customer->set_billing_company( $order->get_billing_company() ); - 101                    WC()->customer->set_billing_phone( $order->get_billing_phone() ); + 92                    WC()->customer->set_billing_country( $order->get_billing_country() ); + 93                    WC()->customer->set_billing_postcode( $order->get_billing_postcode() ); + 94                    WC()->customer->set_billing_state( $order->get_billing_state() ); + 95                    WC()->customer->set_billing_last_name( $order->get_billing_last_name() ); + 96                    WC()->customer->set_billing_first_name( $order->get_billing_first_name() ); + 97                    WC()->customer->set_billing_address_1( $order->get_billing_address_1() ); + 98                    WC()->customer->set_billing_address_2( $order->get_billing_address_2() ); + 99                    WC()->customer->set_billing_city( $order->get_billing_city() ); + 100                    WC()->customer->set_billing_company( $order->get_billing_company() ); + 101                    WC()->customer->set_billing_phone( $order->get_billing_phone() ); 102 - 103                    $this->logger->info( "Set customer checkout details from past order wc_order:{$order->get_id()}" ); + 103                    $this->logger->info( "Set customer checkout details from past order wc_order:{$order->get_id()}" ); 104                } else { 105                    $this->logger->debug( 'No past orders found for user.' ); 106                } - 107            } - 108        ); + 107            } + 108        ); 109    } 110} @@ -271,7 +271,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/woocommerce/class-login-form.php.html b/phpunit/src/woocommerce/class-login-form.php.html index ba601f3..8aaee27 100644 --- a/phpunit/src/woocommerce/class-login-form.php.html +++ b/phpunit/src/woocommerce/class-login-form.php.html @@ -230,7 +230,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/woocommerce/dashboard.html b/phpunit/src/woocommerce/dashboard.html index e977327..29ff045 100644 --- a/phpunit/src/woocommerce/dashboard.html +++ b/phpunit/src/woocommerce/dashboard.html @@ -59,6 +59,8 @@

Insufficient Coverage

+
BrianHenryIE\WP_Autologin_URLs\WooCommerce\Checkout0% + BrianHenryIE\WP_Autologin_URLs\WooCommerce\Admin_Order_UI70% @@ -75,6 +77,8 @@

Project Risks

+ BrianHenryIE\WP_Autologin_URLs\WooCommerce\Checkout72 + BrianHenryIE\WP_Autologin_URLs\WooCommerce\Admin_Order_UI17 @@ -112,8 +116,10 @@

Insufficient Coverage

+ __construct0% + add_to_payment_url0% __construct0% - add_to_payment_url75% + prefill_checkout_fields0% @@ -130,7 +136,8 @@

Project Risks

- add_to_payment_url2 + prefill_checkout_fields56 + add_to_payment_url6 @@ -140,7 +147,7 @@

Project Risks

@@ -159,7 +166,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,3,0], "Class Coverage")) + .datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,1,0,1,0], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -177,7 +184,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,1,0,2,6], "Method Coverage")) + .datum(getCoverageDistributionData([4,0,0,0,0,0,0,0,0,0,1,5], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -227,7 +234,7 @@

Project Risks

chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[95,13,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI<\/a>"],[93.18181818181817,8,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout<\/a>"],[94.73684210526315,3,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[70,13,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI<\/a>"],[0,8,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout<\/a>"],[94.73684210526315,3,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -251,7 +258,7 @@

Project Risks

chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,1,"
BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::__construct<\/a>"],[75,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::add_to_payment_url<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::remove_arrow_from_link_text<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_script<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_styles<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::is_on_shop_order_edit_screen<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::__construct<\/a>"],[95.34883720930233,7,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::prefill_checkout_fields<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::__construct<\/a>"],[94.44444444444444,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::enqueue_script<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::__construct<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::add_to_payment_url<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::remove_arrow_from_link_text<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_script<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::enqueue_styles<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Admin_Order_UI::is_on_shop_order_edit_screen<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::__construct<\/a>"],[0,7,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Checkout::prefill_checkout_fields<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::__construct<\/a>"],[94.44444444444444,2,"BrianHenryIE\\WP_Autologin_URLs\\WooCommerce\\Login_Form::enqueue_script<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/phpunit/src/woocommerce/index.html b/phpunit/src/woocommerce/index.html index 9c68e92..389b463 100644 --- a/phpunit/src/woocommerce/index.html +++ b/phpunit/src/woocommerce/index.html @@ -44,23 +44,23 @@ - Total -
-
- 93.98% covered (success) + Total +
+
+ 38.55% covered (danger)
-
93.98%
-
78 / 83
-
-
- 60.00% covered (warning) +
38.55%
+
32 / 83
+
+
+ 50.00% covered (danger)
-
60.00%
-
6 / 10
+
50.00%
+
5 / 10
0.00% covered (danger) @@ -72,23 +72,23 @@ - class-admin-order-ui.php -
-
- 95.00% covered (success) + class-admin-order-ui.php +
+
+ 70.00% covered (warning)
-
95.00%
-
19 / 20
+
70.00%
+
14 / 20
-
- 83.33% covered (warning) +
+ 66.67% covered (warning)
-
83.33%
-
5 / 6
+
66.67%
+
4 / 6
0.00% covered (danger) @@ -100,15 +100,15 @@ - class-checkout.php -
-
- 93.18% covered (success) + class-checkout.php +
+
+ 0.00% covered (danger)
-
93.18%
-
41 / 44
+
0.00%
+
0 / 44
0.00% covered (danger) @@ -168,7 +168,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/wp-includes/class-cli.php.html b/phpunit/src/wp-includes/class-cli.php.html index f86aa68..6b5dfdb 100644 --- a/phpunit/src/wp-includes/class-cli.php.html +++ b/phpunit/src/wp-includes/class-cli.php.html @@ -321,7 +321,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/wp-includes/class-cron.php.html b/phpunit/src/wp-includes/class-cron.php.html index 0986cd2..2aa87da 100644 --- a/phpunit/src/wp-includes/class-cron.php.html +++ b/phpunit/src/wp-includes/class-cron.php.html @@ -255,7 +255,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/wp-includes/class-i18n.php.html b/phpunit/src/wp-includes/class-i18n.php.html index 53f9083..f17dfb0 100644 --- a/phpunit/src/wp-includes/class-i18n.php.html +++ b/phpunit/src/wp-includes/class-i18n.php.html @@ -178,7 +178,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/wp-includes/class-login.php.html b/phpunit/src/wp-includes/class-login.php.html index ebb2c64..a1f3eb0 100644 --- a/phpunit/src/wp-includes/class-login.php.html +++ b/phpunit/src/wp-includes/class-login.php.html @@ -44,23 +44,23 @@ - Total -
-
- 70.51% covered (warning) + Total +
+
+ 0.00% covered (danger)
-
70.51%
-
55 / 78
+
0.00%
+
0 / 78
-
- 33.33% covered (danger) +
+ 0.00% covered (danger)
-
33.33%
-
1 / 3
+
0.00%
+
0 / 3
CRAP
@@ -73,24 +73,24 @@ - Login -
-
- 70.51% covered (warning) + Login +
+
+ 0.00% covered (danger)
-
70.51%
-
55 / 78
+
0.00%
+
0 / 78
-
- 33.33% covered (danger) +
+ 0.00% covered (danger)
-
33.33%
-
1 / 3
- 28.26 +
0.00%
+
0 / 3
+ 380
0.00% covered (danger) @@ -102,37 +102,37 @@ -  __construct -
-
- 100.00% covered (success) +  __construct +
+
+ 0.00% covered (danger)
-
100.00%
-
4 / 4
-
-
- 100.00% covered (success) +
0.00%
+
0 / 4
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 - +
0.00%
+
0 / 1
+ 2 + -  process -
-
- 70.00% covered (warning) +  process +
+
+ 0.00% covered (danger)
-
70.00%
-
42 / 60
+
0.00%
+
0 / 60
0.00% covered (danger) @@ -141,20 +141,20 @@
0.00%
0 / 1
- 15.89 + 156 -  maybe_redirect -
-
- 64.29% covered (warning) +  maybe_redirect +
+
+ 0.00% covered (danger)
-
64.29%
-
9 / 14
+
0.00%
+
0 / 14
0.00% covered (danger) @@ -163,7 +163,7 @@
0.00%
0 / 1
- 7.64 + 42 @@ -238,12 +238,12 @@ 63     * @since   1.0.0 64     */ 65    public function __construct( API_Interface $api, Settings_Interface $settings, LoggerInterface $logger, ?User_Finder_Factory $user_finder_factory = null ) { - 66        $this->setLogger( $logger ); + 66        $this->setLogger( $logger ); 67 - 68        $this->settings = $settings; - 69        $this->api      = $api; + 68        $this->settings = $settings; + 69        $this->api      = $api; 70 - 71        $this->user_finder_factory = $user_finder_factory ?? new User_Finder_Factory( $this->api, $this->settings, $this->logger ); + 71        $this->user_finder_factory = $user_finder_factory ?? new User_Finder_Factory( $this->api, $this->settings, $this->logger ); 72    } 73 74    /** @@ -256,39 +256,39 @@ 81     */ 82    public function process( $user_id ) { 83 - 84        remove_action( 'determine_current_user', array( $this, 'process' ), 30 ); + 84        remove_action( 'determine_current_user', array( $this, 'process' ), 30 ); 85 86        // If we're logged in already, or there's no querystring to parse, just return. 87        // phpcs:ignore WordPress.Security.NonceVerification.Recommended - 88        if ( $user_id || empty( $_GET ) ) { - 89            return $user_id; + 88        if ( $user_id || empty( $_GET ) ) { + 89            return $user_id; 90        } 91 92        // Check for bots. 93        // Use the null coalescing operator to ensure $user_agent is always a string. 94        // This prevents passing null to strpos, which is deprecated in newer PHP versions. - 95        $user_agent = filter_input( INPUT_SERVER, 'HTTP_USER_AGENT' ) ?? ''; - 96        $bot        = false !== strpos( $user_agent, 'bot' ); - 97        if ( $bot ) { + 95        $user_agent = filter_input( INPUT_SERVER, 'HTTP_USER_AGENT' ) ?? ''; + 96        $bot        = false !== strpos( $user_agent, 'bot' ); + 97        if ( $bot ) { 98            return $user_id; 99        } 100 101        // Maybe use a cookie to only use an autologin URL once every x minutes. 102 103        // Checks does the querystring contain an autologin parameter. - 104        $user_finder = $this->user_finder_factory->get_user_finder(); + 104        $user_finder = $this->user_finder_factory->get_user_finder(); 105 - 106        if ( is_null( $user_finder ) ) { + 106        if ( is_null( $user_finder ) ) { 107            // No querystring was present, this was not an attempt to log in. 108            return $user_id; 109        } 110 - 111        $user_array = $user_finder->get_wp_user_array(); + 111        $user_array = $user_finder->get_wp_user_array(); 112 - 113        if ( isset( $user_array['wp_user'] ) && $user_array['wp_user'] instanceof WP_User ) { - 114            $this->logger->debug( "Found `wp_user:{$user_array['wp_user']->ID}`." ); - 115            $wp_user = $user_array['wp_user']; - 116            $user_id = $wp_user->ID; + 113        if ( isset( $user_array['wp_user'] ) && $user_array['wp_user'] instanceof WP_User ) { + 114            $this->logger->debug( "Found `wp_user:{$user_array['wp_user']->ID}`." ); + 115            $wp_user = $user_array['wp_user']; + 116            $user_id = $wp_user->ID; 117        } elseif ( ! empty( $user_array['user_data'] ) ) { 118            // If no WP_User account was found, but other user data was found that could be used for WooCommerce, prepopulate the checkout fields. 119            $this->logger->debug( 'No wp_user found, preloading WooCommerce fields.', $user_array ); @@ -307,20 +307,20 @@ 132            return $user_id; 133        } 134 - 135        $ip_address = $this->api->get_ip_address(); + 135        $ip_address = $this->api->get_ip_address(); 136 - 137        if ( empty( $ip_address ) ) { + 137        if ( empty( $ip_address ) ) { 138            // This would be empty during cron jobs and WP CLI. 139            return $user_id; 140        } 141 142        // Log each attempt to log in, prevent too many attempts by any one IP. - 143        if ( ! $this->api->should_allow_login_attempt( "ip:{$ip_address}" ) ) { + 143        if ( ! $this->api->should_allow_login_attempt( "ip:{$ip_address}" ) ) { 144            return $user_id; 145        } 146 147        // Rate limit too many failed attempts at logging in the one user. - 148        if ( ! $this->api->should_allow_login_attempt( "wp_user:{$wp_user->ID}" ) ) { + 148        if ( ! $this->api->should_allow_login_attempt( "wp_user:{$wp_user->ID}" ) ) { 149            return $user_id; 150        } 151 @@ -332,38 +332,38 @@ 157         * @see auth_redirect() 158         * @see wp_parse_auth_cookie() 159         */ - 160        add_action( - 161            'set_auth_cookie', - 162            function ( $auth_cookie ) { - 163                global $_COOKIE; - 164                $_COOKIE[ AUTH_COOKIE ]        = $auth_cookie; - 165                $_COOKIE[ SECURE_AUTH_COOKIE ] = $auth_cookie; - 166            } - 167        ); + 160        add_action( + 161            'set_auth_cookie', + 162            function ( $auth_cookie ) { + 163                global $_COOKIE; + 164                $_COOKIE[ AUTH_COOKIE ]        = $auth_cookie; + 165                $_COOKIE[ SECURE_AUTH_COOKIE ] = $auth_cookie; + 166            } + 167        ); 168 - 169        add_action( - 170            'set_logged_in_cookie', - 171            function ( $logged_in_cookie ) { - 172                global $_COOKIE; - 173                $_COOKIE[ LOGGED_IN_COOKIE ] = $logged_in_cookie; - 174            } - 175        ); + 169        add_action( + 170            'set_logged_in_cookie', + 171            function ( $logged_in_cookie ) { + 172                global $_COOKIE; + 173                $_COOKIE[ LOGGED_IN_COOKIE ] = $logged_in_cookie; + 174            } + 175        ); 176 177        // @see https://developer.wordpress.org/reference/functions/wp_set_current_user/ - 178        wp_set_current_user( $wp_user->ID, $wp_user->user_login ); - 179        wp_set_auth_cookie( $wp_user->ID ); - 180        add_action( - 181            'init', - 182            function () use ( $wp_user ) { + 178        wp_set_current_user( $wp_user->ID, $wp_user->user_login ); + 179        wp_set_auth_cookie( $wp_user->ID ); + 180        add_action( + 181            'init', + 182            function () use ( $wp_user ) { 183                do_action( 'wp_login', $wp_user->user_login, $wp_user ); - 184            } - 185        ); + 184            } + 185        ); 186 - 187        $this->logger->info( "User wp_user:{$wp_user->ID} logged in via {$user_array['source']}." ); + 187        $this->logger->info( "User wp_user:{$wp_user->ID} logged in via {$user_array['source']}." ); 188 - 189        $this->maybe_redirect(); + 189        $this->maybe_redirect(); 190 - 191        return $user_id; + 191        return $user_id; 192    } 193 194    /** @@ -371,36 +371,36 @@ 196     */ 197    protected function maybe_redirect(): void { 198 - 199        if ( ! isset( $_SERVER['REQUEST_URI'] ) ) { + 199        if ( ! isset( $_SERVER['REQUEST_URI'] ) ) { 200            // Cron, WP CLI. 201            return; 202        } 203 - 204        $request_uri = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ); + 204        $request_uri = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ); 205 206        // Check is the requested URL wp-login.php. Otherwise we don't want to redirect. - 207        $wp_login_endpoint = str_replace( get_site_url(), '', wp_login_url() ); - 208        if ( ! stristr( $request_uri, $wp_login_endpoint ) ) { + 207        $wp_login_endpoint = str_replace( get_site_url(), '', wp_login_url() ); + 208        if ( ! stristr( $request_uri, $wp_login_endpoint ) ) { 209            return; 210        } 211 212        // Check we're on wp-login.php?redirect_to=... 213        // We won't have a nonce here if the link is from an email. 214        // phpcs:disable WordPress.Security.NonceVerification.Recommended - 215        if ( isset( $_GET['redirect_to'] ) ) { + 215        if ( isset( $_GET['redirect_to'] ) ) { 216 - 217            $url = filter_var( wp_unslash( $_GET['redirect_to'] ), FILTER_SANITIZE_STRING ); - 218            if ( false === $url ) { + 217            $url = filter_var( wp_unslash( $_GET['redirect_to'] ), FILTER_SANITIZE_STRING ); + 218            if ( false === $url ) { 219                return; 220            } - 221            $redirect_to = urldecode( $url ); + 221            $redirect_to = urldecode( $url ); 222 223        } else { 224            // TODO: There's a filter determining what the destination URL should be when logging in a user. 225            $redirect_to = get_site_url(); 226        } 227 - 228        if ( wp_safe_redirect( $redirect_to ) ) { + 228        if ( wp_safe_redirect( $redirect_to ) ) { 229            exit(); 230        } 231    } @@ -415,7 +415,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/wp-includes/class-rest-api.php.html b/phpunit/src/wp-includes/class-rest-api.php.html index f46fb04..a2f6580 100644 --- a/phpunit/src/wp-includes/class-rest-api.php.html +++ b/phpunit/src/wp-includes/class-rest-api.php.html @@ -462,7 +462,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/wp-includes/class-wp-mail.php.html b/phpunit/src/wp-includes/class-wp-mail.php.html index 732f02b..e3f811e 100644 --- a/phpunit/src/wp-includes/class-wp-mail.php.html +++ b/phpunit/src/wp-includes/class-wp-mail.php.html @@ -313,7 +313,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/src/wp-includes/dashboard.html b/phpunit/src/wp-includes/dashboard.html index fbb6b41..1696cd3 100644 --- a/phpunit/src/wp-includes/dashboard.html +++ b/phpunit/src/wp-includes/dashboard.html @@ -60,8 +60,8 @@

Insufficient Coverage

BrianHenryIE\WP_Autologin_URLs\WP_Includes\CLI0% + BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login0% BrianHenryIE\WP_Autologin_URLs\WP_Includes\REST_API0% - BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login70% BrianHenryIE\WP_Autologin_URLs\WP_Includes\WP_Mail75% @@ -79,9 +79,9 @@

Project Risks

+ BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login380 BrianHenryIE\WP_Autologin_URLs\WP_Includes\REST_API272 BrianHenryIE\WP_Autologin_URLs\WP_Includes\CLI90 - BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login28 BrianHenryIE\WP_Autologin_URLs\WP_Includes\WP_Mail19 @@ -123,6 +123,9 @@

Insufficient Coverage

__construct0% add_autologin_to_url0% send_magic_link0% + __construct0% + process0% + maybe_redirect0% __construct0% register_routes0% create_item0% @@ -130,8 +133,6 @@

Insufficient Coverage

prepare_item_for_response0% get_item_schema0% get_args_schema0% - maybe_redirect64% - process70% add_autologin_links_to_email74% @@ -149,13 +150,13 @@

Project Risks

+ process156 + maybe_redirect42 add_autologin_to_url30 create_item30 create_item_permissions_check30 add_autologin_links_to_email18 - process15 send_magic_link12 - maybe_redirect7 prepare_item_for_response6 @@ -166,7 +167,7 @@

Project Risks

@@ -185,7 +186,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([2,0,0,0,0,0,0,0,2,0,0,2], "Class Coverage")) + .datum(getCoverageDistributionData([3,0,0,0,0,0,0,0,1,0,0,2], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -203,7 +204,7 @@

Project Risks

.yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([10,0,0,0,0,0,0,1,2,0,0,6], "Method Coverage")) + .datum(getCoverageDistributionData([13,0,0,0,0,0,0,0,1,0,0,5], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -253,7 +254,7 @@

Project Risks

chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[0,9,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n<\/a>"],[70.51282051282051,19,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login<\/a>"],[0,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API<\/a>"],[75.75757575757575,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[0,9,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI<\/a>"],[100,4,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n<\/a>"],[0,19,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login<\/a>"],[0,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API<\/a>"],[75.75757575757575,16,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -277,7 +278,7 @@

Project Risks

chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[0,1,"
BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::__construct<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::add_autologin_to_url<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::schedule_job<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n::load_plugin_textdomain<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::__construct<\/a>"],[70,12,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::process<\/a>"],[64.28571428571429,6,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::maybe_redirect<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::register_routes<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item_permissions_check<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::prepare_item_for_response<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_item_schema<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_args_schema<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::__construct<\/a>"],[74.19354838709677,15,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::add_autologin_links_to_email<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::__construct<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::add_autologin_to_url<\/a>"],[0,3,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\CLI::send_magic_link<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::__construct<\/a>"],[100,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::schedule_job<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Cron::delete_expired_codes<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\I18n::load_plugin_textdomain<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::__construct<\/a>"],[0,12,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::process<\/a>"],[0,6,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\Login::maybe_redirect<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::__construct<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::register_routes<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item<\/a>"],[0,5,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::create_item_permissions_check<\/a>"],[0,2,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::prepare_item_for_response<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_item_schema<\/a>"],[0,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\REST_API::get_args_schema<\/a>"],[100,1,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::__construct<\/a>"],[74.19354838709677,15,"BrianHenryIE\\WP_Autologin_URLs\\WP_Includes\\WP_Mail::add_autologin_links_to_email<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/phpunit/src/wp-includes/index.html b/phpunit/src/wp-includes/index.html index 95fad50..e701ef5 100644 --- a/phpunit/src/wp-includes/index.html +++ b/phpunit/src/wp-includes/index.html @@ -46,21 +46,21 @@ Total
-
- 39.33% covered (danger) +
+ 16.32% covered (danger)
-
39.33%
-
94 / 239
+
16.32%
+
39 / 239
-
- 31.58% covered (danger) +
+ 26.32% covered (danger)
-
31.58%
-
6 / 19
+
26.32%
+
5 / 19
33.33% covered (danger) @@ -156,23 +156,23 @@ - class-login.php -
-
- 70.51% covered (warning) + class-login.php +
+
+ 0.00% covered (danger)
-
70.51%
-
55 / 78
+
0.00%
+
0 / 78
-
- 33.33% covered (danger) +
+ 0.00% covered (danger)
-
33.33%
-
1 / 3
+
0.00%
+
0 / 3
0.00% covered (danger) @@ -252,7 +252,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/templates/admin/dashboard.html b/phpunit/templates/admin/dashboard.html index a8fd0b3..a206076 100644 --- a/phpunit/templates/admin/dashboard.html +++ b/phpunit/templates/admin/dashboard.html @@ -137,7 +137,7 @@

Project Risks

diff --git a/phpunit/templates/admin/index.html b/phpunit/templates/admin/index.html index e5cf9ee..0d11268 100644 --- a/phpunit/templates/admin/index.html +++ b/phpunit/templates/admin/index.html @@ -110,7 +110,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/templates/admin/settings-page.php.html b/phpunit/templates/admin/settings-page.php.html index 59a2ffe..eae5382 100644 --- a/phpunit/templates/admin/settings-page.php.html +++ b/phpunit/templates/admin/settings-page.php.html @@ -122,7 +122,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/templates/admin/user-edit.php.html b/phpunit/templates/admin/user-edit.php.html index 75b30aa..0f51cef 100644 --- a/phpunit/templates/admin/user-edit.php.html +++ b/phpunit/templates/admin/user-edit.php.html @@ -110,7 +110,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/templates/dashboard.html b/phpunit/templates/dashboard.html index bbf9845..9de5b80 100644 --- a/phpunit/templates/dashboard.html +++ b/phpunit/templates/dashboard.html @@ -136,7 +136,7 @@

Project Risks

diff --git a/phpunit/templates/email/dashboard.html b/phpunit/templates/email/dashboard.html index 62fe33b..90cae99 100644 --- a/phpunit/templates/email/dashboard.html +++ b/phpunit/templates/email/dashboard.html @@ -137,7 +137,7 @@

Project Risks

diff --git a/phpunit/templates/email/index.html b/phpunit/templates/email/index.html index eb425c3..67a1c0b 100644 --- a/phpunit/templates/email/index.html +++ b/phpunit/templates/email/index.html @@ -92,7 +92,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/templates/email/magic-link.php.html b/phpunit/templates/email/magic-link.php.html index d7be72f..cc81bc1 100644 --- a/phpunit/templates/email/magic-link.php.html +++ b/phpunit/templates/email/magic-link.php.html @@ -109,7 +109,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/templates/index.html b/phpunit/templates/index.html index c9adf69..c07d166 100644 --- a/phpunit/templates/index.html +++ b/phpunit/templates/index.html @@ -109,7 +109,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.

diff --git a/phpunit/uninstall.php.html b/phpunit/uninstall.php.html index 6df6d26..8bed202 100644 --- a/phpunit/uninstall.php.html +++ b/phpunit/uninstall.php.html @@ -228,7 +228,7 @@

Legend

Covered by small (and larger) testsCovered by medium (and large) testsCovered by large tests (and tests of unknown size)Not coveredNot coverable

- Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 19:36:15 UTC 2024. + Generated by php-code-coverage 9.2.31 using PHP 7.4.33 at Sun May 26 21:40:06 UTC 2024.