Code Monkey home page Code Monkey logo

wordpress-plugin-default-config's Introduction

WordPress Plugin Default Config

WordPress Plugin – Default Config

Security & Performance focus



About

Only use if you know what you need. WordPress plugin with some hardcoded, opinionated defaults for enhanced security and reduced feature set. Generic and theme-independent implementation with a modern code style.

Intended for developers – Not end users

Due to use of many 3rd party sources, this plugin is not official. Take what you need or use the setup as boilerplate for your own plugins.



Features

Some features are breaking changes and limit functionality of plugins. Unneeded features can be disabled in code.

Security

  • Disable XMLRPC API (breaks mobile app use!)
  • Disallow login via email address (use username instead)
  • Disable oEmbed
  • Remove login error message
  • Remove meta tags and version numbers
  • Remove links + HTML from posted comments (anti-spam)

Performance

  • Disable Emoji font and styles (can still be used via Unicode)
  • Remove unused links from <head> (e.g. feeds)
  • Move all loaded scripts to document end (remove from head)

General

  • Disable redundant self ping (reduce server load)
  • Delay post publication via RSS (ideal for last-minute QA and fixes)
  • Set image quality to 100% (use plugins for compression)

Developer

  • Clean and modern OOP style



How to use

Copy the folder content in your WordPress installation.

Features

All features are loaded modular and can be edited here:

  • /wp-content/plugins/codeconut-global/app/class.php

Git workflow

Use of submodules is recommended:

  • git submodule add USER:REPOSITORY wp-content/plugins/codeconut-global

Call this from web root. The path must not be preceded with a slash.



Credits

This plugin combines a few great public resources into one package.

Authors

Andreas Hecht

Cloudflare

WpBeginner

wordpress-plugin-default-config's People

Contributors

christianoellers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.