Export current database as testing mocks

Mocking your ideal application state for tests still takes a fair amount of effort. It would be cool to see a WP-CLI command to: Stash your current database. Interactively create your mocked data. Export mocked data for use in tests. Restore your database. From a Twitter thread with Joe.

Tracking versions of WordPress plugins in theme directories

On WordPress projects where the entire application is defined by the theme, it can be common to submodule or directly commit WordPress plugins to a directory like theme-name/lib. However, in doing so, you lose out on WordPress’ built-in update tracking. It would be cool to have a utility plugin that loads theme-specific plugins into the Manage Plugins […]

WordPress theme for WP REST API documentation

Much of the WP REST API v2 documentation is automatically generated from demo.wp-api.org/wp-json/?context=help. A Ruby script dumps the JSON into _data, and Jekyll generates pages like this: It would be cool if someone wrote a WordPress theme (or plugin) to automatically generate a documentation site from a WP REST API index — and the only configuration parameter was […]

Measuring the utility of WP_REST_Posts_Controller

A good measure of the utility of WP_REST_Posts_Controller and brethren would be to test how much (or little) time it takes for a developer to correctly model their custom post type data by extending it. If it’s easy to do, then we’ve established a great abstraction. If there are pain points or places we need to […]

Simple WP-CLI backup and restore

It would be neat if WP-CLI included a rudimentary backup and restore process for this use case: richard.tape [8:19 AM] anyone used wocker? I’m looking to set up a dev environment that I can share with someone else so they’re able to more easily help me debug a problem and I want to modify the base […]

Verifying WordPress migrations

It seems like every time I do a migration with the WordPress importer, something about my data breaks. For instance, while writing my Year in Review post just now, I noticed last year’s post has an incorrect image: The image should be the visualization. It would be really neat if I could verify a migration with WP-CLI. […]

Google Photos to Amazon Glacier backup

I’d pay a couple bucks a month for a service to automatically push photos from Google Photos to Amazon Glacier, as a sort of catastrophic backup service.