SmartSite Optimizer

外掛說明

SmartSite Optimizer is a powerful WordPress plugin that provides enterprise-level performance optimization and analytics features to help you deliver the fastest possible user experience.

Key Features

Intelligent Asset Management
* Automatic CSS/JS deferral with intelligent dependency mapping
* Critical CSS inlining for above-the-fold content
* Image lazy loading with blur-up placeholder effects
* Font display optimization with preloading support

Advanced Caching System
* Page caching with smart invalidation rules
* Database query optimization with result caching
* Object cache support for Redis and Memcached
* Browser caching headers with optimal expiry times

Real-time Analytics Dashboard
* Core Web Vitals monitoring (LCP, FID, CLS, TTFB, FCP)
* Performance score tracking with historical data
* User behavior metrics without external dependencies
* Custom event tracking API for developers

Automated Optimization Features
* Image compression on upload with quality settings
* WebP conversion for modern browsers
* Code minification for HTML, CSS, and JavaScript
* DNS prefetching for external domains
* Resource preloading for critical assets

Technical Highlights

  • Object-oriented PHP with proper namespace structure
  • WordPress coding standards compliant
  • Modular architecture with enable/disable controls
  • Comprehensive error handling and logging
  • WP-CLI commands for automation
  • Extensible hooks and filters API
  • Multisite compatible

Advanced Usage

WP-CLI Commands

Clear all caches:
wp sso cache clear

Clear page cache only:
wp sso cache clear-pages

View cache statistics:
wp sso cache stats

Optimize all images:
wp sso optimize images

Optimize with limit:
wp sso optimize images –limit=50

Run all optimizations:
wp sso optimize all

Custom Event Tracking

Track custom events in your theme or plugin:

if ( function_exists( 'sso' ) && sso()->analytics ) {
    sso()->analytics->track_event( 'button_click', array(
        'url' => get_permalink(),
        'value' => 1
    ) );
}

Hooks and Filters

Exclude URLs from asset optimization:

add_filter( 'sso_exclude_asset_optimization', function( $exclude ) {
    if ( is_page( 'special-page' ) ) {
        return true;
    }
    return $exclude;
} );

Exclude scripts from deferral:

add_filter( 'sso_defer_js_excluded', function( $excluded ) {
    $excluded[] = 'my-critical-script';
    return $excluded;
} );

Modify critical CSS:

add_filter( 'sso_critical_css', function( $css, $page_type ) {
    // Add your custom critical CSS
    return $css . 'body { font-display: swap; }';
}, 10, 2 );

Support

For support, feature requests, or bug reports, please visit our support forum or contact us at support@devkamran.com

Credits

Developed by devkamran

安裝方式

  1. Upload the smartsite-optimizer folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to SmartSite in the admin menu to configure settings
  4. Click “Run One-Click Optimization” to get started

常見問題集

Will this plugin slow down my site?

No! SmartSite Optimizer is designed to be extremely efficient. The plugin’s overhead is minimal compared to the performance gains it provides.

Is it compatible with other caching plugins?

SmartSite Optimizer includes its own caching system. We recommend disabling other caching plugins to avoid conflicts.

Does it work with page builders?

Yes! SmartSite Optimizer is compatible with all major page builders including Elementor, Beaver Builder, and Divi.

Can I disable specific features?

Absolutely! The plugin has a modular architecture. You can enable or disable individual features from the Settings page.

Does it support multisite?

Yes! SmartSite Optimizer is fully compatible with WordPress multisite installations.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈SmartSite Optimizer〉的開發相關工作。

參與者

將〈SmartSite Optimizer〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release
  • Intelligent Asset Management module
  • Advanced Caching System
  • Real-time Analytics Dashboard
  • Automated Image Optimization
  • WP-CLI commands
  • Multisite support