public static function initialize()
 {
     self::$plugin_options = get_option('wc_ncr_options');
     self::$site_key = self::$plugin_options['site_key'];
     self::$secret_key = self::$plugin_options['secrete_key'];
     self::$theme = self::$plugin_options['theme'];
     self::$language = self::$plugin_options['language'];
     self::$error_message = self::$plugin_options['error_message'];
     add_action('plugins_loaded', array(__CLASS__, 'load_plugin_textdomain'));
     // initialize if login is activated
     if (isset(self::$plugin_options['captcha_wc_registration']) && self::$plugin_options['captcha_wc_registration'] == 'yes' || isset(self::$plugin_options['captcha_wc_login']) && self::$plugin_options['captcha_wc_login'] == 'yes' || isset(self::$plugin_options['captcha_wc_password_reset']) && self::$plugin_options['captcha_wc_password_reset'] == 'yes') {
         add_action('wp_head', array(__CLASS__, 'header_script'));
     }
 }
<?php

/*
Plugin Name: No CAPTCHA reCAPTCHA for WooCommerce
Plugin URI: http://w3guy.com
Description: Add the No CAPTCHA reCAPTCHA to WooCommerce login and registration form
Version: 1.2
Author: Agbonghama Collins
Author URI: http://w3guy.com
License: GPL2
Text Domain: wc-no-captcha
Domain Path: /lang/
*/
require_once 'base-class.php';
require_once 'registration.php';
require_once 'login.php';
require_once 'lost-password.php';
require_once 'settings.php';
WC_Ncr_No_Captcha_Recaptcha::initialize();
WC_Ncr_Login_Captcha::initialize();
WC_Ncr_Registration_Captcha::initialize();
WC_Ncr_Lost_Password_Captcha::initialize();
WC_Ncr_Settings_Page::initialize();