Geekazine

Hidden Roadblocks of Building WordPress Plugins with ChatGPT


Listen Later

<img width="1920" height="1080" data-tf-not-load src="https://geekazine.com/wp-content/uploads/2025/08/wordpress-plugin.webp" class="attachment-full size-full wp-post-image" alt="" decoding="async" srcset="https://geekazine.com/wp-content/uploads/2025/08/wordpress-plugin.webp 1920w, https://geekazine.com/wp-content/uploads/2025/08/wordpress-plugin-1024x576-300x168.webp 300w, https://geekazine.com/wp-content/uploads/2025/08/wordpress-plugin-1024x576.webp 1024w, https://geekazine.com/wp-content/uploads/2025/08/wordpress-plugin-768x432.webp 768w, https://geekazine.com/wp-content/uploads/2025/08/wordpress-plugin-1536x864.webp 1536w, https://geekazine.com/wp-content/uploads/2025/08/wordpress-plugin-1024x576-480x270.webp 480w, https://geekazine.com/wp-content/uploads/2025/08/wordpress-plugin-133x75.webp 133w, https://geekazine.com/wp-content/uploads/2025/08/wordpress-plugin-1024x576-1280x720.webp 1280w, https://geekazine.com/wp-content/uploads/2025/08/wordpress-plugin-1024x576-640x360.webp 640w" sizes="(max-width: 1920px) 100vw, 1920px" />

Make a Logo on Fiverr

Last Updated on October 14, 2025 5:05 am by Jeffrey Powers

ChatGPT is a great tool for developers looking to speed up their workflow in coding, especially when it comes to building WordPress plugins. This AI coding assistant is a great way to get a code going, however, the experience isn’t always plug-and-play. This is what we’re going to look at today in the video.

Making WordPress Plugins with ChatGPT
<img decoding="async" width="1024" height="576" data-tf-not-load src="https://www.geekazine.com/wp-content/uploads/2025/08/vlcsnap-2025-08-04-08h52m37s685-1024x576.webp" alt="Building Code with ChatGPT" class="wp-image-37828" style="width:300px" srcset="https://geekazine.com/wp-content/uploads/2025/08/vlcsnap-2025-08-04-08h52m37s685-1024x576.webp 1024w, https://geekazine.com/wp-content/uploads/2025/08/vlcsnap-2025-08-04-08h52m37s685-300x169.webp 300w, https://geekazine.com/wp-content/uploads/2025/08/vlcsnap-2025-08-04-08h52m37s685-768x432.webp 768w, https://geekazine.com/wp-content/uploads/2025/08/vlcsnap-2025-08-04-08h52m37s685-1536x864.webp 1536w, https://geekazine.com/wp-content/uploads/2025/08/vlcsnap-2025-08-04-08h52m37s685-480x270.webp 480w, https://geekazine.com/wp-content/uploads/2025/08/vlcsnap-2025-08-04-08h52m37s685-133x75.webp 133w, https://geekazine.com/wp-content/uploads/2025/08/vlcsnap-2025-08-04-08h52m37s685.webp 1920w" sizes="(max-width: 1024px) 100vw, 1024px" />

Making a WordPress Plugin is as simple as asking the AI to do it. Since I’m not a coder, I prefer to make plugins that don’t require user input – anything that could cause a backdoor to the site. These simple, closed door plugins allow me to have the functionality without security risks.

Most Important Part

Backup, Backup, Backup. Use a sandbox WordPress – don’t use an active site.

The Plugin I Made

This is a Bulk Insert Block plugin. You can find it on GitHub. It is without guarantee or support, so test this plugin before you use it.

Versions of GPT

There are a few GPT versions when you pay for it. It’s recommended to use the O4-mini-high for any type of coding, but GPT will work with most of their LLMs.

ChatGPT 5 is Coming

I don’t believe we’ll see too many interface differences. I am hoping they’ll add better collaboration efforts on GPT’s end – testing the code for errors, or remember the revisions. If it dramatically changes, I’ll make an update.

Working with ChatGPT – the First Hurdle

Once I started making plugins, I noticed a major issue with ChatGPT is Lack of context awareness. While ChatGPT can crank out code snippets at lightning speed, it doesn’t always grasp your project’s specific structure, plugin dependencies, or naming conventions unless you spoon-feed it that detail. That means you’re likely doing a lot of copy-paste, test, tweak, and re-explain — the kind of repetition that adds up fast.

It will not look at the older code going forward. I’ve had code disappear, and GPT rewrite parts that shouldn’t be.

Dynamic WordPress Functions Can Be Tricky

Another speed bump is handling dynamic WordPress functions and hooks. While ChatGPT is pretty solid on core actions and filters, once you move into the weeds of custom post types, AJAX calls, or extending Gutenberg blocks, the generated code can start to fall short or become outdated. It can get you close — but “close” often isn’t enough when you’re deep in debugging mode.

Changing Many Things

Sometimes, it’s best to ask ChatGPT to do one thing at a time. If you give the AI a laundry list, it might forget some or even break other features. You might even have to start from the beginning to get the results you need.

Plugin Architecture Still Needs a Human Touch

Let’s not forget plugin architecture. Building a plugin that’s scalable and maintainable requires decisions ChatGPT can’t intuit: Should you use a singleton class? Where should you enqueue scripts? How should you organize files for future updates? The AI can suggest common patterns, but only if you explicitly ask — and even then, the advice may be inconsistent between prompts.

ChatGPT is a Great Collaborator — With Limits

Despite these bumps in the road, ChatGPT is still a powerful partner. It excels at boilerplate code, documentation, quick refactoring, and even ideating new plugin concepts. But it shines brightest when you treat it like a junior dev: helpful, fast, and creative — but always in need of oversight.

Final Thoughts

For someone like me who can read, but have a hard time creating code, this is a great way to get started on an idea. It also doesn’t hurt to have a plugin checker plugin on your WordPress install to help.

Keep an eye on your logs, and if GPT is making the plugin go haywire, then start over from a backup of when the code is stable. Giving GPT specifics like “error in line 95” is key to getting the code working quicker.

Check it out at https://openai.com and let me know what plugins you’ve coded – for WordPress, Python, or whatever.

 

Check out the Geekazine Merch, including "I AM AI " T-Shirt. 
Thanks for reading! Don't forget to subscribe to Geekazine:
RSS Feed - YouTube
Twitter - Facebook
  • Tip Me via Paypal.me
  • Send a Tip via Venmo
  • RSS Bandwidth by Cachefly Get a 14 Day Trial
  • Be a Patreon: Part of the Sconnie Geek Nation!
  • Reviews: Geekazine gets products in to review. Opinions are of Geekazine.com. Sponsored content will be labeled as such. Read all policies on the Geekazine review page

    Reviews: Geekazine is also an affiliate of Amazon

    The post Hidden Roadblocks of Building WordPress Plugins with ChatGPT appeared first on Geekazine.

    ...more
    View all episodesView all episodes
    Download on the App Store

    GeekazineBy Jeffrey Powers

    • 3
    • 3
    • 3
    • 3
    • 3

    3

    10 ratings