• Hey Guys,

    It would be really nice if your plugin would cleanup after itself in the database upon plugin removal. Here is a list of options I found that could be removed upon plugin deletion:

    ihf_organizer_enabled
    ihf_active_trial_account
    ihf_option-layout-type
    ihf_activation_token
    ihf-acitvation_date
    ihf_email_updates_enabled
    ihf_save_listing_enabled
    ihf_hotsheet_enabled
    ihf_featured_properties_enabled
    ihf_gallery_shortcodes_enabled
    ihf_office_enabled
    ihf_agent_bio_enabled
    ihf_sold_pending_enabled
    ihf_valuation_enabled
    ihf_contact_form_enabled
    ihf_supplemental_listings_enabled
    ihf_community_pages_enabled
    ihf_seo_city_links_enabled
    ihf_map_search_enabled
    ihf_pending_account
    ihf_links_created
    ihf_authentication_token
    ihf_version_option
    ihf-compatibility-check-enabled

    Is there any possibility of others based on older versions of the plugin?

    https://wordpress.org/plugins/optima-express/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author iHomefinder, Inc.

    (@ihomefinder)

    Hello,

    We maintain the database entries because many clients deactivate or uninstall the Optima Express plugin in the course of testing and upgrading to new versions. With the database entries left available, you can reinstall the plugin without losing any settings stored by Optima Express.

    Please note that Optima Express values are always prefixed with ihf_.

    We appreciate your feedback, and I’ll pass this along to our product team, as they are always looking for ways to improve the product.

    Kind Regards,

    iHomefinder Support

    Plugin Author iHomefinder, Inc.

    (@ihomefinder)

    Hi Brandon,

    I would like to clarify that my reply stated that the values are prefixed with ihf_. Please pardon my typo, as the prefix is ihf.

    If you have any further questions or need assistance. Please feel free to email support@ihomefinder.com.

    Kind Regards,

    iHomefinder Support

    Thread Starter Brandon Hubbard

    (@bhubbard)

    Hi Guys,

    I understand your possible concern of users wanting to be able to delete and then re-install the plugin. However you can easily resolve this by prompting the user on un-install if they want to remove the data or not. Even with an re-install there may be cases where the user may want to remove the previous data. If you don’t want to do it on uninstall make it a tool in the plugin settings at least.

    In regards to the prefix, I saw the naming convention as I provided a list of the options that shows the prefix. However I should note this is not ideal. The majority of these items should just be in one options, as there is no need to have so many. See Issue number 3 in this post for details:
    http://planetozh.com/blog/2009/09/top-10-most-common-coding-mistakes-in-wordpress-plugins/

    Be sure to read #5 as well. Wondering how many of these other items you can check for 🙂

    Thread Starter Brandon Hubbard

    (@bhubbard)

    Just an update for anyone who comes across this thread. I took the time to review the plugin a bit, the way it stores code on the site is pretty scary to say the least. Pretty much everything, and I mean everything, gets stored in the wp_options table, and as a new option.

    I created an uninstaller for those who need it:
    http://imforza.github.io/optimaexpress-uninstaller/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add a uninstaller’ is closed to new replies.