In this article, we go over some useful plugins that will help with your WordPress development. We will also go over some configuration changes to help resolve some common issues we might encounter later on.


WP2Static – We will be converting our website to a static website for a faster user experience (and free hosting options).

Yoast SEO – Helps with search engine optimizing so that you can improve your website traffic.

GA Google Analytics – Helps intergrate your website with Google Analytics so you can track your website’s traffic better.

Google XML Sitemaps– Helps with generating a simple sitemap for SEO purposes. Yoast SEO can also do this, this plugin may be better for our purposes in the later tutorials.

Header Footer Code Manager – Helps us inject JavaScript snippets on your website’s pages incase you want to integrate with other services later (Such as AdSense or Amazon Associates).

Optimize Database after Deleting Revisions – Since the service we will be using later on has a very strict database limit (but it’s free!), this will be crucial for keeping our database size smaller.

Page Builder by SiteOrigin – Helps speed up page designing when editing your website.

Upload Max File Size – By default, WordPress may only limit files to only be 2MB when uploading. This can help increase the limit in a easy and convenient way. If you still get an error saying a file is too big, it might be the resolution of the picture file.
WP Performance Score Booster – Helps speed up your website’s loading speed and performance score. Services such as Pingdom and GTmetrix can help evaluate page speeds.
If you activate this plugin on your localhost and you get a 500 server error, you can check your Apache log files in /var/logs/apache2/ and find the error.log file. In the latest entry at the bottom, you should be able to see what the error is. If it says something along the lines of:

… /var/www/yourwebsite/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration

Then you will likely need to enable the Header module for Apache2 and restart the web server:

sudo a2enmod headers
sudo systemctl restart apache2

Fixing Permalink Issue

By default, switching the permalink functions in WordPress might break your website. The pages and links to your posts might give you a 404 error saying it cannot be found. If this is happening, you can resolve this by doing the following:

Open the file in a text editor with elevated priviledges (Nano or Vim): /etc/apache2/apache2.conf

To edit this file, you may need elevated priviledges. You can use a text editor like nano by running:

sudo nano /etc/apache2/apache2.conf

Find the section that says Directory /var/www/ and edit it so that AllowOverride is set to “All”. Below is what the file should look like in that section after editing.

Then restart the web server by running:

sudo systemctl restart apache2

You should be able to switch your permalink options around without breaking the links now.

Optimize Database

The database service we will be using only limits our database to be 5MB. Since it is such a small limit, we will use the Optimize Database after Deleting Revisions” plugin to reduce our database size. After installing and activating the plugin, you can access it through the WordPress Admin Panel > Settings > Optimize Database. Make sure to check off all the revisions area, because it can free a lot of space.

Disable Comments

Since we will be turning our website into a static website, we won’t be able to allow users to post comments. You can disable it in the WordPress Admin Panel > Settings > Discussion area.

Now that this is done, we can proceed with deploying our application onto Heroku in the next article.


The next article can be found here. Previous article is here.