PageFlash is a WordPress plugin that preloads pages intelligently to boost site speed and enhance user experience by loading pages before users click, ensuring instant page transitions. Built following WordPress Core Contributor guidelines and modern plugin development standards, the plugin offers seamless integration with WordPress sites.
pageflash/
├── pageflash.php # Main plugin file (entry point)
├── plugin.php # Plugin class initialization
├── autoload.php # PSR-4 autoloader
├── package.json # NPM dependencies and scripts
├── webpack.config.js # Custom webpack configuration
├── composer.json # Composer dependencies
├── phpcs.xml # PHP CodeSniffer configuration
├── LICENSE # GPL-3.0-or-later license
├── README.md # User-facing documentation
├── ARCHITECTURE.md # This file
├── AGENTS.md # AI coding agent guidelines
├── CONTRIBUTING.md # Contribution guidelines
├── CHANGELOG.md # Version history
├── SECURITY.md # Security policy
│
├── src/ # Source files (uncompiled)
│ ├── index.js # Main entry point (empty placeholder)
│ ├── admin/ # Admin panel React application
│ │ ├── index.jsx # Admin app entry point
│ │ └── app.jsx # Main admin component
│ ├── quicklink/ # Quicklink integration
│ │ └── index.js # Quicklink initialization
│ └── scss/ # Stylesheets
│ └── admin.scss # Admin panel styles
│
├── build/ # Compiled assets (generated)
│ ├── admin/ # Built admin assets
│ │ ├── admin.js # Compiled admin JS
│ │ ├── admin.css # Compiled admin CSS
│ │ └── admin.asset.php # Asset dependencies
│ └── quicklink/ # Built quicklink assets
│ ├── quicklink.js # Compiled quicklink JS
│ └── quicklink.asset.php # Asset dependencies
│
├── includes/ # PHP classes (PSR-4)
│ ├── Admin/ # Admin-related classes
│ │ ├── Admin.php # Main admin class
│ │ ├── AdminMenu.php # Menu registration
│ │ └── ActionLinks.php # Plugin action links
│ ├── AssetsManager/ # Asset management
│ │ └── AssetsManager.php # Asset enqueue handler
│ ├── Compatibility/ # Compatibility checks
│ │ └── Compatibility.php # Version compatibility
│ ├── Landmark/ # Core functionality
│ │ └── Landmark.php # Plugin landmarks
│ └── Helpers/ # Helper functions
│ └── Helpers.php # Utility functions
│
├── assets/ # Static assets
│ ├── logo/ # Plugin branding
│ │ ├── icon.svg # Plugin icon
│ │ └── banner.png # Plugin banner
│ └── js/ # Static JavaScript
│
├── languages/ # Internationalization
│ └── pageflash.pot # Translation template
│
├── .github/ # GitHub configurations
│ └── workflows/ # CI/CD workflows
│
├── .wordpress-org/ # WordPress.org assets
│ ├── banner-772x250.png # Plugin directory banner
│ ├── banner-1544x500.png # Retina banner
│ └── icon-256x256.png # Plugin directory icon
│
└── dev-docs/ # Development documentation
└── [Various documentation files]
| File | Purpose |
|---|---|
pageflash.php |
Plugin initialization, constants definition, compatibility checks |
plugin.php |
Main plugin class, PSR-4 autoloading, component initialization |
autoload.php |
PSR-4 autoloader implementation |
AssetsManager.php |
Asset enqueueing and dependency management |
Admin.php |
Admin panel initialization and settings rendering |
AdminMenu.php |
WordPress admin menu registration |
ActionLinks.php |
Plugin action links in plugins list |
index.jsx (admin) |
React admin app entry point and initialization |
app.jsx (admin) |
Main React component for admin interface |
index.js (quicklink) |
Quicklink.js integration and configuration |
- Fork repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Make changes and test thoroughly
- Run linters:
npm run lint:js && npm run lint:css - Format code:
npm run format - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open Pull Request
- JavaScript: WordPress JavaScript Coding Standards
- CSS: WordPress CSS Coding Standards
- PHP: WordPress PHP Coding Standards
- Follows WordPress coding standards
- No console errors or warnings
- Accessibility compliant (WCAG 2.1 AA)
- Backward compatible (no breaking changes)
- Documentation updated
- Tests added/updated (when applicable)
- WordPress Plugin Handbook
- WordPress Coding Standards
- @wordpress/scripts Documentation
- React Documentation
- Quicklink.js Documentation
- WordPress Plugin Development
- Modern WordPress Development
- PSR-4 Autoloading Standard
- Webpack Configuration
- AGENTS.md - AI coding agent guidelines
- CONTRIBUTING.md - Contribution guidelines
- SECURITY.md - Security policy
- CHANGELOG.md - Version history
This plugin is licensed under GPL-3.0-or-later. See LICENSE file for details.
Last Updated: December 25, 2025
Plugin Version: 1.2.0
WordPress Compatibility: 6.0+
PHP Compatibility: 7.4+