Plugin Directory

Changeset 1231472

Timestamp:
08/26/2015 07:54:27 PM (11 years ago)
Author:
RSPublishing
Message:
  • modified deactivate feature (deactivating will restore user's root .htaccess and only remove rules added by this plugin)
  • tested compatibility with core version 4.2.4
  • added link for ratings and premium version
Location:
wp-super-simple-speed/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-super-simple-speed/trunk/readme.txt

    r1201836 r1231472  
    11=== WP Super Simple Speed ===
    22Contributors: RSPublishing
    3 Plugin URI: http://optipress.org
     3Plugin URI: http://wp-superformance.com/
    44Donate link:  https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TLS42C63EVL2A
    55Tags: gzip, compression, js, css, optimize, performance, boost, page speed, pagespeed, seo, gtmetrix, pingdom, yslow, caching, cache, compress, image, hotlink, protection, bandwith, speed, fast, increase conversions, server load, web optimization
    66Requires at least: 3.2.0
    7 Tested up to: 4.2.2
    8 Stable tag: 1.4.718
     7Tested up to: 4.2.4
     8Stable tag: 1.4.810
    99
    1010Super Simple Speed is a stable and powerful plugin that dramatically increases your site speed without any hassle (or clutter).
     
    3333        √ plugin is less than 20kb in size
    3434        √ no unnecessary code or clutter
     35        √ one click activate/deactivate
    3536        √ no configs or learning curve
     37       
     38= Premium Features =
     39
     40        √ EVERYTHING in free version PLUS the following
     41       
     42        √ full browser caching and content compression (mod_deflate, far-future-expires-headers and cache-control)
     43        √ automatically sets UTF-8 character encoding for .css .atom .rdf and several other file types
     44        √ forces compression for mangled `Accept-Encoding` request headers
     45        √ sends the CORS header for images when requested
     46        √ allows cross-origin access to web fonts
     47        √ prevents recompression for certain data
     48        √ disables post-revisions and auto-drafts
     49        √ disables self-pings
     50
     51        √ includes automatic html/js/css optimization and compression
     52        √ includes automatic image lazy loading functionality
     53
     54        √ one click installation
     55        √ ideal for shared-hosting environments
     56        √ WooCommerce and EDD compatible
     57        √ no annual license renewals
     58        √ most lightweight WordPress performance plugin (less than 50KB in size)
    3659       
    3760= Need help with your page speed? =
    3861
    39 Don't have the time to optimize your site for best performance and speed? You bump into conflicts when trying? We can help. Visit us at [OPTIPress - The WP Page Speed and Performance Professionals](http://optipress.org/) to see what we can do for you.
     62Don't have the time to optimize your site for best page speed and performance? Bumping into conflicts when trying? OPTIPress can help. Visit us at [OPTIPress - The WP Page Speed and Performance Professionals](http://optipress.org/) to see what we can do for you.
    4063       
    4164= Backup =
    4265
    43 Please make sure that you make a backup of your root .htaccess before installing this plugin (just good practice).
     66Please make sure that you make a backup of your root .htaccess before installing this plugin (just for good practice).
    4467
    45 = Uninstalling (important) =
    46 
    47 Should you for any reason whatsoever decide to deactivate & uninstall this plugin - do keep in mind that doing so will result in your root .htaccess being wiped clean. When this happens, simply head over to your settings > permalink settings and re-save your current permalink structure (this will prevent your site from breaking). Alternatively, you can upload your backed up .htaccess file. Then again, there is no reason to deactivate and uninstall this plugin as it doesn't alter your current .htaccess settings - it simply adds to it !
    48 
    49 = See an invalid argument error? (important) =
    50 
    51 Disable the display_errors setting on your web hosting account. This is a PHP setting that makes it display potential errors and other such things. The (possible) reported issue is a "Warning" and not an actual error.
    52 
    53 The code actually works fine, it's just that when you have debugging turned on, you'll get this message.
    54 
    55 Generally, live websites should not have error displays enabled in the first place. It's not a safe thing to do.
    56 
    57 The WP Super Simple Speed plugin is maintained by [OPTIPress - The WP Page Speed and Performance Optimization Professionals](http://optipress.org/)
     68The WP Super Simple Speed plugin is maintained by [OPTIPress - The WordPress Page Speed and Performance Optimization Professionals](http://optipress.org/)
    5869
    5970== Installation ==
     
    7081== Upgrade Notice ==
    7182
    72 = Version 1.4.718 =
     83= Version 1.4.810 =
    7384
    7485== Screenshots ==
     
    131142* removed footer_enqueue_scripts() function (conflicts with some js functions in responsive themes)
    132143* fixed typo error
     144
     145= 1.4.810 =
     146
     147* modified deactivate feature (deactivate = will restore user's root .htaccess and only remove rules added by this plugin)
     148* modified core super-simple-speed.php file (removed unnecessary code and optimized directives)
     149* tested plugin compatibility with core version 4.2.4
     150* added link for plugin ratings and premium version
  • wp-super-simple-speed/trunk/super-simple-speed.php

    r1201836 r1231472  
    55Plugin URI: http://optipress.org/
    66Description: Super Simple Speed is a stable and powerful plugin that dramatically increases your site speed without any hassle. Simply activate and enjoy - no configuration needed! Uses gzip compression, leverages browser cache, includes automatic hotlink protection and much more. Running into problems? Need help with your page speed? Come see us at <a href="http://optipress.org/">OPTIPress</a>.
    7 Author: RSPublishing | OPTIPress
    8 Author URI: http://optipress.org/
    9 Version: 1.4.718
     7Author: RSPublishing
     8Author URI: http://wp-superformance.com/
     9Version: 1.4.810
    1010*/
    1111
     
    3030require_once('inc-functions.php');
    3131
     32function rate_wpsuperf($links, $file) {
     33        if ($file == plugin_basename(__FILE__)) {
     34                $rate_url = 'http://wordpress.org/support/view/plugin-reviews/' . basename(dirname(__FILE__)) . '?rate=5#postform';
     35                $wpsuperf_pro = 'http://wp-superformance.com/';
     36                $links[] = '<a href="' . $rate_url . '" target="_blank" title="Click here to rate and review this plugin on WordPress.org">Rate this plugin</a>';
     37                $links[] = '<a target="_blank" href="'. $wpsuperf_pro .'" title="Get Pro version today" style="padding:1px 3px;color:#fff;background:#feba12;border-radius:1px;">Go&nbsp;Pro</a>';
     38        }
     39        return $links;
     40}
     41
     42add_filter('plugin_row_meta', 'rate_wpsuperf', 10, 2);
     43
    3244global $super_simple_speed;
    33 global $hotlink, $hta1, $hta2, $hta3, $hta4, $hta5, $hta6;
     45global $hotlink;
     46global $hta1;
     47global $hta2;
     48global $hta3;
     49global $hta4;
     50global $hta5;
     51global $hta6;
     52
    3453
    3554$url = strtolower(get_bloginfo('url'));
     
    123142function gear_5_activate() {
    124143        global $super_simple_speed;
    125         global $hotlink, $hta1, $hta2, $hta3, $hta4, $hta5, $hta6;
     144        global $hotlink;
     145        global $hta1;
     146        global $hta2;
     147        global $hta3;
     148        global $hta4;
     149        global $hta5;
     150        global $hta6;
    126151
    127152        if (file_exists($super_simple_speed)) {
     
    133158
    134159        $fh = fopen($super_simple_speed, 'w') or die("can't open file");
    135         fwrite($fh, $htaccess.$hotlink.$hta1.$hta2.$hta3.$hta4.$hta5.$hta6);
     160        fwrite($fh, $htaccess.$hotlink);
     161        fwrite($fh, $hta1);
     162        fwrite($fh, $hta2);
     163        fwrite($fh, $hta3);
     164        fwrite($fh, $hta4);
     165        fwrite($fh, $hta5);
     166        fwrite($fh, $hta6);
    136167        fclose($fh);
    137168}
     
    141172function gear_5_deactivate() {
    142173        global $super_simple_speed;
    143         global $hta1, $hta2, $hta3, $hta4, $hta5, $hta6;
     174        global $hotlink;
     175        global $hta1;
     176        global $hta2;
     177        global $hta3;
     178        global $hta4;
     179        global $hta5;
     180        global $hta6;
    144181
    145182        if (file_exists($super_simple_speed)) {
     
    149186                fclose($fh);
    150187
    151                 $htaccess = str_replace($hta1, $hta2, $hta3, $hta4, $hta5, $hta6, "",$htaccess);
     188                $htaccess = str_replace($hotlink, "", $htaccess);
     189                $htaccess = str_replace($hta1, "",$htaccess);
     190                $htaccess = str_replace($hta2, "",$htaccess);
     191                $htaccess = str_replace($hta3, "",$htaccess);
     192                $htaccess = str_replace($hta4, "",$htaccess);
     193                $htaccess = str_replace($hta5, "",$htaccess);
     194                $htaccess = str_replace($hta6, "",$htaccess);
    152195
    153196                $fh = fopen($super_simple_speed, 'w') or die("can't open file");
    154                 fwrite($fh);
     197                fwrite($fh, $htaccess);
    155198                fclose($fh);
    156199        }
Note: See TracChangeset for help on using the changeset viewer.