PHPackages                             bonny/gardener - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bonny/gardener

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

bonny/gardener
==============

Cleanup for WordPress frontend and backend

0.4(6y ago)123866[3 issues](https://github.com/bonny/gardener/issues)[2 PRs](https://github.com/bonny/gardener/pulls)GPL-2.0-or-laterPHPPHP &gt;=7.0

Since Apr 17Pushed 4y ago2 watchersCompare

[ Source](https://github.com/bonny/gardener)[ Packagist](https://packagist.org/packages/bonny/gardener)[ Docs](https://github.com/bonny/gardener/)[ RSS](/packages/bonny-gardener/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (8)Used By (0)

 🏡 🌳 🌻 Gardener 🌻 🌳 🏡
 – Opinionated cleanup for WordPress
============================================================

[](#-------gardener-------------opinionated-cleanup-for-wordpress)

*Gardener*

> one employed to care for the gardens or grounds of a home, business concern, or other property

–

---

**Gardener** is a WordPress plugin that adds theme support for an opinionated cleanup of the WordPress admin and frontend.

No feature is added or modified by default. Support for each feature must be added manually and if this plugin is uninstalled it will not break anything.

Installation and usage
----------------------

[](#installation-and-usage)

Install using composer:

```
composer require bonny/gardener

```

(Or you can just [download the plugin](https://github.com/bonny/gardener/releases) and place it in your wp plugins folder.)

Add support for wanted features in your `functions.php`:

```
add_theme_support('gardener-remove-emoji');
add_theme_support('gardener-relative-links');
add_theme_support('gardener-cleanup-upload-filenames');
add_theme_support('gardener-cleanup-dashboard');
add_theme_support('gardener-hide-posts');
add_theme_support('gardener-hide-comments');
add_theme_support('gardener-enhance-login-screen');

```

TODO
----

[](#todo)

- Add all wanted features.
- Document features incl. screenshots.
- Tests would be nice.

Features
--------

[](#features)

### Relative links

[](#relative-links)

```
add_theme_support('gardener-relative-links');

```

- Change links and images added in Gutenberg and TinyMCE to use relative paths, instead of absolute. This is a benefit when developing a website on several domains, so you don't have to change all links from  to .

 Screenshot "Coming soon." ### Remove emoji

[](#remove-emoji)

```
add_theme_support('gardener-remove-emoji');

```

- Remove emoji related things.
- Removes print\_emoji\_detection\_script, print\_emoji\_styles.

### Cleanup-upload-filenames

[](#cleanup-upload-filenames)

```
add_theme_support('gardener-cleanup-upload-filenames');

```

Make file names of media attachments work better with more server configs because for example MacOS does not treat UPPERCASE or lowercase chars different, but a Linux server will. So if you transfer uploads to a server suddenly they stop working and give you 404 errors.

When enabled this feature will

- Only keep basic printable ASCII characters.
- Remove international chars like "åäö".
- Remove strange chars like `å` or `å`(they look very much like the Swedish letter `å`but they are not).
- Remove percent signs "%".
- Make file names lowercase.
- Example: instead of `/uploads/svenska tecken och mellanslag åäöÅÄÖ hej citattecken';.jpg` your file will be uploaded as `/uploads/svenska-tecken-och-mellanslag-aaoaao-hej-citattecken.jpg`. Another example is the file `Ingen-ko-på-isen-1b-2.jpg` that will be changed to `ingen-ko-pa-isen-1b-2.jpg` (Funny bonus story: the previous filename is from a real project and it was the whole reason why I started working on this feature!).

### Cleanup dashboard

[](#cleanup-dashboard)

```
add_theme_support('gardener-cleanup-dashboard');

```

- Removes unwanted dashboard meta boxes, like QuickPress, plugins, recent drafts, incoming links, news and events, WPML meta box if WPML is installed.
- Removes the text "Thank you for creating with WordPress" at the bottom.

 ScreenshotBefore cleaning up dashboard [![cleanup-dashboard-before](./screenshots/cleanup-dashboard-before.png)](./screenshots/cleanup-dashboard-before.png)After cleaning up dashboard [![cleanup-dashboard-after](./screenshots/cleanup-dashboard-after.png)](./screenshots/cleanup-dashboard-after.png)

### Hide posts

[](#hide-posts)

```
add_theme_support('gardener-hide-posts');

```

- Hide posts links from admin menu and from admin bar (New -&gt; Post).

### Hide comments

[](#hide-comments)

```
add_theme_support('gardener-hide-comments');

```

- Hide comments from admin menu.

### Enhance login screen

[](#enhance-login-screen)

```
add_theme_support('gardener-enhance-login-screen', [
    'message' => "Welcome to ACME Co website. Please login!",
    'image' => '84x84px-login-image.png',
    'image_width => 200,
    'image_height => 75,
]);

```

- Changes link to wordpress.org to a link back to the homepage of the site.
- Add support for local client image above login fields.
    - Uses image `login-client-logo.png` from theme folder if it exists, or any image using the `image` argument.
- Arguments are optional.

Other similar plugins
---------------------

[](#other-similar-plugins)

This plugin is not unique. The following plugins are similar popular plugins:

-
-
-

Changelog
---------

[](#changelog)

- 0.4 Add feature `gardener-hide-comments` that hides the comments menu item.
- 0.3 Use `login_headertext` instead of `login_headertitle` because `login_headertitle` is deprecated since WordPress version 5.2.0.
- 0.2.1 Add support for custom login image size.
- 0.2 Add support for feature hide posts.
- 0.1 First version

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~41 days

Total

5

Last Release

2459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ce24492279223e09e666c760384573bc045d78af32a1459b8fcf341f7ab56a1?d=identicon)[bonny](/maintainers/bonny)

---

Top Contributors

[![bonny](https://avatars.githubusercontent.com/u/221570?v=4)](https://github.com/bonny "bonny (56 commits)")

---

Tags

cleanupcomposerpluginwordpresswordpress-backendwordpress-dashboardwordpress-frontendwordpress-pluginwpackagist

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bonny-gardener/health.svg)

```
[![Health](https://phpackages.com/badges/bonny-gardener/health.svg)](https://phpackages.com/packages/bonny-gardener)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[mautic/core

Mautic Open Source Distribution

9.8k2.6k9](/packages/mautic-core)[roots/wp-stage-switcher

WordPress plugin that allows you to switch between different environments from the admin bar

374458.3k3](/packages/roots-wp-stage-switcher)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.3k](/packages/vinkla-wordplate)[mediawiki/maps

Adds various mapping features to MediaWiki

78149.7k3](/packages/mediawiki-maps)[rainlab/blog-plugin

Blog plugin for October CMS

17158.6k](/packages/rainlab-blog-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
