├── .gitignore
├── .travis.yml
├── LICENSE
├── admin-page.php
├── assets
├── css
│ ├── style.css
│ └── style.min.css
├── images
│ ├── wppsb-github-16x16.png
│ ├── wppsb-icon-24x24.png
│ ├── wppsb-other-plugins-16x16.png
│ ├── wppsb-rate-this-16x16.png
│ ├── wppsb-support-this-16x16.png
│ ├── wppsb-twitter-16x16.png
│ └── wppsb-wordpress-16x16.png
└── js
│ ├── preloader.js
│ └── preloader.min.js
├── data-processing.php
├── index.php
├── languages
├── wp-performance-score-booster-en_US.mo
├── wp-performance-score-booster-en_US.po
└── wp-performance-score-booster.pot
├── news-and-updates.html
├── optimize-more.php
├── phpunit.xml
├── promos.html
├── readme.md
├── readme.txt
├── referrals.html
├── tests
├── bootstrap.php
└── test-plugin.php
├── uninstall.php
└── wp-performance-score-booster.php
/.gitignore:
--------------------------------------------------------------------------------
1 | assets/banner-772x250.png
2 | /.travis.yml
3 | /news-and-updates.html
4 | /phpunit.xml
5 | /promos.html
6 | /readme.md
7 | /referrals.html
8 | /tests/bootstrap.php
9 | /tests/test-plugin.php
10 | /index.php
11 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 | language: php
3 |
4 | notifications:
5 | on_success: never
6 | on_failure: change
7 |
8 | php:
9 | - nightly # PHP 7.0
10 | - 5.6
11 | - 5.5
12 | - 5.4
13 |
14 | env:
15 | - WP_PROJECT_TYPE=plugin WP_VERSION=master WP_MULTISITE=0 WP_TEST_URL=http://localhost:12000 WP_TEST_USER=test WP_TEST_USER_PASS=test
16 |
17 | matrix:
18 | allow_failures:
19 | - php: nightly
20 | fast_finish: true
21 |
22 | before_script:
23 | - git clone https://github.com/Seravo/wordpress-test-template wp-tests
24 | - bash wp-tests/bin/install-wp-tests.sh test root '' localhost $WP_VERSION
25 |
26 | script:
27 | - cd wp-tests/spec && bundle exec rspec test.rb
28 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 2, June 1991
3 |
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6 | Everyone is permitted to copy and distribute verbatim copies
7 | of this license document, but changing it is not allowed.
8 |
9 | Preamble
10 |
11 | The licenses for most software are designed to take away your
12 | freedom to share and change it. By contrast, the GNU General Public
13 | License is intended to guarantee your freedom to share and change free
14 | software--to make sure the software is free for all its users. This
15 | General Public License applies to most of the Free Software
16 | Foundation's software and to any other program whose authors commit to
17 | using it. (Some other Free Software Foundation software is covered by
18 | the GNU Lesser General Public License instead.) You can apply it to
19 | your programs, too.
20 |
21 | When we speak of free software, we are referring to freedom, not
22 | price. Our General Public Licenses are designed to make sure that you
23 | have the freedom to distribute copies of free software (and charge for
24 | this service if you wish), that you receive source code or can get it
25 | if you want it, that you can change the software or use pieces of it
26 | in new free programs; and that you know you can do these things.
27 |
28 | To protect your rights, we need to make restrictions that forbid
29 | anyone to deny you these rights or to ask you to surrender the rights.
30 | These restrictions translate to certain responsibilities for you if you
31 | distribute copies of the software, or if you modify it.
32 |
33 | For example, if you distribute copies of such a program, whether
34 | gratis or for a fee, you must give the recipients all the rights that
35 | you have. You must make sure that they, too, receive or can get the
36 | source code. And you must show them these terms so they know their
37 | rights.
38 |
39 | We protect your rights with two steps: (1) copyright the software, and
40 | (2) offer you this license which gives you legal permission to copy,
41 | distribute and/or modify the software.
42 |
43 | Also, for each author's protection and ours, we want to make certain
44 | that everyone understands that there is no warranty for this free
45 | software. If the software is modified by someone else and passed on, we
46 | want its recipients to know that what they have is not the original, so
47 | that any problems introduced by others will not reflect on the original
48 | authors' reputations.
49 |
50 | Finally, any free program is threatened constantly by software
51 | patents. We wish to avoid the danger that redistributors of a free
52 | program will individually obtain patent licenses, in effect making the
53 | program proprietary. To prevent this, we have made it clear that any
54 | patent must be licensed for everyone's free use or not licensed at all.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | GNU GENERAL PUBLIC LICENSE
60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61 |
62 | 0. This License applies to any program or other work which contains
63 | a notice placed by the copyright holder saying it may be distributed
64 | under the terms of this General Public License. The "Program", below,
65 | refers to any such program or work, and a "work based on the Program"
66 | means either the Program or any derivative work under copyright law:
67 | that is to say, a work containing the Program or a portion of it,
68 | either verbatim or with modifications and/or translated into another
69 | language. (Hereinafter, translation is included without limitation in
70 | the term "modification".) Each licensee is addressed as "you".
71 |
72 | Activities other than copying, distribution and modification are not
73 | covered by this License; they are outside its scope. The act of
74 | running the Program is not restricted, and the output from the Program
75 | is covered only if its contents constitute a work based on the
76 | Program (independent of having been made by running the Program).
77 | Whether that is true depends on what the Program does.
78 |
79 | 1. You may copy and distribute verbatim copies of the Program's
80 | source code as you receive it, in any medium, provided that you
81 | conspicuously and appropriately publish on each copy an appropriate
82 | copyright notice and disclaimer of warranty; keep intact all the
83 | notices that refer to this License and to the absence of any warranty;
84 | and give any other recipients of the Program a copy of this License
85 | along with the Program.
86 |
87 | You may charge a fee for the physical act of transferring a copy, and
88 | you may at your option offer warranty protection in exchange for a fee.
89 |
90 | 2. You may modify your copy or copies of the Program or any portion
91 | of it, thus forming a work based on the Program, and copy and
92 | distribute such modifications or work under the terms of Section 1
93 | above, provided that you also meet all of these conditions:
94 |
95 | a) You must cause the modified files to carry prominent notices
96 | stating that you changed the files and the date of any change.
97 |
98 | b) You must cause any work that you distribute or publish, that in
99 | whole or in part contains or is derived from the Program or any
100 | part thereof, to be licensed as a whole at no charge to all third
101 | parties under the terms of this License.
102 |
103 | c) If the modified program normally reads commands interactively
104 | when run, you must cause it, when started running for such
105 | interactive use in the most ordinary way, to print or display an
106 | announcement including an appropriate copyright notice and a
107 | notice that there is no warranty (or else, saying that you provide
108 | a warranty) and that users may redistribute the program under
109 | these conditions, and telling the user how to view a copy of this
110 | License. (Exception: if the Program itself is interactive but
111 | does not normally print such an announcement, your work based on
112 | the Program is not required to print an announcement.)
113 |
114 | These requirements apply to the modified work as a whole. If
115 | identifiable sections of that work are not derived from the Program,
116 | and can be reasonably considered independent and separate works in
117 | themselves, then this License, and its terms, do not apply to those
118 | sections when you distribute them as separate works. But when you
119 | distribute the same sections as part of a whole which is a work based
120 | on the Program, the distribution of the whole must be on the terms of
121 | this License, whose permissions for other licensees extend to the
122 | entire whole, and thus to each and every part regardless of who wrote it.
123 |
124 | Thus, it is not the intent of this section to claim rights or contest
125 | your rights to work written entirely by you; rather, the intent is to
126 | exercise the right to control the distribution of derivative or
127 | collective works based on the Program.
128 |
129 | In addition, mere aggregation of another work not based on the Program
130 | with the Program (or with a work based on the Program) on a volume of
131 | a storage or distribution medium does not bring the other work under
132 | the scope of this License.
133 |
134 | 3. You may copy and distribute the Program (or a work based on it,
135 | under Section 2) in object code or executable form under the terms of
136 | Sections 1 and 2 above provided that you also do one of the following:
137 |
138 | a) Accompany it with the complete corresponding machine-readable
139 | source code, which must be distributed under the terms of Sections
140 | 1 and 2 above on a medium customarily used for software interchange; or,
141 |
142 | b) Accompany it with a written offer, valid for at least three
143 | years, to give any third party, for a charge no more than your
144 | cost of physically performing source distribution, a complete
145 | machine-readable copy of the corresponding source code, to be
146 | distributed under the terms of Sections 1 and 2 above on a medium
147 | customarily used for software interchange; or,
148 |
149 | c) Accompany it with the information you received as to the offer
150 | to distribute corresponding source code. (This alternative is
151 | allowed only for noncommercial distribution and only if you
152 | received the program in object code or executable form with such
153 | an offer, in accord with Subsection b above.)
154 |
155 | The source code for a work means the preferred form of the work for
156 | making modifications to it. For an executable work, complete source
157 | code means all the source code for all modules it contains, plus any
158 | associated interface definition files, plus the scripts used to
159 | control compilation and installation of the executable. However, as a
160 | special exception, the source code distributed need not include
161 | anything that is normally distributed (in either source or binary
162 | form) with the major components (compiler, kernel, and so on) of the
163 | operating system on which the executable runs, unless that component
164 | itself accompanies the executable.
165 |
166 | If distribution of executable or object code is made by offering
167 | access to copy from a designated place, then offering equivalent
168 | access to copy the source code from the same place counts as
169 | distribution of the source code, even though third parties are not
170 | compelled to copy the source along with the object code.
171 |
172 | 4. You may not copy, modify, sublicense, or distribute the Program
173 | except as expressly provided under this License. Any attempt
174 | otherwise to copy, modify, sublicense or distribute the Program is
175 | void, and will automatically terminate your rights under this License.
176 | However, parties who have received copies, or rights, from you under
177 | this License will not have their licenses terminated so long as such
178 | parties remain in full compliance.
179 |
180 | 5. You are not required to accept this License, since you have not
181 | signed it. However, nothing else grants you permission to modify or
182 | distribute the Program or its derivative works. These actions are
183 | prohibited by law if you do not accept this License. Therefore, by
184 | modifying or distributing the Program (or any work based on the
185 | Program), you indicate your acceptance of this License to do so, and
186 | all its terms and conditions for copying, distributing or modifying
187 | the Program or works based on it.
188 |
189 | 6. Each time you redistribute the Program (or any work based on the
190 | Program), the recipient automatically receives a license from the
191 | original licensor to copy, distribute or modify the Program subject to
192 | these terms and conditions. You may not impose any further
193 | restrictions on the recipients' exercise of the rights granted herein.
194 | You are not responsible for enforcing compliance by third parties to
195 | this License.
196 |
197 | 7. If, as a consequence of a court judgment or allegation of patent
198 | infringement or for any other reason (not limited to patent issues),
199 | conditions are imposed on you (whether by court order, agreement or
200 | otherwise) that contradict the conditions of this License, they do not
201 | excuse you from the conditions of this License. If you cannot
202 | distribute so as to satisfy simultaneously your obligations under this
203 | License and any other pertinent obligations, then as a consequence you
204 | may not distribute the Program at all. For example, if a patent
205 | license would not permit royalty-free redistribution of the Program by
206 | all those who receive copies directly or indirectly through you, then
207 | the only way you could satisfy both it and this License would be to
208 | refrain entirely from distribution of the Program.
209 |
210 | If any portion of this section is held invalid or unenforceable under
211 | any particular circumstance, the balance of the section is intended to
212 | apply and the section as a whole is intended to apply in other
213 | circumstances.
214 |
215 | It is not the purpose of this section to induce you to infringe any
216 | patents or other property right claims or to contest validity of any
217 | such claims; this section has the sole purpose of protecting the
218 | integrity of the free software distribution system, which is
219 | implemented by public license practices. Many people have made
220 | generous contributions to the wide range of software distributed
221 | through that system in reliance on consistent application of that
222 | system; it is up to the author/donor to decide if he or she is willing
223 | to distribute software through any other system and a licensee cannot
224 | impose that choice.
225 |
226 | This section is intended to make thoroughly clear what is believed to
227 | be a consequence of the rest of this License.
228 |
229 | 8. If the distribution and/or use of the Program is restricted in
230 | certain countries either by patents or by copyrighted interfaces, the
231 | original copyright holder who places the Program under this License
232 | may add an explicit geographical distribution limitation excluding
233 | those countries, so that distribution is permitted only in or among
234 | countries not thus excluded. In such case, this License incorporates
235 | the limitation as if written in the body of this License.
236 |
237 | 9. The Free Software Foundation may publish revised and/or new versions
238 | of the General Public License from time to time. Such new versions will
239 | be similar in spirit to the present version, but may differ in detail to
240 | address new problems or concerns.
241 |
242 | Each version is given a distinguishing version number. If the Program
243 | specifies a version number of this License which applies to it and "any
244 | later version", you have the option of following the terms and conditions
245 | either of that version or of any later version published by the Free
246 | Software Foundation. If the Program does not specify a version number of
247 | this License, you may choose any version ever published by the Free Software
248 | Foundation.
249 |
250 | 10. If you wish to incorporate parts of the Program into other free
251 | programs whose distribution conditions are different, write to the author
252 | to ask for permission. For software which is copyrighted by the Free
253 | Software Foundation, write to the Free Software Foundation; we sometimes
254 | make exceptions for this. Our decision will be guided by the two goals
255 | of preserving the free status of all derivatives of our free software and
256 | of promoting the sharing and reuse of software generally.
257 |
258 | NO WARRANTY
259 |
260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268 | REPAIR OR CORRECTION.
269 |
270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278 | POSSIBILITY OF SUCH DAMAGES.
279 |
280 | END OF TERMS AND CONDITIONS
281 |
282 | How to Apply These Terms to Your New Programs
283 |
284 | If you develop a new program, and you want it to be of the greatest
285 | possible use to the public, the best way to achieve this is to make it
286 | free software which everyone can redistribute and change under these terms.
287 |
288 | To do so, attach the following notices to the program. It is safest
289 | to attach them to the start of each source file to most effectively
290 | convey the exclusion of warranty; and each file should have at least
291 | the "copyright" line and a pointer to where the full notice is found.
292 |
293 | {description}
294 | Copyright (C) {year} {fullname}
295 |
296 | This program is free software; you can redistribute it and/or modify
297 | it under the terms of the GNU General Public License as published by
298 | the Free Software Foundation; either version 2 of the License, or
299 | (at your option) any later version.
300 |
301 | This program is distributed in the hope that it will be useful,
302 | but WITHOUT ANY WARRANTY; without even the implied warranty of
303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304 | GNU General Public License for more details.
305 |
306 | You should have received a copy of the GNU General Public License along
307 | with this program; if not, write to the Free Software Foundation, Inc.,
308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309 |
310 | Also add information on how to contact you by electronic and paper mail.
311 |
312 | If the program is interactive, make it output a short notice like this
313 | when it starts in an interactive mode:
314 |
315 | Gnomovision version 69, Copyright (C) year name of author
316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317 | This is free software, and you are welcome to redistribute it
318 | under certain conditions; type `show c' for details.
319 |
320 | The hypothetical commands `show w' and `show c' should show the appropriate
321 | parts of the General Public License. Of course, the commands you use may
322 | be called something other than `show w' and `show c'; they could even be
323 | mouse-clicks or menu items--whatever suits your program.
324 |
325 | You should also get your employer (if you work as a programmer) or your
326 | school, if any, to sign a "copyright disclaimer" for the program, if
327 | necessary. Here is a sample; alter the names:
328 |
329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330 | `Gnomovision' (which makes passes at compilers) written by James Hacker.
331 |
332 | {signature of Ty Coon}, 1 April 1989
333 | Ty Coon, President of Vice
334 |
335 | This General Public License does not permit incorporating your program into
336 | proprietary programs. If your program is a subroutine library, you may
337 | consider it more useful to permit linking proprietary applications with the
338 | library. If this is what you want to do, use the GNU Lesser General
339 | Public License instead of this License.
340 |
--------------------------------------------------------------------------------
/admin-page.php:
--------------------------------------------------------------------------------
1 |
13 |
14 |
'; ?>
15 |
16 |
17 |
21 |
22 |
32 |
33 |
52 |
53 |
71 |
72 |
73 |
74 |
75 |
98 | WP Performance Score Booster - Update applied successfully!', 'wp-performance-score-booster' ); ?>
99 |
107 |
110 |
130 | Settings Saved.', 'wp-performance-score-booster' ); ?>
131 |
134 |
135 |
242 | |
243 |
244 |
245 |
256 | |
257 |
258 |
259 |
260 |
48 | SetOutputFilter DEFLATE
49 |
50 |
51 | SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
52 | RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
53 | SetEnvIfNoCase Request_URI \
54 | \.(?:gif|jpe?g|png|rar|zip|exe|flv|mov|wma|mp3|avi|swf|mp?g|mp4|webm|webp|pdf)$ no-gzip dont-vary
55 |
56 |
57 |
58 | AddOutputFilterByType DEFLATE application/atom+xml \
59 | application/javascript \
60 | application/json \
61 | application/rss+xml \
62 | application/vnd.ms-fontobject \
63 | application/x-font-ttf \
64 | application/xhtml+xml \
65 | application/xml \
66 | font/opentype \
67 | image/svg+xml \
68 | image/x-icon \
69 | text/css \
70 | text/html \
71 | text/plain \
72 | text/x-component \
73 | text/xml
74 |
75 |
76 | Header append Vary: Accept-Encoding
77 |
78 |
79 |
80 | AddType text/html .html_gzip
81 | AddEncoding gzip .html_gzip
82 |
83 |
84 | SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
85 |
86 | ## END GZIP Compression ##
87 | EOD;
88 | return $gzip_htaccess_content . $rules;
89 | }
90 |
91 |
92 | /**********************************
93 | * Leverage Browser Caching (Expires headers) for better cache control
94 | **********************************/
95 | function wppsb_expire_caching_filter( $rules = '' ) {
96 | $expire_cache_htaccess_content = <<
99 | ExpiresActive on
100 | ExpiresByType text/cache-manifest "access plus 0 seconds"
101 | # Media files
102 | ExpiresByType image/gif "access plus 4 months"
103 | ExpiresByType image/png "access plus 4 months"
104 | ExpiresByType image/jpeg "access plus 4 months"
105 | ExpiresByType image/webp "access plus 4 months"
106 | ExpiresByType video/ogg "access plus 1 month"
107 | ExpiresByType audio/ogg "access plus 1 month"
108 | ExpiresByType video/mp4 "access plus 1 month"
109 | ExpiresByType video/webm "access plus 1 month"
110 | ExpiresByType text/x-component "access plus 1 month"
111 | # Webfonts
112 | ExpiresByType font/ttf "access plus 4 months"
113 | ExpiresByType font/otf "access plus 4 months"
114 | ExpiresByType font/woff "access plus 4 months"
115 | ExpiresByType font/woff2 "access plus 4 months"
116 | ExpiresByType image/svg+xml "access plus 1 month"
117 | ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
118 | ExpiresByType text/css "access plus 1 year"
119 | ExpiresByType application/javascript "access plus 1 year"
120 | # HTML and Data
121 | ExpiresByType text/html "access plus 0 seconds"
122 | ExpiresByType text/xml "access plus 0 seconds"
123 | ExpiresByType application/xml "access plus 0 seconds"
124 | ExpiresByType application/json "access plus 0 seconds"
125 | # Feed
126 | ExpiresByType application/rss+xml "access plus 1 hour"
127 | ExpiresByType application/atom+xml "access plus 1 hour"
128 | # Favicon
129 | ExpiresByType image/x-icon "access plus 1 week"
130 | # Default
131 | ExpiresDefault "access plus 2 days"
132 |
133 | ## END Leverage Browser Caching (Expires headers) for better cache control ##
134 | EOD;
135 | return $expire_cache_htaccess_content . $rules;
136 | }
137 |
138 |
139 | /**********************************
140 | * Disable ETag and set Cache-Control headers
141 | **********************************/
142 | function wppsb_etag_headers_filter( $rules = '' ) {
143 | $wppsb_plugin_version = WPPSB_PLUGIN_VERSION;
144 | $etag_headers_content = <<
147 | Header unset ETag
148 |
149 | # Since we’re sending far-future expires, we don’t need ETags for static content.
150 | FileETag None
151 |
152 |
153 |
154 | Header unset Pragma
155 | Header append Cache-Control "public"
156 |
157 |
158 |
159 |
160 | Header set X-Powered-By "WP Performance Score Booster/$wppsb_plugin_version"
161 | Header unset Pragma
162 | Header append Cache-Control "public"
163 | Header unset Last-Modified
164 |
165 |
166 |
167 | ## END Disable ETag and set Cache-Control headers ##
168 | EOD;
169 | return $etag_headers_content . $rules;
170 | }
171 |
172 |
173 | // Special thanks to Marin Atanasov ( https://github.com/tyxla ) for contributing this awesome function.
174 | // Updates the htaccess file with the current rules if it is writable.
175 | function wppsb_save_mod_rewrite_rules( $enable_gzip_val, $expire_caching_val ) {
176 | if ( is_multisite() ) {
177 | return;
178 | }
179 |
180 | global $wp_rewrite;
181 |
182 | $htaccess_file = get_home_path() . '.htaccess';
183 |
184 | /*
185 | * If the file doesn't already exist check for write access to the directory
186 | * and whether we have some rules. Else check for write access to the file.
187 | */
188 | if ( ( ! file_exists( $htaccess_file ) && is_writable( get_home_path() ) && $wp_rewrite->using_mod_rewrite_permalinks() ) || is_writable( $htaccess_file ) ) {
189 | $mod_rewrite_enabled = function_exists( 'got_mod_rewrite' ) ? got_mod_rewrite() : false;
190 | if ( $mod_rewrite_enabled ) {
191 | $rules = explode( "\n", $wp_rewrite->mod_rewrite_rules() );
192 | // $enable_gzip = 'wppsb_enable_gzip';
193 | // $expire_caching = 'wppsb_expire_caching';
194 | // $enable_gzip_val = get_option($enable_gzip);
195 | // $expire_caching_val = get_option($expire_caching);
196 | $rules = array();
197 | if ( $enable_gzip_val == 'on' ) {
198 | $rules = array_merge( $rules, explode( '\n', wppsb_enable_gzip_filter() ) );
199 | }
200 | if ( $expire_caching_val == 'on' ) {
201 | $rules = array_merge( $rules, explode( '\n', wppsb_expire_caching_filter() ) );
202 | $rules = array_merge( $rules, explode( '\n', wppsb_etag_headers_filter() ) );
203 | }
204 |
205 | // chmod( $htaccess_file, 0777 );
206 | return insert_with_markers( $htaccess_file, 'WP Performance Score Booster Settings', $rules );
207 | // chmod( $htaccess_file, 0644 );
208 | }
209 | }
210 | return false;
211 | }
212 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 | \n"
8 | "Language-Team: \n"
9 | "MIME-Version: 1.0\n"
10 | "Content-Type: text/plain; charset=UTF-8\n"
11 | "Content-Transfer-Encoding: 8bit\n"
12 | "Plural-Forms: nplurals=2; plural=n != 1;\n"
13 | "X-Generator: CSL v1.x\n"
14 | "X-Poedit-Language: English\n"
15 | "X-Poedit-Country: UNITED STATES\n"
16 | "X-Poedit-SourceCharset: utf-8\n"
17 | "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18 | "X-Poedit-Basepath: ../\n"
19 | "X-Poedit-Bookmarks: \n"
20 | "X-Poedit-SearchPath-0: .\n"
21 | "X-Textdomain-Support: yes"
22 |
23 | #: wp-performance-score-booster.php:176
24 | #: wp-performance-score-booster.php:257
25 | #@ wp-performance-score-booster
26 | msgid "WP Performance Score Booster Settings"
27 | msgstr ""
28 |
29 | #: wp-performance-score-booster.php:180
30 | #@ default
31 | msgid "You do not have sufficient permissions to access this page."
32 | msgstr ""
33 |
34 | #: wp-performance-score-booster.php:211
35 | #@ wp-performance-score-booster
36 | msgid "Settings Saved."
37 | msgstr ""
38 |
39 | #: wp-performance-score-booster.php:218
40 | #@ wp-performance-score-booster
41 | msgid "Remove query strings from static content"
42 | msgstr ""
43 |
44 | #: wp-performance-score-booster.php:222
45 | #: wp-performance-score-booster.php:225
46 | #@ wp-performance-score-booster
47 | msgid "Enable GZIP compression (compress text, html, javascript, css, xml and so on)"
48 | msgstr ""
49 |
50 | #: wp-performance-score-booster.php:225
51 | #@ wp-performance-score-booster
52 | msgid "Your web server does not support GZIP compression. Contact your hosting provider to enable it."
53 | msgstr ""
54 |
55 | #: wp-performance-score-booster.php:229
56 | #@ wp-performance-score-booster
57 | msgid "Set expire caching (Leverage Browser Caching)"
58 | msgstr ""
59 |
60 | #: wp-performance-score-booster.php:231
61 | #@ wp-performance-score-booster
62 | msgid "Save Changes"
63 | msgstr ""
64 |
65 | #: wp-performance-score-booster.php:237
66 | #@ wp-performance-score-booster
67 | msgid "Support this plugin and donate"
68 | msgstr ""
69 |
70 | #: wp-performance-score-booster.php:238
71 | #@ wp-performance-score-booster
72 | msgid "Rate this plugin on WordPress.org"
73 | msgstr ""
74 |
75 | #: wp-performance-score-booster.php:239
76 | #@ wp-performance-score-booster
77 | msgid "Get support on on WordPress.org"
78 | msgstr ""
79 |
80 | #: wp-performance-score-booster.php:240
81 | #@ wp-performance-score-booster
82 | msgid "Contribute development on GitHub"
83 | msgstr ""
84 |
85 | #: wp-performance-score-booster.php:241
86 | #@ wp-performance-score-booster
87 | msgid "Get my other plugins"
88 | msgstr ""
89 |
90 | #: wp-performance-score-booster.php:244
91 | #@ wp-performance-score-booster
92 | msgid "Version:"
93 | msgstr ""
94 |
95 | #: wp-performance-score-booster.php:257
96 | #@ wp-performance-score-booster
97 | msgid "WP Performance Score Booster"
98 | msgstr ""
99 |
100 |
--------------------------------------------------------------------------------
/languages/wp-performance-score-booster.pot:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2014 WP Performance Score Booster
2 | # This file is distributed under the same license as the WP Performance Score Booster package.
3 | msgid ""
4 | msgstr ""
5 | "Project-Id-Version: WP Performance Score Booster 1.2.2\n"
6 | "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-performance-score-booster\n"
7 | "POT-Creation-Date: 2014-12-25 11:29:38+00:00\n"
8 | "MIME-Version: 1.0\n"
9 | "Content-Type: text/plain; charset=UTF-8\n"
10 | "Content-Transfer-Encoding: 8bit\n"
11 | "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12 | "Last-Translator: Dipak C. Gajjar \n"
13 | "Language-Team: LANGUAGE \n"
14 |
15 | #: wp-performance-score-booster.php:143
16 | msgid "You do not have sufficient permissions to access this page."
17 | msgstr ""
18 |
19 | #: wp-performance-score-booster.php:194
20 | msgid "Save Changes"
21 | msgstr ""
22 |
23 | #. Plugin Name of the plugin/theme
24 | msgid "WP Performance Score Booster"
25 | msgstr ""
26 |
27 | #. Plugin URI of the plugin/theme
28 | msgid "https://github.com/dipakcg/wp-performance-score-booster"
29 | msgstr ""
30 |
31 | #. Description of the plugin/theme
32 | msgid ""
33 | "Speed-up page load times and improve website scores in services like "
34 | "PageSpeed, YSlow, Pingdom and GTmetrix."
35 | msgstr ""
36 |
37 | #. Author of the plugin/theme
38 | msgid "Dipak C. Gajjar"
39 | msgstr ""
40 |
41 | #. Author URI of the plugin/theme
42 | msgid "http://www.dipakgajjar.com/"
43 | msgstr ""
44 |
--------------------------------------------------------------------------------
/news-and-updates.html:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 | CodeUp Studios.
14 | ☞ Custom WordPress Development and Support Services
15 | Let us take care of your WordPress site – Custom Development, Plugin Development, Security Monitoring, Bug Fixing, WordPress Updates, Backups, Performance Optimisation, Site Migration and more!
16 |
17 |
18 |
19 | February 10, 2017.
20 | ☞ WP Performance Score Booster v1.7.1 released.
21 | Must have WordPress plugin that speed-up page load times and improve website scores in services like PageSpeed, YSlow, Pingdom and GTmetrix.
22 |
23 |
24 |
25 |
26 | January 06, 2017.
27 | ☞ Easy Digital Downloads - Extra note(s) On Checkout version 1.1 released.
28 | Easy Digital Downloads add-on/extension, adds 'Extra note(s)' textarea to the checkout screen for buyers to add notes about their order.
29 |
30 |
36 |
--------------------------------------------------------------------------------
/optimize-more.php:
--------------------------------------------------------------------------------
1 |
4 |
10 |
11 |
12 |
13 |
40 |
41 |
9 |
10 |
11 | ./tests/
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/promos.html:
--------------------------------------------------------------------------------
1 |
2 |
☞ WordPress Speed Optimisation Service - starting from $119. (use coupon code "10OFF" to get flat $10 off)
3 |
4 | Order now to boost your site speed that enable you to provide (your site users) the very best possible user experience.
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # [WP Performance Score Booster – Optimize Speed, Enable Cache & Page Preload](https://wordpress.org/plugins/wp-performance-score-booster/)
2 |
3 | 
4 | 
5 | 
6 | 
7 | [](https://github.com/dipakcg/wp-performance-score-booster/blob/master/license.txt)
8 |
9 | WP Performance Score Booster makes website faster, speeds up page load time, and instantly improves website performance scores in tools like Google PageSpeed Insights, GTmetrix, Pingdom, and more.
10 |
11 | **This plugin will...**
12 | * Remove any query strings from static resources like CSS & JS files
13 | * Enable GZIP compression (compress text, html, javascript, css, xml and so on)
14 | * Leverage browser caching (expires headers) for better cache control
15 | * Preload a page (on mouse hover) right before a user click on a link
16 | * Disable ETag and set Cache-Control headers
17 |
18 | ## Installation
19 | * Download the stable version of plugin from wordpress.org repo or developer version from GitHub.
20 | * Upload the folder to the ‘/wp-content/plugins/‘ directory
21 | * Activate the plugin through the ‘Plugins’ menu in WordPress.
22 | * That’s it!
23 |
24 | #### Download links:
25 | * Latest Stable version: [wordpress.org repo](https://wordpress.org/plugins/wp-performance-score-booster/)
26 | * Latest Developer version: [Clone the GitHub repository](https://github.com/dipakcg/wp-performance-score-booster.git) or [Download zip](https://github.com/dipakcg/wp-performance-score-booster/archive/master.zip)
27 |
28 | ## Support
29 | This is a development reposiroty for `WP Performance Score Booster` and should _not_ be used for support. Please visit the [wordpress.org support forum](http://wordpress.org/support/plugin/wp-performance-score-booster) for any support request.
30 |
31 | ## Contributions
32 | Anyone is welcome to contribute to the development of this plugin. There are various ways to do so:
33 |
34 | 1. Found a bug? Raise an [issue](https://github.com/dipakcg/wp-performance-score-booster/issues?direction=desc&labels=bug&page=1&sort=created&state=open) on GitHub.
35 | 2. Send me a Pull Request with your bug fixes and/or new features.
36 | 3. Provide feedback and suggestions on [enhancements](https://github.com/dipakcg/wp-performance-score-booster/issues?direction=desc&labels=enhancement&page=1&sort=created&state=open).
37 |
--------------------------------------------------------------------------------
/readme.txt:
--------------------------------------------------------------------------------
1 | === WP Performance Score Booster – Optimize Speed, Enable Cache & Page Preload ===
2 | Contributors: dipakcg
3 | Tags: performance, optimize, speed, query string, preload, gzip, gtmetrix, etag, compression, pagespeed, google psi
4 | Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38
5 | Requires at least: 3.5
6 | Tested up to: 6.8
7 | Requires PHP: 5.6
8 | Stable tag: 2.2.3
9 | License: GPLv2 or later
10 |
11 | Make website faster, speed up page load time and improve performance scores in tools like Google PageSpeed Insights, GTmetrix, Pingdom, and more.
12 |
13 | == Description ==
14 | **WP Performance Score Booster makes website faster, speeds up page load time, and instantly improves website performance scores in tools like Google PageSpeed Insights, GTmetrix, Pingdom, and more.**
15 |
16 | = This plugin will... =
17 | * Remove any query strings from static resources like CSS & JS files
18 | * Enable GZIP compression (compress text, html, javascript, css, xml and so on)
19 | * Leverage browser caching (expires headers) for better cache control
20 | * Preload a page (on mouse hover) right before a user click on a link
21 | * Disable ETag and set Cache-Control headers
22 |
23 | [youtube https://www.youtube.com/watch?v=nEFZLFyZNcE]
24 |
25 | **Like this plugin? You'll love my other plugin: [WP Super Minify](https://wordpress.org/plugins/wp-super-minify/)**
26 |
27 | #### Development & Support
28 |
29 | Follow the development of this plugin on [GitHub](https://github.com/dipakcg/wp-performance-score-booster).
30 |
31 | P.S. It is always the best policy to open a [support thread](https://wordpress.org/support/plugin/wp-performance-score-booster#new-topic-0) first before posting any negative review.
32 |
33 | == Installation ==
34 | = Automatic Installation (Recommended) =
35 | 1. Go to your WordPress Dashboard → Plugins → Add New.
36 | 2. Search for `WP Performance Score Booster`.
37 | 3. Click Install Now, then Activate the plugin.
38 | 4. The plugin is now ready to use!
39 |
40 | = Manual Installation (Upload via WordPress Dashboard) =
41 | 1. Download the latest version of the plugin (.zip file).
42 | 2. In your WordPress Dashboard, go to Plugins → Add New → Upload Plugin.
43 | 3. Click Choose File, select the downloaded .zip file, and click Install Now.
44 | 4. Once installed, click Activate Plugin.
45 |
46 | = Manual Installation (FTP/SFTP Method) =
47 | 1. Download and extract the plugin .zip file.
48 | 2. Connect to your server via FTP/SFTP.
49 | 3. Upload the extracted folder to /wp-content/plugins/.
50 | 4. In your WordPress Dashboard, go to Plugins and activate `WP Performance Score Booster`.
51 |
52 | == Frequently Asked Questions ==
53 | = What does this plugin do? =
54 |
55 | This plugin makes website faster, speed-up page load time and instantly improve website scores in tools like Google PageSpeed Insights, GTmetrix, Pingdom, and more.
56 |
57 | = Any specific requirements for this plugin to work? =
58 |
59 | * GZIP compression ( `mod_deflat` module ) should be enabled in your web-server. If not then you can ask your web hosting provider to enable it for you.
60 | * `.htaccess` in your WordPress root folder must have write permissions.
61 |
62 | = What if I get 500 Internal Server Error? =
63 |
64 | If you get "500 - Internal Server Error" after you activate the plugin, Follow the steps below:
65 |
66 | 1. Login to your FTP or open File Manager (ask your hosting provider).
67 | 2. Go to the WordPress installation root directory and then `wp-content/wp-performance-score-booster` directory.
68 | 3. Copy `.htaccess.wppsb` file.
69 | 4. Now move back to WordPress installation root directory and Rename the `.htaccess` file (to something like .htaccess.bak).
70 | 5. Paste `.htaccess.wppsb` file (copied from step 3) and rename it to `.htaccess`.
71 |
72 | That's it! Your site should be up and running now.
73 |
74 | _• You can still open a [support thread](https://wordpress.org/support/plugin/wp-performance-score-booster#new-topic-0) if you have any issues._
75 |
76 | = This plugin improved the performance of my site, how do I thank you? =
77 |
78 | If this plugin has helped you in any way, you can:
79 | - [Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38): Donations help me to continue development and user support of this free awesome plugin for which I spend countless hours of my valuable time.
80 | - [Review](https://wordpress.org/support/plugin/wp-performance-score-booster/reviews/?rate=5#new-post): Review this plugin with a 5-star rating.
81 | - Recommend: Recommend this plugin to others.
82 |
83 | == Screenshots ==
84 | 1. Admin Settings
85 |
86 | == Changelog ==
87 | = 2.2.3, February 17, 2025 =
88 | * Improve: Compatibility with WordPress 6.7.2 and PHP
89 | * Improve: Replaced instant.page with custom-built Preloader and Prefetcher (preloader.js)
90 | * Improve: Admin page design — cosmic changes
91 |
92 | = 2.2.2, October 18, 2024 =
93 | * Improve: Compatibility with WordPress 6.6
94 |
95 | = 2.2.1, May 19, 2023 =
96 | * Update: Instant.page preloader version from 5.1 to 5.2
97 |
98 | = 2.2, October 13, 2021 =
99 | * Improve: Data Sanitization / Escaping
100 |
101 | = 2.1, October 12, 2021 =
102 | * Improve: CSRF Check
103 |
104 | = 2.0, November 02, 2020 =
105 | * New: Redesigned settings page
106 | * New: Instant.page preloader that preload a page (on mouse hover) right before a user click on a link
107 | * Improve: htaccess rules for better GZIP compression and leverage browser caching (expires headers) for better cache control
108 | * Improve: Disable ETag and set Cache-Control headers
109 |
110 | = 1.9.2.2, December 19, 2018 =
111 | * Fixed "Remove any query strings from static resources" conflict in admin
112 |
113 | = 1.9.2.1, May 26, 2018 =
114 | * Fixed jQuery conflict with Review Plugin notice.
115 | * Fixed minor typo
116 |
117 | = 1.9.2, May 11, 2018 =
118 | * Fixed bug with Review Plugin notice.
119 | * Review Plugin notice is now dismissible (permanently) when a user click the (X) on the top right.
120 | * Improved user experience (by implementing jQuery - Ajax calls).
121 |
122 | = 1.9.1, May 02, 2018 =
123 | * Added Review Plugin - admin notice
124 | * Improved Recommendations tab
125 |
126 | = 1.9, November 28, 2017 =
127 | * Completely rewritten
128 | * Fixed few CSS bugs (admin settings)
129 | * Removed Donate button
130 |
131 | = 1.8, July 03, 2017 =
132 | * Added a feature that auto-backup .htaccess file before appending any rules (for GZIP and browser caching)
133 | * Improved uninstallation process
134 | * Added a topic on 500 - Internal Server Error Fix into FAQ
135 |
136 | = 1.7.2, March 21, 2017 =
137 | * Improved Promos, News and Updates, and recommendations area.
138 |
139 | = 1.7.1, February 10, 2017 =
140 | * Improved recommendations area.
141 |
142 | = 1.7, September 15, 2016 =
143 | * Fixed css conflict with WP Super Minify.
144 | * Improved deactivation and uninstallation hooks.
145 | * Organised file structure (custom MVC Skeleton).
146 | * Added hosting recommendations.
147 |
148 | = 1.6, July 26, 2016 =
149 | * Improved UI.
150 | * Fixed minor bugs.
151 | * Minified CSS.
152 |
153 | = 1.5, February 02, 2016 =
154 | * Fixed conflict with Divi and Divi Builder.
155 | * Moved Options / Settings under *'Settings'* menu.
156 | * Added *'Settings'* option directly under plugins (installed plugins) page.
157 | * Amended *'News and Updates'* section.
158 |
159 | = 1.4, February 28, 2015 =
160 | * Added News and Updates section in admin options.
161 |
162 | = 1.3.1, December 30, 2014 =
163 | * Fixed issues with htaccess causing internal server error.
164 |
165 | = 1.3, December 29, 2014 =
166 | * Fixed issues with htaccess custom rules overrides.
167 | * WP Performance Score Booster now adds rules to htaccess outside default WordPress block.
168 |
169 | = 1.2.2, December 27, 2014 =
170 | * Added support for language translations.
171 |
172 | = 1.2.1, November 17, 2014 =
173 | * Removed (temporarily) feature to enqueue scripts to footer.
174 |
175 | = 1.2, November 17, 2014 =
176 | * Added feature to enqueue scripts to footer.
177 | * Added support for Vary: Accept-Encoding header.
178 | * Fixed minor issues for remove query strings from static resources.
179 |
180 | = 1.1.1, September 02, 2014 =
181 | * Added feature (for urls with &ver) to remove query strings from static resources.
182 |
183 | = 1.1, August 31, 2014 =
184 | * Added Admin Options / Settings.
185 |
186 | = 1.0, August 26, 2014 =
187 | * Initial release.
188 | * Born of WP Performance Score Booster.
189 |
190 | == Upgrade Notice ==
191 |
192 | = 2.0 =
193 | This version adds support for page preloading, improves compression and caching rules for faster speed, and has newly designed settings page. Recommended upgrade.
194 |
--------------------------------------------------------------------------------
/referrals.html:
--------------------------------------------------------------------------------
1 |
5 |
6 | Great managed WordPress hosting at SiteGround starting from $3.95 per month.
Read more...
7 |

8 |
9 |
10 | Make WordPress even faster by compressing images without losing it's quality.
Read more...
11 |

12 |
13 |
--------------------------------------------------------------------------------
/tests/bootstrap.php:
--------------------------------------------------------------------------------
1 | array( PLUGIN_PATH ),
12 | );
13 | require_once $_tests_dir . '/includes/functions.php';
14 | function _manually_load_plugin() {
15 | require dirname( __DIR__ ) . '/'.PLUGIN_NAME;
16 | }
17 | tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
18 | require $_tests_dir . '/includes/bootstrap.php';
19 |
--------------------------------------------------------------------------------
/tests/test-plugin.php:
--------------------------------------------------------------------------------
1 | assertTrue( is_plugin_active( PLUGIN_PATH ) );
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/uninstall.php:
--------------------------------------------------------------------------------
1 | Settings';
97 | $wppsb_links = array( 'Settings' );
98 | // array_unshift($links, $settings_link);
99 | $links = array_merge( $wppsb_links, $links );
100 |
101 | return $links;
102 | }
103 | add_filter( 'plugin_action_links_' . WPPSB_BASE, 'dcg_settings_link' );
104 |
105 |
106 | // Adding WordPress plugin meta links
107 | function wppsb_plugin_meta_links( $links, $file ) {
108 | // Create link
109 | if ( $file === plugin_basename(__FILE__) ) {
110 | return array_merge(
111 | $links,
112 | array( 'Improve your site\'s performance even more!' )
113 | );
114 | }
115 | return $links;
116 | }
117 | add_filter( 'plugin_row_meta', 'wppsb_plugin_meta_links', 10, 2 );
118 |
119 |
120 | function wppsb_add_stylesheet() {
121 | wp_enqueue_style( 'wppsb-stylesheet', WPPSB_URL . 'assets/css/style.min.css' );
122 | }
123 |
124 |
125 | // Add header
126 | function wppsb_add_header() {
127 | // Get the plugin version from options (in the database)
128 | global $wppsb_plugin_version;
129 | $head_comment = <<
131 | EOD;
132 | $head_comment = $head_comment . PHP_EOL;
133 | print ( $head_comment );
134 | }
135 | add_action( 'wp_head', 'wppsb_add_header', 1 );
136 |
137 |
138 | // Display admin notice to apply changes in the occurrence of update (when plugin updated)
139 | function wppsb_apply_updates_notice() {
140 | global $wppsb_plugin_version;
141 | $notice_contents = 'WP Performance Score Booster has been updated to version: ' . WPPSB_PLUGIN_VERSION . '
';
142 | $notice_contents .= 'Apply Changes
';
143 | ?>
144 |
145 | = $install_date ) {
207 | update_option( 'wppsb_review_notice', 'on' );
208 | delete_option( 'wppsb_activation_date' );
209 | }
210 | }
211 | add_action( 'wppsb_rating_system_action', 'wppsb_rating_checker' );
212 |
213 |
214 | /* Add admin notice for requesting plugin review */
215 | function wppsb_submit_review_notice() {
216 | global $wppsb_plugin_version;
217 |
218 | /* Display review plugin notice if plugin updated */
219 | // only applies to older versions of the plugin (older than 1.9.1) where option isn't set
220 | // As version 2.0 is a major release, let's force users to submit review on wordpress.org
221 | if ( isset( $_GET['update-applied'] ) && $_GET['update-applied'] == 'true' ) {
222 | if ( FALSE === get_option('wppsb_review_notice' || WPPSB_PLUGIN_VERSION == '2.0' ) ) {
223 | update_option( 'wppsb_review_notice', "on" );
224 | }
225 | }
226 |
227 | /* Check transient that's been set on plugin activation or check if user has already submitted review */
228 | // if( get_transient( 'wppsb_submit_review_transient' ) || !get_user_meta( $user_id, 'wppsb_submit_review_dismissed' ) ) {
229 | if( get_option( 'wppsb_review_notice') && get_option( 'wppsb_review_notice' ) == "on" ) {
230 |
231 | $notice_contents = ' Thank you for using WP Performance Score Booster.
';
232 | $notice_contents .= ' Could you please do me a BIG favour and give this plugin a 5-star rating on WordPress? It won\'t take more than a minute, and help me spread the word and boost my motivation. - Dipak C. Gajjar
';
233 | $notice_contents .= ' Yes, you deserve it Maybe later I already did it No, Thanks
';
234 | ?>
235 |
236 |
309 |