Single Click Plugin Updater WordPress Plugin

This plugin extends the plugin update notification feature introduced in WordPress 2.3 by adding an “update automatically” link to update notifications. When you click the link, the new version of the corresponding plugin is downloaded and installed automatically. It also lets you know which plugins have update notifications enabled.
Update 06.04.2008 : Version 2.0.1 with much more features is out. More info here.

Download it now! (37 Kb)

How It Works (In Detail)

To be able to display the new link this plugin will hide the original update notification and display a slightly modified one. Here’s what happens when you click the “update automatically” link :

  1. If the plugin that needs to be updated is active, it is deactivated.
  2. The Plugin Updater retrieves the plugin’s page from WordPress.org and finds the download link.
  3. The new version is downloaded and extracted to the wp-content/plugins directory (this directory must be writable by the Updater plugin).
  4. If necessary, the updated plugin is re-activated.

All this happens in the background, so if everything works OK you’ll end up back at the “Plugins” tab. If there are any errors the plugin will display an error message and abort the upgrade.

Requirements

  • WordPress 2.3 or newer.
  • CURL library installed or allow_url_fopen enabled in php.ini. If you don’t know what that means, don’t worry – at least one of these is available on most webservers by default.
  • The /plugins directory must be writable by WordPress. The exact file permissions depend on the server configuration. Read more about file permissions. 666 or 755 may be sufficient, and 777 will always work, though this is not recommended due to security risks.

The plugin has been tested and works under Firefox 2.x, Opera 9.x and, as of version 1.0.5, Internet Explorer.

Installation

To install the plugin, please follow these steps:

  • Download the one-click-plugin-updater.zip file (below) to your computer.
  • Unzip the file.
  • Upload “one-click-plugin-updater” folder to the “/wp-content/plugins/” directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress.

That’s it.

Download

one-click-plugin-updater.zip (40 Kb)
CC-GNU GPL

Related posts :

535 Responses to “Single Click Plugin Updater WordPress Plugin”

  1. White Shadow says:

    Just to clarify, the “Add New” page is part of the WP core, not this plugin.

    WordPress asks for your FTP credentials because it can’t directly create files in the ‘plugins’ directory (or at least it thinks so). You need to set the file permissions to allow PHP write access to that directory. Depending on your configuration, this might be 755 or 777.

    If you can install plugins via the page created by this plugin (“Plugins -> Install a Plugin”) but the “Add New” page still asks you for your FTP info, it’s probably a bug in WordPress.

  2. Andrea (sdl) says:

    I have found an interesting discussion on
    http://wordpress.org/support/topic/223144
    regarding the checks made by wordpress.
    I finally found what was the problem. WP is searching for the owner of the file, and I’m using it on a multiuser environment, so that’s why it wasn’t working.
    Thank you! Without your help I wouldn’t have fixed it!
    Regards

  3. […] One Click Plugin Updater (allows one click theme and plugin […]

  4. real estate says:

    This will make life a whole lot easier Janice…many thanks because I need to install about 100 blogs

  5. real estate says:

    I’m gonna refer to you from now on as Janice “makes life easy” Elts. Seriously,thanks for a very useful plugin

  6. White Shadow says:

    Thanks, though it really is “Janis” (a Latvian name) 😉

  7. Hintysen says:

    I can’t update Contact Form 7. Other plug-ins seem to update easily. This one won’t. I get this:

    Can’t create file ‘contact-form-7/README.txt’ in ‘/home/hintysen/public_html/wp-content/plugins/’

    The full installation log is below :
    Plugin directory is ‘/home/hintysen/public_html/wp-content/plugins/’
    Checking to see if /home/hintysen/public_html/wp-content/plugins/ is writable.
    Okay.
    Nonce verification passed.
    About to upgrade 1 plugins.
    Upgrading ‘contact-form-7/wp-contact-form-7.php’, download URL is ‘http://downloads.wordpress.org/plugin/contact-form-7.1.9.3.zip’.
    The plugin that needs to be upgraded is active. Deactivating.
    Downloading ‘http://downloads.wordpress.org/plugin/contact-form-7.1.9.3.zip’…
    Downloaded 1242613 bytes.
    Will save the new version archive (zip) to a temporary file ‘/home/hintysen/public_html/wp-content/plugins/one-click-plugin-updater/plg4c8030b73a4924b65347ec144cbce2e8.zip’.
    About to extract ‘/home/hintysen/public_html/wp-content/plugins/one-click-plugin-updater/plg4c8030b73a4924b65347ec144cbce2e8.zip’.
    Extracting files from /home/hintysen/public_html/wp-content/plugins/one-click-plugin-updater/plg4c8030b73a4924b65347ec144cbce2e8.zip…
    So far, the type is set to ‘plugin’.
    Need to load PclZip.
    gzopen() found, will use PclZip.
    Starting extraction to folder ‘/home/hintysen/public_html/wp-content/plugins/’.
    Extracting contact-form-7/README.txt
    Can’t create file contact-form-7/README.txt in /home/hintysen/public_html/wp-content/plugins/!
    Main loop finished.

  8. White Shadow says:

    Check if the file/folder have a different owner or file permissions than the rest of the plugins. This can happen if the server configuration was changed since Contact Form 7 was first installed.

    Also, the all-uppercase filename looks… suspicious. Is your server running Windows, or some flavour of Linux?

  9. […] OneClick Installer Plugin by Anirudh Sanjeev & Janis […]

  10. […] bórrelo y por último reinstálelo. Para las últimas dos operaciones resulta muy útil el plugin One Click Plugin Updater, pues permite el borrado y las instalaciones de plugins con un solo clic (además de que notifica […]

  11. […] One Click Plugin Updater Um dos mais úteis na minha opinião. Ele permite que plugins e temas sejam instalados pela própria interface administrativa do WordPress, não sendo necessário o processo manual. […]

  12. johny why says:

    my web host tells me OneClick Plugin Updater is a SECURITY RISK.

    they say the file:
    do_update.php

    and the variable:
    $download_url

    could be used for a successful exploit.

  13. White Shadow says:

    I doubt it. The script in question checks whether the user is logged in and has the required security privileges before doing anything. It also requires a so-called “nonce” variable to be set, which makes cross-site attacks impossible. It should be safe.

  14. […] Single Click Plugin Updater WordPress Plugin makes installing and upgrading plugins easy. You still have to install this plug-in but after that, […]

  15. Napobjepobjes says:

    I just wanted to comment. Your content was informative to me and thanks.

  16. Johnny C says:

    hi, I recently did a backup on my WPDB and when I restored it and turned on my plugins I started receiving this error when going to the plugin page:

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/one-click-plugin-updater/oneclick-plugin-updater.php on line 652

    Warning: Attempt to assign property of non-object in /wp-content/plugins/one-click-plugin-updater/oneclick-plugin-updater.php on line 668

    any idea?

  17. White Shadow says:

    Looks like an option wasn’t properly initialized. Should be fixed now.

  18. Johnny C says:

    I decided to just remove and reinstall the plugin. It’s working fine again =)

  19. Damian says:

    Thanks for this plugin, works great.

  20. […] plugin one by one? Try One Click Plugin Updater that helps you to update all your SEO plugin for […]

Leave a Reply