alexsancho/wp-dropins

This is a composer metapackage which includes WordPress plugins that make your site safer, faster and cleaner.

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.0.3 2018-05-24 21:19 UTC

This package is auto-updated.

Last update: 2021-10-14 13:03:14 UTC


README

This is WordPress plugin and dropin collection which enhances WordPress in multiple ways.

Reasons

This package was created to handle multiple projects with composer update. We just include this collection into our composer.json and stick to the guidelines about which plugins should be included here. WordPress evolves with time and some plugins will propably be pointless at some point, if that happens we will remove those unneccessary plugins.

Installation

$ composer require alexsancho/wp-dropins

Guidelines

We only want to add minimal plugins which enhance small part of WordPress.

WordPress should expose as little as possible about itself and plugins

  • All unneccessary html comments and headers should be stripped away.

WordPress shouldn't make any additional requests to wordpress.org or 3rd party services

  • WordPress should disable anything related to updates of core/themes/plugins.
  • WordPress shouldn't create unneccessary requests which either slow the page down or use cpu cycles without any additional value

Cache as much as possible

  • Caching reduces load and allows us to create faster sites

Avoid situations where users can accidentally create errors

WordPress core development moves a bit slower with some enhancements. We will add plugins that provide fixes for problems like accented file uploads into this collection. Once those features or fixes are not needed anymore we will disable them from this package.

WordPress shouldn't install or contain unneccessary example data

  • Core installation should create minimal amount of content
  • Plugins shouldn't have example content when possible

Requirements

  • = PHP 7.0

  • WordPress
  • Redis server for object caching
  • Use composer to update your site rather than using WordPress auto updates

Composer.json settings

For correct installation your project should define following installation paths in extra section:

extra: {
    "installer-paths": {
      "web/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
      "web/wp-content/plugins/{$name}/": ["type:wordpress-plugin"]
    },
    "dropin-paths": {
      "web/wp-content/": ["type:wordpress-dropin"]
    }
}