-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kagg-design/v1.6.0
V1.6.0
- Loading branch information
Showing
31 changed files
with
486 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
# A set of files and directories you probably don't want in your WordPress.org distribution | ||
|
||
# Files | ||
/.DS_Store | ||
/.distignore | ||
/.editorconfig | ||
/.gitignore | ||
/.DS_Store | ||
/.phpcs.cache | ||
/README.md | ||
/Thumbs.db | ||
/auth.json | ||
/composer.json | ||
/composer.lock | ||
/phpcs.xml | ||
/changelog.md | ||
/readme.md | ||
|
||
# Directories | ||
/.git | ||
/.github | ||
/.idea | ||
/.wordpress-org | ||
/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
php-version: [ '7.0' ] | ||
|
||
name: PHP ${{ matrix.php-version }} on ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
|
||
- name: Setup Composer caching | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }} | ||
composer install | ||
env: | ||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run code sniffer | ||
run: composer phpcs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Plugin readme/assets update | ||
on: | ||
push: | ||
branches: | ||
- trunk | ||
jobs: | ||
trunk: | ||
name: Push to trunk | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: WordPress.org plugin asset/readme update | ||
uses: 10up/action-wordpress-plugin-asset-update@stable | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
IGNORE_OTHER_FILES: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Deploy to WordPress.org | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
tag: | ||
name: New release | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
|
||
- name: Setup Composer caching | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: Install dependencies in prod version | ||
run: | | ||
composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }} | ||
composer install --no-dev | ||
env: | ||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: WordPress Plugin Deploy | ||
# id: deploy | ||
# uses: 10up/action-wordpress-plugin-deploy@stable | ||
# with: | ||
# generate-zip: true | ||
# env: | ||
# SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
# SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
|
||
- name: Upload release asset | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ${{github.workspace}}/${{ github.event.repository.name }}.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# PageSpeed Optimization | ||
|
||
PageSpeed Optimization plugin performs optimization of external scripts and styles by moving them to the footer, blocking, or delaying. Loading of delayed scripts or styles begins after the first user interaction - scroll, clock, or mouse enter. Links and fonts can be preloaded to minimize loading time. | ||
|
||
During moving, blocking, or delaying, the plugin performs exact calculations of all scripts and styles dependencies across the whole dependency tree. So, any script or style whose position has to be modified will be moved with all dependencies in the proper order. This functionality is unique and does not exist in most top-level caching plugins. | ||
|
||
Some scripts can be stored locally: Google AdSense, Google Analytics, Google Maps, Google Tag Manager, and Yandex Metrika. Scripts for the above-mentioned services will be cached on the local server and updated twice daily. | ||
|
||
Google Pagespeed Insights (PSI) requires leveraging browser cache when using analytics scripts because they only have a 2-hour cache expiry time. When scripts are stored locally, their cache expiry time is increased, raising the PSI score. | ||
|
||
PageSpeed Optimization plugin will get you a higher score on Google Pagespeed Insights and make your website load faster. The most impact can usually be achieved by delaying scripts. | ||
|
||
![](./.wordpress-org/banner-772x250.png) | ||
|
||
## Features | ||
|
||
- Any script or style can be moved from the header to the footer. | ||
- Any script or style can be blocked entirely, preventing its loading. | ||
- Any script or style can be delayed until the first user interaction: scroll, click, or mouse enter. | ||
- Dependencies of moved, blocked, or delayed scripts and styles are correctly calculated across the dependency tree. Therefore, all dependent scripts and styles will be moved in a proper order. This unique feature does not exist in most top-level caching plugins. | ||
- Analytics scripts can be stored locally to improve browser cache time. | ||
- Links and fonts can be preloaded to improve overall page loading time. | ||
|
||
## Installation | ||
|
||
``` | ||
[email protected]:kagg-design/kagg-pagespeed-optimization.git | ||
cd kagg-pagespeed-optimization | ||
composer install --no-dev | ||
``` | ||
|
||
## Development | ||
|
||
``` | ||
[email protected]:kagg-design/kagg-pagespeed-optimization.git | ||
cd kagg-pagespeed-optimization | ||
composer install | ||
``` | ||
|
||
## License | ||
|
||
The WordPress Plugin PageSpeed Optimization is licensed under the GPL v2 or later. | ||
|
||
> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. | ||
> This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
> You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
A copy of the license is included in the root of the plugin’s directory. The file is named `LICENSE`. | ||
|
||
## Credits | ||
|
||
The current version of the PageSpeed Optimization was developed by [KAGG Design](https://kagg.eu/en/). |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.