Staatic – Static Site Generator

Description

Staatic allows you to generate and deploy an optimized static version of your WordPress site, improving performance, SEO and security all at the same time.

Features of Staatic include:

  • Powerful Crawler to transform your WordPress site quickly.
  • Supports multiple deployment methods, e.g. Netlify, AWS (Amazon Web Services) S3 + CloudFront, or even your local server (dedicated or shared hosting).
  • Very flexible out of the box (allows for additional urls, paths, redirects, exclude rules).
  • Supports HTTP redirects, custom “404 not found” page and other HTTP headers.
  • CLI command to publish from the command line.
  • Compatible with WordPress MultiSite installations.
  • Compatible with HTTP basic auth protected WordPress installations.

Depending on the chosen deployment method, additional features may be available.

Staatic Premium

In order to support ongoing development of Staatic, please consider going Premium. In addition to helping the authors maintain Staatic, Staatic Premium adds additional functionality.

For more information visit Staatic.

Screenshots

  • Use your WordPress installation as a private staging environment and make all of the modifications you need. Then publish these changes to your highly optimized and consumer facing static site with the click of a button.
  • Monitor the status of your publications while they happen and review details of past publications to easily troubleshoot any issues.
  • Configure and fine tune the way Staatic processes your site to suit your specific needs.

Installation

Installing Staatic is simple!

Install from within WordPress

  1. Visit the plugins page within your WordPress Admin dashboard and select ‘Add New’;
  2. Search for ‘Staatic’;
  3. Activate ‘Staatic’ from your Plugins page;
  4. Go to ‘After activation’ below.

Install manually

  1. Upload the ‘staatic’ folder to the /wp-content/plugins/ directory;
  2. Activate the ‘Staatic’ plugin through the ‘Plugins’ menu in WordPress;
  3. Go to ‘After activation’ below.

After activation

  1. Click on the ‘Staatic’ menu item on the left side navigation menu;
  2. On the settings page, provide the relevant Build & Deployment settings;
  3. Start publishing to your static site!

FAQ

How will Staatic improve the performance of my site?

Staatic will convert your dynamic WordPress site into a static site consisting of HTML assets, images, scripts and other assets. By removing WordPress (and even PHP) from the equation, requested pages from your site can be served instantly, instead of having to be generated on the fly.

Why not use a caching plugin?

Caching plugins are great to improve the performance of your site as well, however they (usually) don’t remove WordPress itself from the stack, which adds additional latency.

Also by using Staatic, you are free to host your site anywhere. You could for example choose a very fast cloud provider or content delivery network, providing even more performance.

Will the appearance of my site change?

No. At least, it should not. If the static version of your site does differ, it is probably because of invalid HTML in your original WordPress site, which could not be converted correctly. In that case you can verify the validity of your HTML using a validator service like W3C Markup Validation Service.

How will Staatic improve the security of my site?

Since your site is converted into static HTML pages, the attack surface is greatly reduced. That means less need to worry about keeping WordPress, plugins and themes up-to-date.

Is Staatic compatible with all plugins?

Unfortunately not. Because your site is converted into a static site, dynamic server side functions are not available. Plugins that require this, for example to process forms, retrieve data externally etc., do not work out of the box, or are not supported at all.

You will need to make modifications to make such features work, or you can choose Staatic Premium which adds such functionality automatically. For more information, please visit staatic.com.

Will it work on shared or (heavily) restricted servers?

Staatic has been optimized to work in most environments. The major requirements are that the plugin is able to write to the work directory and connect to your WordPress installation.

Where can I get help?

If you have any questions or problems, please have a look at our documentation and FAQ first.

If you cannot find an answer there, feel free to open a topic on our Support Forums.

Want to get in touch directly? Please feel free to contact us. We will get back to you as soon as possible

Reviews

18. August 2022
The plugin gives you all you need and works like a charm. From generating static sites to publishing them in one click only. The great thing about the plugin is the team behind it. I had a few interactions, through the support forum, and they were amazing. Attended to the issues promptly. If the team keeps doing what they are doing, I think they will be unstoppable in WP SSG. Kudos Team Staatic.
3. August 2022
I've tested a lot of static Wordpress plugins but this one is the best so far. Works out of the box on shared hosting.
Read all 2 reviews

Contributors & Developers

“Staatic – Static Site Generator” is open source software. The following people have contributed to this plugin.

Contributors

“Staatic – Static Site Generator” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Staatic – Static Site Generator” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.2.3

  • Improvement: skips transformation of fragment-only links while processing HTML files, resolving an issue with Elementor Popups.
  • Fix: decodes HTML entities while extracting links, resolving an issue with obfuscated mailto-links.

1.2.2

  • Improvement: when HTTP basic authentication credentials are provided, these will now be used to authenticate any internal request.
  • Improvement: adds staatic_netlify_config_extra filter hook to allow additions to the generated netlify.toml file when using the Netlify deployment method.
  • Improvement: adds staatic_additional_urls and staatic_additional_paths filter hooks to allow additional urls and paths to be dynamically added.
  • Improvement: detects and includes wp-emoji assets in build.
  • Fix: fixes edge case causing transformed HTML resources to be incomplete.

1.2.1

  • Feature: allows publication logs to be exported.
  • Improvement: automatically excludes Contact Form 7 captcha and uploads directories as part of additional paths setting.
  • Improvement: clears plugin transient cache after upgrading plugin.
  • Improvement: updates external dependencies.
  • Fix: removes wp_oembed discovery links while crawling site due to incompatible URL-structure.
  • Fix: fixes edge case causing incorrect publication status after canceling a publication in progress.

1.2.0

  • Feature: allows (past) publications to be redeployed, making it possible to quickly revert after a mistake.
  • Improvement: improves XML sitemap detection and changes default additional URL to /wp-sitemap.xml.
  • Improvement: automatically detects the sitemap URL from /robots.txt.
  • Improvement: improves plugin compatibility with Windows environments.
  • Improvement: improves plugin compatibility with WordPress installations within a subdirectory.
  • Improvement: optimizes build files storage, improving overall performance and reducing disk usage.
  • Improvement: various technical improvements in crawler component.
  • Fix: excludes results without content in Netlify upload manifest.
  • Fix: fixes edge case in database migration coordinator that can cause an error while upgrading/downgrading.

1.1.1

  • Improvement: changes defaults of “Delete plugin settings” and “Delete plugin data” settings to enabled.
  • Improvement: adds support for “ap-southeast-3” and “ap-northeast-3” regions to AWS deployment method.
  • Fix: correctly fixes edge case with additional paths setting when path is a symlink.
  • Fix: fixes edge case with result transformer not rewinding resource file pointer.
  • Fix: ensures uninstalling plugin data removes all plugin database tables.

1.1.0

  • Feature: adds “Offline URL” option to “Destination URL” setting to enable locally browsable sites.
  • Feature: adds ability to use path in “Destination URL” setting to enable sites to be hosted in subdirectories.
  • Feature: adds ability to not follow or save results originating from additional URLs.
  • Feature: adds zipfile deployment method to allow for manual deployments.
  • Feature: adds “Downgrade HTTP to HTTPS” setting to improve compatibility on specific environments.
  • Feature: adds “Logging” setting to make logging verbosity configurable.
  • Feature: adds ability to export diagnostics to assist with support requests.
  • Improvement: improves user experience when configuring additional URLs, paths and redirects as well as excluded URLs.
  • Improvement: improves detection and transformation of URLs while building the static site.
  • Improvement: changes “Destination URL” default value to “/” instead of site URL.
  • Fix: fixes transformation errors with redirect plugin integrations.
  • Fix: updates result hashes and size correctly after applying transformers and post processors.

1.0.8

  • Feature: adds ability to download publications as a zip file.
  • Feature: adds ability to bulk delete publications.
  • Improvement: emphasises the active publication on the publication overview.
  • Improvement: displays original publication result URL in tooltip.
  • Improvement: updates external dependencies.
  • Improvement: various code style improvements.
  • Fix: fixes edge case with additional paths setting when path is a symlink.

1.0.7

  • Feature: adds ability to skip following or saving resources specified as additional URLs and paths.
  • Feature: adds (basic) redirect integration for Redirection Plugin.
  • Feature: adds (basic) redirect integration for Safe Redirect Manager Plugin.
  • Feature: adds (basic) redirect integration for Simple 301 Redirects Plugin.
  • Improvement: UX improvements to additional/exclude URLs, additional paths and additional redirects settings.
  • Improvement: adds [–[no-]preview] WP-CLI option to staatic publish command.
  • Improvement: updates external dependencies.
  • Fix: ensures filesystem deployment method target directory is always excluded from build.

1.0.6

  • Improvement: adds basic support for preview publications.
  • Improvement: updates external dependencies.

1.0.5

  • Improvement: adds ability to delete publications from publication overview.
  • Improvement: adds support for WP Fastest Cache srcset attribute.
  • Fix: displays translated texts in dynamic components correctly.
  • Fix: displays dates with preferred timezone.

1.0.4

  • Improvement: adds publish button to publication overview.
  • Improvement: optimizes AWS deployment method URL/path conversion.
  • Fix: ensures http basic auth parameters are passed when publishing.

1.0.3

  • Improvement: various performance improvements.
  • Fix: ensures database migrations are executed after plugin upgrade.
  • Fix: correctly cleans up expired deployment results.
  • Fix: improves loading of plugin settings.

1.0.2

  • Improvement: makes plugin source code more readable.

1.0.1

  • Fix: fixes a bug where uninstalling the plugin would fail.

1.0.0

  • Initial release.