Hacker News new | ask | show | jobs
Show HN: I made a WordPress plugin that makes plugins with AI (github.com)
4 points by balazsp1 698 days ago
2 comments

Out of interest:) What are the advantages of it being a wordpress Plugin itself instead of a Webapp/ VS Code extension? And Examples which you created using this would be awesome
The obvious advantage is that the generated plugin can be installed and tested right away.

I use AI to generate simple site-specific plugins, to avoid having to install a bloated plugin that has a ton of unneeded features and keeps telling me to buy the premium version. Here are some example functionalities I implemented with AI-made plugins:

- Newsletter subscription https://github.com/balazsrm/wp-simple-newsletter-subscriptio... - Maintenance mode plugin https://github.com/balazsrm/wp-simple-maintenance-mode-redir... - Per-page custom CSS https://github.com/balazsrm/wp-simple-custom-css-per-page - API key authentication for REST API https://github.com/balazsrm/wp-rest-api-key-auth- Contact form - Cookie opt-in - Allow more characters in post slugs - Redirect based on the browser language

I've made at least a dozen different plugins that I actually use on live sites. Before this plugin, I used my custom GPT to generate plugins (it's called WP Plugin Architect GPT), and before that, I simply used ChatGPT to generate them.

really cool, love it!
You made a bug and security vulnerability generator for Wordpress sites.
WP is open-source. Users could always create plugins and edit code if they wanted. Before AI, that meant that less knowledgeable users would piece together their stuff by copying and pasting random code snippets they found online. I argue that is way more dangerous than getting it done with AI. Besides, both in the plugin and in its readme file I make it very clear that this is not for production sites, the code must be thoroughly tested and reviewed before using it.
To flesh this out further, consider the networking and security model around networking as an extention of this tool perhaps. I feel like there is a lot of room for innovation in the wordpress honeypot scene.

Short of that tighter integration with known quality tools/frameworks for wordpress like ACF, ACPT, Flynt, Bedrock, etc# might help.