=== Static Porter === Contributors: kturgutoglu Tags: static site generator, SEO, performance, page speed, optimization Requires at least: 5.0 Tested up to: 6.9 Requires PHP: 7.0 Stable tag: 3.5.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Slash your page load times without changing a single URL. Static Porter converts WordPress into lightning-fast static HTML while preserving your exact permalink structure for 100% SEO safety. Reduce server load and improve SEO instantly. == Description == **Static Porter** is a high-performance static site generator designed for speed and simplicity. It crawls your website and converts your database-driven pages into flat HTML files, allowing your server to bypass PHP and MySQL entirely for lightning-fast load times. Unlike traditional caching plugins, Static Porter generates a physical directory of your site. When a visitor arrives, your server serves the pre-built HTML file instantly. ### Key Features: * **One-Click Full Crawl:** Easily generate a static HTML version of your entire site. * **Zero URL Changes:** Static Porter keeps your original URL slugs exactly as they are. Your SEO remains intact with no broken links. * **Smart Refresh:** Automatically updates the static home page and post pages when you hit publish. * **Persistent Cache Table:** Monitor exactly which files are cached with individual 'Delete' and 'Recrawl' controls. * **Advanced Optimization:** Built-in HTML Minification and Gzip compression support. * **Security & Caching:** Automatically configures .htaccess with security headers and browser caching rules. * **Lightweight & Fast:** Designed to be resource-efficient with a built-in "Stop Crawl" safety feature. == Installation == 1. Upload the `static-porter` folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Go to the 'Static Porter' menu in your sidebar. 4. Configure your excluded paths and click 'Start Full Crawl'. == Frequently Asked Questions == = Will Static Porter really make my site faster? = Yes! Traditional WordPress pages require the server to process PHP and query a MySQL database every time a visitor arrives. Static Porter converts these into flat HTML files. Your server can then deliver these files instantly, bypassing the "heavy lifting" entirely. This often results in a nearly instant Time to First Byte (TTFB). = Will my URL structure or permalinks change? = No. This is one of the core strengths of Static Porter. The plugin generates a static mirror of your site that follows your existing WordPress permalink structure perfectly. Your visitors (and search engine bots) will continue to see the same clean URLs they always have, but the pages will simply load much faster. = Do I have to manually recrawl my site every time I write a post? = No. Static Porter includes a "Smart Refresh" feature. When you publish or update a post, the plugin automatically regenerates the static version of that specific post and your homepage. It’s a "set-and-forget" solution for active bloggers. = Can I use this on a low-resource budget server? = Absolutely. Static Porter is designed to be resource-efficient and includes a built-in "Peak Memory" monitor in the dashboard so you can track its impact. If the crawl is too heavy for your server, you can use the "Stop Crawl" safety button at any time to immediately halt the process. = Does this plugin improve my site's security? = Yes. In addition to serving static files (which are inherently more secure than dynamic PHP), Static Porter automatically injects security headers into your .htaccess file. This includes protection against clickjacking (X-Frame-Options) and MIME-type sniffing (X-Content-Type-Options). = Will this help my Google search rankings (SEO)? = Speed is a major ranking factor for Google, especially with Core Web Vitals. By serving ultra-fast static HTML and enabling Gzip compression and browser caching automatically, your site will likely see improved performance scores, which can lead to better visibility in search results. = What happens if I want to remove a single page from the cache? = Unlike simple "purge all" plugins, Static Porter gives you a persistent cache table. You can view a list of every cached URL and use individual "Delete" or "Recrawl" buttons for precise control without affecting the rest of your static site. = Can I choose which parts of my site to make static? = Yes. The dashboard allows you to toggle the crawling of Posts, Pages, Categories, and Tags independently. You can also use the "Excluded Paths" box to prevent specific directories from ever being turned into static files. = How do I know if it's working? = Enable the "HTML Attribution" setting. View your website's source code, and you will see a comment at the top confirming the page is being served as static HTML. = Does this work with WooCommerce? = It is recommended to exclude checkout, cart, and account pages using the "Excluded Paths" setting to ensure dynamic functionality remains intact. == Screenshots == 1. The main dashboard showing configuration settings and the crawl progress bar. 2. The persistent cache table where you can delete or recrawl specific URLs. 3. The sidebar statistics showing disk usage and efficiency gains. == Upgrade Notice == = 3.4.7 = This version adds a persistent cache management table and a manual "Stop Crawl" safety button. Highly recommended for all users. == Changelog == = 3.5.2 = * Major fixes * Added Stop Crawl functionality. * Added individual row Delete and Recrawl buttons. * Added 10-second auto-refresh after crawl.