Creating A Simple WordPress Plugin With 6 AI Chatbots – Search Engine Journal

The third annual State Of SEO report has the insights you need to guide your SEO strategy next year.
We’ll dive into the practical ways you can leverage AI tools for more efficient and effective campaigns that rank higher.
We’ll dive into the practical ways you can leverage AI tools for more efficient and effective campaigns that rank higher.
If you’re looking to serve up relevant and compelling content that engages your ideal audience, then this webinar is for you.
We’ll dive into the practical ways you can leverage AI tools for more efficient and effective campaigns that rank higher.
We’ll dive into the practical ways you can leverage AI tools for more efficient and effective campaigns that rank higher.
I tested six AI chatbots by creating a WordPress plugin. Find out if ChatGPT, Bard, Bing, Claude, Code Llama, and Llama 2 completed the task.
Artificial intelligence (AI) chatbots have opened up a world of possibilities for people to dabble in projects they might not have tackled due to lack of experience.
As someone who uses WordPress but doesn’t have coding experience, I thought it would be interesting to see which AI could help create a simple plugin.
For this little test, I used the following six AI chatbots:
While not unique to WordPress’ repository of plugins, I submitted the following prompt to describe the desired functionality.
Can you write the PHP code for a WordPress plugin that will add a column to the WordPress admin dashboard All Posts page showing each post’s word count?
How well did each of the six AI models perform?
ChatGPT, Bard, Bing, and Claude generated PHP code that created no issues during the new word count plugin’s installation, activation, or deactivation.
Of the four, ChatGPT provided the cleanest set of directions on installing the newly generated plugin, followed by Bing and Bard.
While codellama-34b-instruct in Perplexity Labs generated the PHP code for a WordPress plugin, it offered a few additional challenges.
After installation, the plugin offered a series of warning errors instead of word counts.
When I asked it to fix the problem, it offered suggestions.
ChatGPT, on the other hand, identified the issue and revised the code.
With ChatGPT’s intervention, the plugin originally generated by codellama-34b-instruct worked as intended, highlighting ChatGPT’s versatility and proficiency in debugging and refining code.
Llama-2-13b-chat also generated PHP code for the described WordPress plugin. At first, the plugin worked properly and displayed the word count on the all posts page.
However, a fatal error appeared when returning to the installed plugins page.
To remedy the situation, I had to access the FTP site and manually delete the plugin files – not the kind of experience a typical WordPress user would appreciate.
Like codellama-34b-instruct, llama-2-13b-chat was unable to solve its problem. Yet again, ChatGPT came to the rescue and fixed the code, which resolved the errors caused by the original code from llama-2-13b-chat.
Generative AI holds immense promise for various development tasks, including creating a simple WordPress plugin.
However, not all AI models are created equal. Some stood out for their ability to create effective code with minimal prompting and troubleshoot code generated by other models.
With the rapid development of AI technology, it shouldn’t be long before other AI models become more reliable and accurate in accomplishing coding tasks.
Featured image: Koshiro K/Shutterstock
 
Kristi Hines is an Associate News Editor covering the latest news in AI, search, and social media for Search Engine …
Conquer your day with daily search marketing news.
Join Our Newsletter.
Get your daily dose of search know-how.
In a world ruled by algorithms, SEJ brings timely, relevant information for SEOs, marketers, and entrepreneurs to optimize and grow their businesses — and careers.
Copyright © 2023 Search Engine Journal. All rights reserved. Published by Alpha Brand Media.

source

Jesse
https://playwithchatgtp.com