public function deactivate()
 {
     // Remove Queued Updates
     EasySocialMetricsUpdater::removeAllQueuedUpdates();
 }
// since 2.0 Easy Social Image Share Module
$essb_image_options = ESSBSocialImageShareOptions::get_instance();
if ($essb_image_options->is_active_module()) {
    include_once ESSB_PLUGIN_ROOT . 'lib/modules/easy-image-share/easy-image-share.php';
}
//if (is_admin () && (! defined ( 'DOING_AJAX' ) || ! DOING_AJAX)) {
if (is_admin()) {
    include ESSB_PLUGIN_ROOT . 'lib/external/autoupdate/plugin-update-checker.php';
    include ESSB_PLUGIN_ROOT . 'lib/admin/essb-metabox.php';
    include ESSB_PLUGIN_ROOT . 'lib/extensions/essb-settings-helper.php';
    include_once ESSB_PLUGIN_ROOT . 'lib/helpers/essb-shortcode-generator.php';
    global $stats;
    $stats = EasySocialShareButtons_Stats_Admin::get_instance();
    // @since 1.3.9.5 - Hanlde activation of Easy Social Metrics Lite
    if (ESSB_ESML_ACTIVE == 'false') {
        EasySocialMetricsUpdater::removeAllQueuedUpdates();
        delete_option("esml_version");
    }
    // /end load of Easy Social Metrics Lite
    include_once ESSB_PLUGIN_ROOT . 'lib/essb-admin.php';
    add_action('plugins_loaded', array('EasySocialShareButtons_Admin', 'get_instance'));
    $puchase_code = isset($option['purchase_code']) ? $option['purchase_code'] : 'none';
    // @since 1.3.3
    // autoupdate
    // activating autoupdate option
    $essb_autoupdate = PucFactory::buildUpdateChecker('http://update.creoworx.com/essb/', __FILE__, 'easy-social-share-buttons');
    // @since 1.3.7.2 - update to avoid issues with other plugins that uses same
    // method
    function addSecretKeyESSB($query)
    {
        global $puchase_code;