WP Manifestindependent plugin directory

WP Performance Optimization Tactics (POT)

My collection of Performance Optimization Tactics (POT) for WordPress

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/astappiev/wp-pot/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A modular WordPress plugin for performance optimization and site enhancements with a simple on/off toggle interface.

Features

  • Performance: Clean head tags, disable pingbacks/embeds/emoji, lazy load iframes, defer scripts
  • Media: Local avatars, media meta columns, replace media files
  • SEO: Enhanced Yoast sitemap with images (requires Yoast SEO)
  • Admin: Language switcher, custom flags (requires Polylang)
  • Content: Cyrillic to Latin slug conversion
  • Security: Disable author archives

All modules can be toggled on/off via Settings → P-o-T.

WP-CLI Commands

# Replace site URL in database
wp pot-sync siteurl [--yes]

# Flush Nginx cache
wp pot-purge nginx

# Clean unregistered files from uploads
wp pot-clean unregistered [--delete]

Commands are located in includes/cli/ and follow WP-CLI best practices with proper class structure and documentation.

Creating a Module

Create includes/modules/class-my-module.php:

<?php
namespace Pot\Modules;

class My_Module extends \Pot\Module {
    public function get_metadata(): array {
        return [
            'name' => 'My Module',
            'description' => 'Module description',
            'category' => 'performance',
            'default' => true,
            'dependencies' => [],
        ];
    }

    public function load(): void {
        add_action('init', [$this, 'init']);
    }

    public function init(): void {
        // Your code here
    }
}

Modules in includes/modules/ are auto-discovered. Categories: performance, security, media, seo, admin, content, general.

License

GPLv3