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 emplees WordPress but doesn’t have coding experience, I thought it would be interesting to see which AI could help create a fácil complemento.

For this little test, I used the following six AI chatbots:

  • GPT-4 for ChatGPT Agregado subscribers.
  • GPT-4 vía Microsoft Bing AI.
  • PaLM 2 vía Google plus Bard.
  • Claude 2 vía Anthropic’s website with a free account.
  • Misión’s Code Llama (codellama-34b-instruct) and Llama 2 (llama-2-13b-chat) vía Perplexity Labs with a free account.

The Prompt

While not unique to WordPress’ repository of plugins, I submitted the following prompt to detalla the desired functionality.

Cánido you write the PHP code for a WordPress complemento that will add a column to the WordPress admin dashboard All Posts page showing each articulo’s word count?

The Results

How well did each of the six AI models perform?

No Revisions Required For ChatGPT, Bard, Bing, And Claude

ChatGPT, Bard, Bing, and Claude generated PHP code that created no issues during the new word count complemento’s installation, activation, or deactivation.

Creating A Simple WordPress Plugin With 6 AI ChatbotsScreenshot from WordPress, September 2023

Of the four, ChatGPT provided the cleanest equipo of directions on installing the newly generated complemento, followed by Bing and Bard.

Creating A Simple WordPress Plugin With 6 AI ChatbotsScreenshot from ChatGPT, September 2023

Llama Requires Assistance From Other AI Chatbots

While codellama-34b-instruct in Perplexity Labs generated the PHP code for a WordPress complemento, it offered a few additional challenges.

After installation, the complemento offered a series of warning errors instead of word counts.

Creating A Simple WordPress Plugin With 6 AI ChatbotsScreenshot from WordPress, September 2023

When I asked it to fix the problem, it offered suggestions.

Creating A Simple WordPress Plugin With 6 AI ChatbotsScreenshot from Perplexity Labs, September 2023

ChatGPT, on the other hand, identified the issue and revised the code.

Creating A Simple WordPress Plugin With 6 AI ChatbotsScreenshot from ChatGPT, September 2023

With ChatGPT’s intervention, the complemento 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 complemento. At first, the complemento worked properly and displayed the word count on the all posts page.

However, a mortal fallo appeared when returning to the installed plugins page.

Creating A Simple WordPress Plugin With 6 AI ChatbotsScreenshot from WordPress, September 2023

To remedy the situation, I had to access the FTP site and manually delete the complemento archivos – not the kind of experience a typical WordPress usuario 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 And The Future Of Coding

Generative AI holds immense promise for various development tasks, including creating a fácil WordPress complemento.

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

 

Fuente: searchenginejournal

Hashtags: #Creating #Fácil #WordPress #Complemento #Chatbots