Essential hardening and cleanup for every WordPress site.
Coreline is a lightweight WordPress security and optimization plugin that provides essential hardening features for your WordPress installation.
- Emoji Script Removal: Removes WordPress emoji detection scripts to improve performance
- WordPress Version Hiding: Removes WordPress version numbers from HTML and RSS feeds for better security
- PHP Version Hiding: Removes PHP version information from HTTP headers to prevent version detection
- Custom Login URL: Changes wp-login.php to a custom URL (e.g.,
/secure-login/) to prevent automated brute-force attacks. - Hotlink Protection: Prevents other websites from hotlinking your images (works on both Apache and Nginx)
- Disable Pingbacks & Trackbacks: Disables XML-RPC pingbacks and trackbacks for improved security
- PHP 7.4 or higher
- WordPress 5.0 or higher
- Download the plugin
- Upload the
corelinefolder to/wp-content/plugins/ - Run
composer install --no-devin the plugin directory - Activate the plugin through the 'Plugins' menu in WordPress
composer install# WordPress Coding Standards Check
composer phpcs
# Auto-fix coding standards issues
composer phpcs:fix
# Static Analysis with PHPStan
composer phpstan
# Run all quality checks
composer lintCoreline follows:
- ✅ WordPress Coding Standards (WPCS 3.0)
- ✅ WordPress VIP Go Standards (Enterprise-grade)
- ✅ PHP Compatibility (7.4+)
- ✅ PHPStan Level 8 (Strictest static analysis)
- ✅ PSR-12 (Where compatible with WordPress)
Coreline follows SOLID principles and uses dependency injection for maximum testability:
- PSR-4 Autoloading: Proper namespace structure
- WordPress Coding Standards: WPCS 3.0 + VIP Go standards
- Dependency Injection: No dependency container, pure constructor injection
- Interface-based Design: All features implement
FeatureInterface - Open/Closed Principle: Easy to extend with new features
- Type Safety: Strict types, PHPStan level 8
coreline/
├── src/
│ ├── Abstracts/
│ │ └── AbstractFeature.php
│ ├── Contracts/
│ │ └── FeatureInterface.php
│ ├── Features/
│ │ ├── DisableEmojis.php
│ │ ├── DisablePingbacks.php
│ │ ├── HideWordPressVersion.php
│ │ ├── HidePHPVersion.php
│ │ ├── HotlinkProtection.php
│ │ └── ProtectWpLogin.php
│ └── Plugin.php
├── composer.json
└── coreline.php
add_filter('coreline_features', function($features) {
$features[] = new MyCustomFeature();
return $features;
});- Changes
/wp-login.phpto a custom URL (e.g.,/secure-login/) - Blocks direct access to
/wp-login.php(returns 404) - Blocks
/wp-admin/access for non-authenticated users - Works on all servers (Apache, Nginx, LiteSpeed)
- Prevents bandwidth theft from image hotlinking
- Allows search engines (Google, Bing, Yahoo, DuckDuckGo)
- Works on both Apache and Nginx servers
- PHP-based implementation (no .htaccess required)
- Removes
X-Powered-ByHTTP header that exposes PHP version - Prevents version detection by tools like Wappalyzer
- Enhances security through obscurity
- Works by removing headers before they're sent to the browser
- Completely disables XML-RPC pingback functionality
- Removes X-Pingback header
- Prevents pingback DDoS attacks