Managing WordPress pluginsIn this article, you can find the following information about WordPress plugins:
What is a WordPress plugin?WordPress plugins are essentially script bundles that add or remove functionality to a WordPress installation. Some plugins allow you to disable or modify existing functions and features of a WordPress installation, while others allow you to add new features or functions. You can convert your WordPress installation to a forum, install a WYSIWYG website builder to build a complex website very easily, or add custom forms. There are plugins available for almost everything you can imagine. The best thing about plugins is that you can have multiple plugins active at once, so you can add complexity to your website and add or remove features whenever you want. Of course, when you add more plugins, you should ensure that the plugins you use are compatible with each other, your theme, and the version of WordPress used on your website. If you encounter compatibility issues, you can always report them to the developers of the plugin/s and theme, so they can release an updated version where the issues are resolved. How to find a WordPress plugin?There are tens of thousands of freely available plugins for activation directly via the WordPress Dashboard. You can also download these plugins from the WordPress plugin repository. There are also commercial plugins which can be obtained through the websites of their vendors or through plugin-selling websites. If you need a feature that is not already available or supported by a plugin, you can always hire a plugin developer to create it for you. When considering a plugin for your WordPress website, you should also check if the plugin is updated regularly, and if assistance is offered by its developers, support team, or community. Plugins without regular updates are very likely to stop working due to compatibility issues with newer versions of your WordPress core, theme, or other plugins. This is also why the developers and community of the plugin are important as they may offer solutions to all kinds of problems that you may encounter while using the plugin. You can also seek help from the official WordPress community; however, communities of the specific plugin should be more knowledgeable and capable of helping you with issues related to that plugin. How to install and activate a WordPress plugin?You can install plugins on your website in one of three ways - through the WordPress Dashboard, using the WordPress command-line interface - WP-CLI, or by manually uploading them to the account. After a plugin is installed, it can be activated only via the WordPress Dashboard or WP-CLI. Please note that additional steps may be required for the proper installation or activation of some plugins, like adding files, installing extra plugins, or purchasing a license. You should refer to the official instructions of the plugin that you wish to use on your website for more information. A staging instance can be used to install and test new plugins on an existing WordPress website. You can find more details on how to set up a staging instance of your existing WordPress website via the hosting Control Panel in our Creating and using WordPress staging sites article. Installing and activating a WordPress plugin via the DashboardThe easiest way to install a new plugin is via the WordPress Dashboard. All you need to do is log in to your WordPress Dashboard (you can access it by adding "/wp-admin" to your website's URL - for example, http://your_domain.com/wp-admin) or use the "Log in" feature available in the hosting Control Panel > WordPress Manager as explained in our Managing WordPress administrators article. Once you have logged in, go to the Plugins > Add New section. If the plugin is available in the WordPress plugin repository, you can use the search field in the WordPress Dashboard: Your new WordPress plugin should now be installed successfully, and all that is left is to activate it by simply clicking on the Activate button: Installing and activating a WordPress plugin with WP-CLIThe Command Line Interface for WordPress (WP-CLI) is supported on our servers by default for all hosting accounts. It provides the ability to use a command-line interface for the management of WordPress websites. You can find some information about WP-CLI in our WP-CLI Tutorial. Installing and activating a plugin using WP-CLI is actually very easy. All you need to do is follow these steps:
Installing a WordPress plugin by uploading it to your account and activating itThe methods listed so far were very easy to follow and use as they allow you to install plugins with the WordPress built-in plugin wizard or a single command via WP-CLI. The next method is more cumbersome as it requires manually downloading the plugin to your device, manually uploading it to your hosting account, and activating it via the WordPress built-in plugin wizard or WP-CLI. To use this manual approach, you should:
Where to find all plugins already installed on WordPress?You can find a list of all installed plugins on your WordPress website in the WordPress Dashboard, using WP-CLI, or by checking the wp-content/plugins folder. The list of installed plugins in the WordPress Dashboard can be found within the Plugins > Installed Plugins section.
The last way to find a list of all plugins installed in your account is to check the contents of the wp-content/plugins/ directory of WordPress (e.g. the exact directory will be ~/www/www/wp-content/plugins if WordPress is installed on your main domain). You can use the hosting Control Panel > File Manager section or your favorite FTP/SSH client to do this. More details on how to use the File Manager or how to connect via FTP are available in the Uploading files section of our online documentation. Note: Plugins that are essential for the operation of your WordPress website (e.g. plugins that came bundled with your theme or another plugin) are known as "Must-use" plugins. It is recommended that you do not delete/deactivate these plugins as your website may stop working correctly. You can learn more about this type of plugins in the What are must-use plugins? section of this article. How to update a WordPress plugin?It is important to keep all software applications installed on your account up to date as new versions usually include performance, security, or other improvements. However, you should always keep in mind that with every update the source code of the plugin is changing, so your website may start displaying warnings, errors, or even stop working altogether due to the changes. That is why we strongly recommend that you have a backup of your working WordPress installation before applying updates, and that you check your website for issues after updating any plugins. We generate full account backups automatically twice per day and keep them for seven days, which should have you covered in most cases. To be extra safe and make sure there is minimal data loss should an update cause any problems, we would advise that you create a personal backup right before you process the update. In our Creating, downloading, and restoring from WordPress backups article, you can find instructions on how to create and restore from WordPress backups very quickly through the hosting Control Panel. With commercial or custom-built plugins, you may be required to perform manual actions to perform updates (like installing additional plugins, downloading the latest version of the plugin from the vendor's website and installing it, or making changes to your WordPress core files, theme, or other plugins). There are many commercial plugins which also support updates via the Updates section or the plugin's page within the WordPress Dashboard. For such plugins, you should refer to the vendor's manual on how to apply updates correctly. Utilizing automatic plugin updatesAutomatic updates are supported by a lot of WordPress plugins, which is very convenient, but it can also result in unexpected website downtime, and that is why this feature is disabled by default. Automatic updates can be enabled via the WordPress Dashboard and WP-CLI. WordPress will check for new versions of automatic updates two times per day by default. If an update is available for a plugin with enabled automatic updates, you will be able to see the time left before the plug gets updated automatically within the WordPress Dashboard > Plugins section in the Automatic Updates column. Upon completion of the automatic update, the WordPress installation will generate an email message and send it to all website owners.
You can also enable automatic updates for a WordPress plugin using WP-CLI. Here is how to do it:
Updating plugins via the hosting Control Panel > WordPress ManagerBy opening the management page for a particular WordPress website via the hosting Control Panel > WordPress Manager, you can see if the WordPress core and plugins are running the latest available versions. If updates are available for some plugins, a link showing the exact number of outdated plugins will be listed. By clicking on the link with the number of plugins that can be updated, a table will appear showing the names of the outdated plugins and their current and latest versions. To update these plugins, just click on the Update button on the right. In case all plugins are up to date, an (OK) icon will be displayed alongside a message that all of your plugins are running the latest available version. Note: The WordPress Manager relies on WP-CLI to determine if a newer version is available for a plugin, so the update feature may not work correctly for some commercial plugins. Updating a plugin through the WordPress DashboardThe preferred way to update plugins is through the WordPress Dashboard > Updates section:
Updating a plugin with WP-CLIIf you wish to update a WordPress plugin using WP-CLI, there are just a few simple steps that you need to take:
Updating a plugin via the File Manager or FTPTo have a plugin updated through the File Manager or FTP, you should replace the directory (and files) of the outdated version of the plugin with the directory (and files) of the latest version of the plugin. This means that updating a plugin is basically identical to installing a new plugin, which is covered in the Installing a WordPress plugin by uploading it to your account and activating it section of this article. The only differences are that you will not need to activate the plugin after the update (for WP-CLI, you will have to remove the --activate string from the command), and that you will need to remove the contents of the outdated plugin from the account prior to the update or just upload the latest version of the plugin and overwrite the existing files of the outdated plugin with the files of the newer version of the plugin. How to downgrade a WordPress plugin?Using outdated software is not advisable due to performance, compatibility, and security concerns, so you should downgrade a plugin to an older version ONLY if:
If the latest version of a plugin causes only minor issues like PHP warnings in the WordPress Dashboard, you can ignore them if they do not cause any inconvenience to your website audience. If any PHP warnings, for example, are displayed on your website, you can disable the reporting of errors for PHP scripts via the hosting Control Panel > PHP Settings section. Downgrading a plugin via the WordPress DashboardThe process of downgrading a plugin via the WordPress Dashboard is almost identical to the process of Manually installing a plugin via the WordPress Dashboard described earlier in this article. The only difference is that an extra screen will be displayed with information about the current version and the uploaded older version of the plugin. To downgrade the plugin from the currently installed version to the uploaded older version, you just need to click on the Replace current with uploaded button.
Downgrading a plugin via WP-CLIDowngrading a WordPress plugin using WP-CLI is very easy and uses the wp plugin install command. Just follow these steps:
Downgrading a plugin via the File Manager or FTPYou can downgrade a plugin via the hosting Control Panel > File Manager or FTP by replacing the files of the installed plugin with the files of the older version of the plugin. To achieve this, you basically have to install the older version of the plugin, which is covered in the Installing a WordPress plugin by uploading it to your account and activating it section of this article. The only difference between downgrading a plugin and installing a new one will be that, as part of the downgrading process, you should delete or overwrite the files of the currently installed version. Since the plugin should already be activated, it will not be necessary to activate it after the downgrade. How to deactivate a WordPress plugin?We strongly recommend that you delete all deactivated plugins from your WordPress website. This is important as bad actors can use vulnerabilities of both activated and deacticated themes and plugins to abuse your website and account. You can find instructions on how to delete a plugin in the How to delete a WordPress plugin? section of this article. Important: Since some plugins modify core files or functions of WordPress, they can continue to affect your WordPress installation even after they are deactivated. For this reason, you should always try to disable all features of the plugins that you plan to deactivate within their management page inside the WordPress Dashboard before deactivating the plugins. You should also consider removing any data generated by the plugins (depending on the plugin, this could be forms, pages, contacts, etc.) within their management page within the WordPress Dashboard to have these entries removed from your database, as otherwise these entries will remain in your database forever as obsolete records. Deactivating a plugin through the WordPress DashboardTo deactivate a WordPress plugin, you can go to the Plugins > Installed Plugins section of the WordPress Dashboard and click on the Deactivate link. Deactivating a plugin using WP-CLIAnother way to deactivate a plugin is via WP-CLI by following these steps:
Deactivating all plugins via the hosting Control Panel > WordPress ManagerShould you need to deactivate all plugins for your WordPress website, the fastest way to do this is via the hosting Control Panel > WordPress Manager. Detailed instructions on the process are available in our Disabling all WordPress plugins article. How to delete a WordPress plugin?If you need to delete a plugin from your WordPress website, this can be achieved in one of three ways: through the WordPress Dashboard, using WP-CLI, or by deleting the plugin's folder from your account. We strongly recommend that you delete all plugins that you do not use or do not intend to use. Important: Some plugins modify existing or add new files to your WordPress installation that are outside the plugin's folder. Some of the most commonly changed files are the .htaccess, wp-config.php, php.ini, or .user.ini files in the root WordPress folder (e.g. the ~/www/www folder of your account if WordPress is installed on your main domain). If new files are created by the plugins, they are also usually stored in the root folder of WordPress. After you delete or disable such plugins, it is possible that they will not perform a full cleanup, and the changed or created files may remain, and may cause your website to stop working at that moment or at a later stage without there being any obvious reason. It is also possible for plugins to leave obsolete records in your database after being deleted or deactivated. You should be able to find information about such issues and how to fix them in the official documentation or community forums of the specific plugin. Alternatively, you can simply disable all settings and features of the plugin as explained earlier in the How to deactivate a WordPress plugin? section of this article. Deleting a plugin through the WordPress DashboardTo delete a plugin using the WordPress Dashboard, you need to log in as an administrator to your WordPress website. After that, you should navigate to the Plugins > Installed Plugins section and click on the Delete link below the name of the plugin you wish to delete. Note: The Delete link is displayed only for deactivated plugins, so if you do not see the Delete link, you should first deactivate the plugin.
Deleting a plugin using WP-CLIYou can delete plugins using WP-CLI by following these simple steps:
Note: WP-CLI can be used with the --force option to delete plugins that cannot be deleted by default or for some other reason. Please use this option with care as you may potentially break your website with it. Deleting a plugin via the File Manager or FTPImportant: You should use this method only if you are very familiar with the WordPress directory/file structure as deleting plugins this way is very likely to result in errors on your website or even downtime. We recommend that you create a WordPress backup of your website via the hosting Control Panel > WordPress Manager as explained our Creating, downloading, and restoring from WordPress backups article if you plan to use this method. You can delete a plugin via the hosting Control Panel > File Manager section, or via FTP by deleting its directory from the /wp-content/plugins directory of your WordPress website in the account. If WordPress is installed on the main domain of your account, you will find the plugins in the ~/www/www/wp-content/plugins directory. Go to that directory with the File Manager section or your FTP program of choice, and delete the directory. Details on how to connect to your account via FTP are available in the Uploading files section of our online documentation. After deleting a plugin this way, the first time you open the WordPress Dashboard > Plugins > Installed Plugins section a notice will be displayed indicating that the plugin files cannot be found: How to perform bulk actions with plugins?You can use the Plugins > Installed Plugins section of the WordPress Dashboard to manage all or select plugins quite easily. Just mark the checkboxes next to the plugins that you wish to manage, choose the action that you wish to perform from the Bulk actions drop-down menu, and click on the Apply button next to it. You can mark the topmost checkbox to select all plugins. The Bulk actions drop-down menu allows you to perform the following actions for the selected plugins:
WP-CLI can also be used to perform actions for multiple or all plugins at once. To perform actions for all installed plugins, simply add the --all option to the WP-CLI command. For example, to deactivate all installed plugins, you can execute this command: What are must-use plugins?If one or multiple plugins are essential for the operation of a WordPress website, theme, or another plugin, it is best they be configured as must-use WordPress plugins. "Must-use" plugins are always enabled and cannot be managed via the WordPress Dashboard > Plugins > Installed Plugins section. The must-use plugins reside in a special directory (by default, the directory is wp-content/mu-plugins within the root directory of your WordPress website), and they will be displayed with Status mu-plugin in the plugin list that can be obtained with WP-CLI. The best way to update such plugins is by updating the theme or plugin they were installed with and that relies on them. Alternatively, you can manually update them via the hosting Control Panel > File Manager section or FTP, but this may cause your website to return errors or stop working correctly. Please check the official article on Must Use Plugins at WordPress.org to learn more about their benefits and specifics. Note: We recommended that you do not delete/deactivate "Must Use" plugins for your WordPress website as it may stop working correctly. How to handle issues with a WordPress plugin?A plugin that you have been using on your WordPress website can stop working partially or fully for many reasons, and it may even break your website. Most often this happens due to compatibility issues after an update of the WordPress core, the active theme, or the plugin in question. It is also possible for a plugin to stop working correctly due to compatibility issues after a new plugin is installed or another one gets updated. This is especially true after WordPress 5.6 where the automatic core updates policy has changed from performing only minor version updates to both minor and major version updates. Important: The best defense against plugin issues is to always keep the WordPress core, the active theme, and all installed plugins updated to the latest version as this is one of the main reasons newer versions are usually released. If you can determine which plugin is causing problems, you can try to deactivate it and activate it again, or you can try to re-install it to see if this will resolve the problem. More details on how to perform these actions are available in the How to deactivate a WordPress plugin?, How to delete a WordPress plugin?, and How to install and activate a WordPress plugin? sections from this article. If the issues appeared after a recent plugin update, you can downgrade the plugin to a previous version by following the steps listed in the How to downgrade a WordPress plugin? section from this article. It is not always possible to find which plugin or combination of plugins is causing problems, so you can temporarily disable all plugins using the hosting Control Panel > WordPress Manager and start enabling them one by one to find the faulty plugin/s. This solution can also be used if you are having problems accessing the WordPress Dashboard after a recent plugin update. If the problem remains after trying the aforementioned methods, you can try to restore your website from a WordPress backup or restore your website files and database from a system backup. We would strongly recommend that you create a manual WordPress backup via the hosting Control Panel > WordPress Manager just in case something else goes wrong. More information about using the backups created through the WordPress Manager are available in our Creating, downloading, and restoring from WordPress backups article. You can reach out to the community, support team, or developers of the plugin for advice on how to solve the particular problem you encounter. They should have sufficient knowledge about the plugin. You can also search for help in the WordPress community, but assistance may be limited there especially for plugin-specific issues. How to secure a WordPress plugin?Both free and commercial WordPress plugins are generally secure as their developers are informed if a vulnerability is found and reported in the WordPress community. However, it is up to the developers to release new versions of their plugins in such events. In general, it is less likely for commercial plugins to get affected as their source code is not publicly available. To ensure that your plugins are not potential security hazards for your WordPress installation and account, you should always: 1. Get your WordPress plugins from a legitimate sourceFree plugins are publicly available in the WordPress plugin repository, and can be downloaded and installed very easily. Commercial plugins should be purchased and downloaded ONLY from their official vendors or resellers. This way you will get the latest and non-modified versions of the plugins as intended by their authors. Many leaked or pirated versions of both free and commercial plugins can be found online, and almost always they contain malware or malicious code that allows unauthorized access to the files and databases of your website and hosting account. With such access, the bad actors can retrieve private information from your website and account for blackmailing purposes or use your website and account for other malicious intents like hosting of phishing websites, sending spam messages, or attacking/scanning remote websites and networks. 2. Regularly update and maintain your WordPress pluginsThe second most important measure you can take is to regularly update all plugins installed on your WordPress website. Plugin authors usually try to release new versions to introduce new features, but the most common reasons for releasing a new version are security, stability, and/or performance improvements. It is a common practice for WordPress administrators to only update the enabled plugins on their website; however, disabled plugins should also be updated regularly as the files of all installed plugins (no matter enabled or disabled) exist on the server, and they can be used as an attack vector by third parties. Detailed instructions on the process of updating your plugins are available in the How to update a WordPress plugin? section of this article. |