Difference: Compress-wordpress (1 vs. 8)

Revision 82018-03-21 - ZachBornheimer

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

compress-wordpress

Line: 17 to 17
 

Switches and their priority


If there are two command line switches on the line, the one closer to left has higher priority. The switches with highest priority are first in this list.

Changed:
<
<
  • --only-core : excludes the WP_CONTENT directory (as defined in wp-config.php or it defaults to /wp-content/) from optimization
  • --no-wp-update : does not update plugins, themes, and the core
  • --no-wp-redownload : does not redownload the WordPress Core
  • --simple-image-optimzation : does nothing...relic to be removed.
  • --no-image-optimization : no image optimization
  • --ignore-uploaded-images : if image optimization is enabled, it actively ignores files with paths matching /uploads/ and /blogs.dir/
  • --aggressive : triggers wp-update, wp-core-redownload, and wp-db-upgrade
  • --no-css : no css optimization
  • --no-js || --no-javascript : no javascript optimization
>
>
  • --only-core : excludes the WP_CONTENT directory (as defined in wp-config.php or it defaults to /wp-content/) from optimization
  • --no-wp-update : does not update plugins, themes, and the core
  • --no-wp-redownload : does not redownload the WordPress Core
  • --simple-image-optimzation : does nothing...relic to be removed.
  • --no-image-optimization : no image optimization
  • --ignore-uploaded-images : if image optimization is enabled, it actively ignores files with paths matching /uploads/ and /blogs.dir/
  • --aggressive : triggers wp-update, wp-core-redownload, and wp-db-upgrade
  • --no-css : no css optimization
  • --no-js || --no-javascript : no javascript optimization
 

Requirements

Below, you will find Unix and Perl Requirements.

Unix Requirements

Changed:
<
<
This software assumes CentOS with the YUM software utility. It can be easily modified to another system by adjusting the $packageManagerInstall
>
>
This software assumes CentOS with the YUM software utility. It can be easily modified to another system by adjusting the $packageManagerInstall
  If the below software isn't installed, it will auto-install the software.
Line: 67 to 67
 

Suggested Parameters

Changed:
<
<
For all sites:
>
>
For all sites without the ZysysHosting Optimizations Plugin:
 
Changed:
<
<
compress-wordpress --aggressive --only-core
>
>
compress-wordpress --aggressive --only-core

For all sites WITH the ZysysHosting Optimizations Plugin:

compress-wordpress --aggressive --no-image-optimization

  For some some sites:
Changed:
<
<
compress-wordpress --aggressive
>
>
compress-wordpress --aggressive
 

Bug Reporting

Revision 72018-01-07 - ZachBornheimer

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

compress-wordpress

Line: 11 to 11
  cd into the wordpress base directory. Then run:
Changed:
<
<
compress-wordpress --aggressive -no-image-optimization
>
>
compress-wordpress --aggressive --no-image-optimization
  After that, use the /scripts/optimize-images.pl script to optimize the images.

Switches and their priority

Revision 62016-11-06 - ZachBornheimer

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

compress-wordpress

Changed:
<
<
>
>
  compress-wordpress is available online at: https://github.com/zachbornheimer/compress-wordpress
Changed:
<
<
compress-wordpress is a program written by Z. Bornheimer to allow for the automatic optimization of a wordpress installation. It makes use of the wp-config.php file to find the "wp-content" directory if it isn't wp-content. The program runs css compression, javascript compression, and image compression; any/each of these can be disabled through a commandline switch. Additionally, image optimization has two types: aggressive (nearly lossless) and simple (lossless); in 99% of cases, there will be no visual distinction between the two.
>
>
compress-wordpress is a program written by Z. Bornheimer to allow for the automatic optimization of a wordpress installation. It makes use of the wp-config.php file to find the "wp-content" directory if it isn't wp-content. The program runs css compression, javascript compression, and image compression; any/each of these can be disabled through a commandline switch. Additionally, image optimization has two types: aggressive (nearly lossless) and simple (lossless); in 99% of cases, there will be no visual distinction between the two.

Recommended Procedure

 
Added:
>
>
cd into the wordpress base directory. Then run:

compress-wordpress --aggressive -no-image-optimization

After that, use the /scripts/optimize-images.pl script to optimize the images.

 

Switches and their priority


If there are two command line switches on the line, the one closer to left has higher priority. The switches with highest priority are first in this list.

Changed:
<
<
  • --only-core : excludes the WP_CONTENT directory (as defined in wp-config.php or it defaults to /wp-content/) from optimization
  • --no-wp-update : does not update plugins, themes, and the core
  • --no-wp-redownload : does not redownload the WordPress Core
  • --simple-image-optimzation : does nothing...relic to be removed.
  • --no-image-optimization : no image optimization
  • --ignore-uploaded-images : if image optimization is enabled, it actively ignores files with paths matching /uploads/ and /blogs.dir/
  • --aggressive : triggers wp-update, wp-core-redownload, and wp-db-upgrade
  • --no-css : no css optimization
  • --no-js || --no-javascript : no javascript optimization
>
>
  • --only-core : excludes the WP_CONTENT directory (as defined in wp-config.php or it defaults to /wp-content/) from optimization
  • --no-wp-update : does not update plugins, themes, and the core
  • --no-wp-redownload : does not redownload the WordPress Core
  • --simple-image-optimzation : does nothing...relic to be removed.
  • --no-image-optimization : no image optimization
  • --ignore-uploaded-images : if image optimization is enabled, it actively ignores files with paths matching /uploads/ and /blogs.dir/
  • --aggressive : triggers wp-update, wp-core-redownload, and wp-db-upgrade
  • --no-css : no css optimization
  • --no-js || --no-javascript : no javascript optimization
 

Requirements

Below, you will find Unix and Perl Requirements.

Unix Requirements

Changed:
<
<
This software assumes CentOS with the YUM software utility. It can be easily modified to another system by adjusting the $packageManagerInstall
>
>
This software assumes CentOS with the YUM software utility. It can be easily modified to another system by adjusting the $packageManagerInstall
  If the below software isn't installed, it will auto-install the software.

The software compress-wordpress tests/auto-installs are:

Changed:
<
<
  • which
  • find
  • sed
  • which
  • nice
  • closure-compiler
  • yui-compressor
  • java
  • optipng
  • pngquant
  • advdef
  • jpegoptim
  • curl
  • sudo
  • unzip
  • mv
  • wp
>
>
  • which
  • find
  • sed
  • which
  • nice
  • closure-compiler
  • yui-compressor
  • java
  • optipng
  • pngquant
  • advdef
  • jpegoptim
  • curl
  • sudo
  • unzip
  • mv
  • wp
 

Perl Modules

Changed:
<
<
  • strict
  • warnings
  • feature qw/ say switch /
  • Getopt::Long
  • Test::Simple
>
>
  • strict
  • warnings
  • feature qw/ say switch /
  • Getopt::Long
  • Test::Simple
 

Code Design

Changed:
<
<
The idea behind the testing was to easily check for the programs in a perl-specific manner, hence the testing module...testing. Additionally, I used a comment-first style (which allows effective programming from a predefined flow).
>
>
The idea behind the testing was to easily check for the programs in a perl-specific manner, hence the testing module...testing. Additionally, I used a comment-first style (which allows effective programming from a predefined flow).
 

Suggested Parameters

For all sites:

Changed:
<
<
compress-wordpress --aggressive --only-core
>
>
compress-wordpress --aggressive --only-core
  For some some sites:
Changed:
<
<
compress-wordpress --aggressive
>
>
compress-wordpress --aggressive
 

Bug Reporting

Revision 52016-08-05 - ZachBornheimer

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

compress-wordpress

Line: 16 to 16
 
  • --only-core : excludes the WP_CONTENT directory (as defined in wp-config.php or it defaults to /wp-content/) from optimization
  • --no-wp-update : does not update plugins, themes, and the core
  • --no-wp-redownload : does not redownload the WordPress Core
Changed:
<
<
  • --simple-image-optimzation : does simple image optimization
>
>
  • --simple-image-optimzation : does nothing...relic to be removed.
 
  • --no-image-optimization : no image optimization
  • --ignore-uploaded-images : if image optimization is enabled, it actively ignores files with paths matching /uploads/ and /blogs.dir/
Changed:
<
<
  • --aggressive : does aggressive image optimization, triggers wp-update, wp-core-redownload
>
>
  • --aggressive : triggers wp-update, wp-core-redownload, and wp-db-upgrade
 
  • --no-css : no css optimization
  • --no-js || --no-javascript : no javascript optimization

Requirements

Revision 42016-07-02 - ZachBornheimer

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

compress-wordpress

Line: 13 to 13
 

Switches and their priority


If there are two command line switches on the line, the one closer to left has higher priority. The switches with highest priority are first in this list.

Added:
>
>
  • --only-core : excludes the WP_CONTENT directory (as defined in wp-config.php or it defaults to /wp-content/) from optimization
 
  • --no-wp-update : does not update plugins, themes, and the core
  • --no-wp-redownload : does not redownload the WordPress Core
  • --simple-image-optimzation : does simple image optimization
Line: 21 to 22
 
  • --aggressive : does aggressive image optimization, triggers wp-update, wp-core-redownload
  • --no-css : no css optimization
  • --no-js || --no-javascript : no javascript optimization
Deleted:
<
<
  • --only-core : excludes the WP_CONTENT directory (as defined in wp-config.php or it defaults to /wp-content/) from optimization
 

Requirements

Below, you will find Unix and Perl Requirements.

Line: 60 to 60
 

Code Design

The idea behind the testing was to easily check for the programs in a perl-specific manner, hence the testing module...testing. Additionally, I used a comment-first style (which allows effective programming from a predefined flow).

Added:
>
>

Suggested Parameters

For all sites:

compress-wordpress --aggressive --only-core

For some some sites:

compress-wordpress --aggressive

 

Bug Reporting

Find a bug? Report it: http://bugs.zysys.org/buglist.cgi?product=compress-wordpress \ No newline at end of file

Revision 32015-12-15 - ZachBornheimer

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

compress-wordpress

Line: 21 to 21
 
  • --aggressive : does aggressive image optimization, triggers wp-update, wp-core-redownload
  • --no-css : no css optimization
  • --no-js || --no-javascript : no javascript optimization
Added:
>
>
  • --only-core : excludes the WP_CONTENT directory (as defined in wp-config.php or it defaults to /wp-content/) from optimization
 

Requirements

Below, you will find Unix and Perl Requirements.

Revision 22015-07-11 - ZachBornheimer

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

compress-wordpress

Line: 14 to 14
 
If there are two command line switches on the line, the one closer to left has higher priority. The switches with highest priority are first in this list.
  • --no-wp-update : does not update plugins, themes, and the core
Changed:
<
<
  • --no-wp-redownload : does not redownload the WordPress Core
>
>
  • --no-wp-redownload : does not redownload the WordPress Core
 
  • --simple-image-optimzation : does simple image optimization
  • --no-image-optimization : no image optimization
  • --ignore-uploaded-images : if image optimization is enabled, it actively ignores files with paths matching /uploads/ and /blogs.dir/

Revision 12015-06-15 - ZachBornheimer

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

compress-wordpress

compress-wordpress is available online at: https://github.com/zachbornheimer/compress-wordpress

compress-wordpress is a program written by Z. Bornheimer to allow for the automatic optimization of a wordpress installation. It makes use of the wp-config.php file to find the "wp-content" directory if it isn't wp-content. The program runs css compression, javascript compression, and image compression; any/each of these can be disabled through a commandline switch. Additionally, image optimization has two types: aggressive (nearly lossless) and simple (lossless); in 99% of cases, there will be no visual distinction between the two.

Switches and their priority


If there are two command line switches on the line, the one closer to left has higher priority. The switches with highest priority are first in this list.

  • --no-wp-update : does not update plugins, themes, and the core
  • --no-wp-redownload : does not redownload the WordPress Core
  • --simple-image-optimzation : does simple image optimization
  • --no-image-optimization : no image optimization
  • --ignore-uploaded-images : if image optimization is enabled, it actively ignores files with paths matching /uploads/ and /blogs.dir/
  • --aggressive : does aggressive image optimization, triggers wp-update, wp-core-redownload
  • --no-css : no css optimization
  • --no-js || --no-javascript : no javascript optimization

Requirements

Below, you will find Unix and Perl Requirements.

Unix Requirements

This software assumes CentOS with the YUM software utility. It can be easily modified to another system by adjusting the $packageManagerInstall

If the below software isn't installed, it will auto-install the software.

The software compress-wordpress tests/auto-installs are:

  • which
  • find
  • sed
  • which
  • nice
  • closure-compiler
  • yui-compressor
  • java
  • optipng
  • pngquant
  • advdef
  • jpegoptim
  • curl
  • sudo
  • unzip
  • mv
  • wp

Perl Modules

  • strict
  • warnings
  • feature qw/ say switch /
  • Getopt::Long
  • Test::Simple

Code Design

The idea behind the testing was to easily check for the programs in a perl-specific manner, hence the testing module...testing. Additionally, I used a comment-first style (which allows effective programming from a predefined flow).

Bug Reporting

Find a bug? Report it: http://bugs.zysys.org/buglist.cgi?product=compress-wordpress

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback