option
Home
News
GitHub Copilot's AI Tested: Mixed Coding Success Leaves Me Baffled

GitHub Copilot's AI Tested: Mixed Coding Success Leaves Me Baffled

April 21, 2025
374

Exploring the Inconsistencies in AI Coding Tools

It's truly puzzling how AI tools, all built on the same foundational large language model, can yield such varied results. For instance, ChatGPT, Perplexity, and GitHub Copilot all leverage OpenAI's GPT-4 model. Yet, my recent tests showed stark differences in performance: while ChatGPT and Perplexity's pro plans excelled, GitHub Copilot had a 50% success rate.

I conducted these tests using GitHub Copilot integrated within a VS Code environment. I'll share a detailed guide on setting this up in an upcoming article. For now, let's dive into the specifics of the tests I ran.

If you're curious about my testing methodology and the prompts used, you can check out my detailed guide on evaluating an AI chatbot's coding capabilities.

TL;DR: GitHub Copilot managed to pass two out of the four tests I conducted.

Test 1: Writing a WordPress Plugin

This test was a complete disappointment. It was my initial experiment, leaving me unsure if GitHub Copilot struggles with coding or if the interaction constraints within VS Code hinder its capabilities.

Here's the context: I asked the AI to develop a fully functional WordPress plugin that includes an admin interface and operational logic. The plugin's task was to accept a list of names, sort them, and separate any duplicates to avoid adjacency.

This task stemmed from a real-world need from my wife's digital goods e-commerce business, where she manages an active Facebook group.

While five out of the ten AI models tested passed this test entirely, three passed partially, and two, including Microsoft Copilot, failed completely. GitHub Copilot, despite being given the same prompt, only produced PHP code. Although the problem could indeed be solved with PHP alone, GitHub Copilot attempted to reference JavaScript without actually generating it.

Screenshot by David Gewirtz/ZDNET

Screenshot by David Gewirtz/ZDNET

When I tried to prompt GitHub Copilot from within a JavaScript file to complete the task, it bizarrely responded with more PHP code, still referencing a non-existent JavaScript file.

Screenshot by David Gewirtz/ZDNET

Screenshot by David Gewirtz/ZDNET

Test 2: Rewriting a String Function

This test was relatively straightforward: I provided a function meant to validate dollars and cents but only checking for whole dollars. The challenge was for the AI to correct the function.

GitHub Copilot did modify the code, but the result was problematic. It assumed that any input string was valid, which would cause errors if the string was empty. Additionally, the updated regular expression couldn't handle various edge cases, such as inputs like "3.", ".3", or "00.30". For a function meant to validate currency, such oversights are unacceptable, marking another fail for GitHub Copilot.

Test 3: Finding an Annoying Bug

Here, GitHub Copilot shone. This test was based on a real coding challenge I faced, where the error message didn't directly point to the actual issue. It's a bit like a coding riddle, requiring deep understanding of WordPress API calls to solve.

While Microsoft Copilot, Gemini, and Meta Code Llama stumbled on this test, GitHub Copilot nailed it, showcasing its capability to tackle complex, real-world problems.

Test 4: Writing a Script

GitHub Copilot also succeeded in this test, where Microsoft Copilot fell short. The task involved creating a script that needed to integrate AppleScript, the Chrome object model, and a Mac-specific utility called Keyboard Maestro.

To pass, the AI needed to recognize and address the nuances of all three environments, and GitHub Copilot did just that.

Final Thoughts

It's disheartening to see GitHub Copilot, which uses the advanced GPT-4 model, fail half of the tests. Given GitHub's status as a leading source management platform, one would expect its AI coding support to be more dependable.

However, the world of AI is ever-evolving, and I'm optimistic that GitHub Copilot's performance will improve over time. We'll revisit this in a few months to see how it's progressed.

Do you rely on AI for coding assistance? Which AI tool is your go-to? Have you given GitHub Copilot a try? Share your experiences in the comments below.

Stay updated with my daily project progress on social media. Don't forget to sign up for my weekly newsletter, and follow me on Twitter/X at @DavidGewirtz, on Facebook at Facebook.com/DavidGewirtz, on Instagram at Instagram.com/DavidGewirtz, on Bluesky at @DavidGewirtz.com, and on YouTube at YouTube.com/DavidGewirtzTV.

Related article
DingTalk Rebuilds Architecture With AliAI’s MuleRun, Launching Full-Agent Era DingTalk Rebuilds Architecture With AliAI’s MuleRun, Launching Full-Agent Era DingTalk’s new CEO and head of the Wukong Business Unit, Chen Yusen, revealed a major organizational restructuring in an internal memo issued this afternoon. By creating the Core Platform Business Department and fully merging the AI Agent team, DingT
How to fix Core Web Vitals for better SEO ranking How to fix Core Web Vitals for better SEO ranking How Carrefour Is Using Generative AI to Transform RetailIntroductionHélène Labaum: From Law to E-Commerce LeadershipCarrefour: A Global Retail GiantDigital Transformation at CarrefourCarrefour’s Generative AI StrategyReal-World Applications of Genera
Fortinet’s Virtue AI Deal Bolsters Agentic AI Security Fortinet’s Virtue AI Deal Bolsters Agentic AI Security Ken Xie, Founder and CEO of Fortinet | Credit: FortinetFortinet acquires Virtue AI to strengthen runtime protection and automated validation for AI systems as enterprises scale deployment of agents and modelsFortinet has acquired Virtue AI, a company
Related Special Topic Recommendations
Design & Art Top AI Illustration Tools: Create Editorial Scenes and Cover Art Faster
Top AI Illustration Tools: Create Editorial Scenes and Cover Art Faster

2026 Latest Top-rated AI Illustration Tools: Our curated list features the best powerfully designed tools for creating stunning editorial scenes and eye-catching cover art quickly. Each option has gone through rigorous real-world tests, offering a free vs paid comparison to help you find the perfect match for your workflow. Try these must-try solutions today to unlock your AI edge and boost your creative productivity. Explore now at XIX.AI.

10 tools
xix.ai
Education and Learning Top AI Tutors for Exam Prep: Practice Math, Science, and English
Top AI Tutors for Exam Prep: Practice Math, Science, and English

2026 Latest Top-Rated Best AI Tutors for Exam Prep are here on XIX.AI! Our curated list features powerful game-changing tools that offer free vs paid comparison, real-world tests, and weekly updated rankings. They help boost your writing efficiency, simplify complex topic learning, and unlock your academic potential. Explore now to Discover your perfect exam prep tool and Start creating today to Unlock your AI edge!

10 tools
xix.ai
Finance AI Budget Planning Tools for Personal Money Management
AI Budget Planning Tools for Personal Money Management

2026 Latest Best Top-Rated AI Budget Planning Tools for Personal Money Management are here on XIX.AI! This curated collection features powerful, game-changing solutions that help you conduct real-world tests, understand spending habits, and create personalized plans to boost productivity. Enjoy a free vs paid comparison along with detailed rankings. Must-try tools designed to simplify money management and unlock your AI edge. Explore now!

11 tools
xix.ai
Health & Wellness AI Sleep Tracking Assistants: Improve Recovery with Better Bedtime Habits
AI Sleep Tracking Assistants: Improve Recovery with Better Bedtime Habits

2026 Latest Best Top-Rated AI Sleep Tracking Assistants curated for ultimate recovery. This fully updated weekly guide features powerful tools that deliver real-world tests, free vs paid comparison, and detailed rankings to help you find the must-try solution that boosts sleep quality and supports better bedtime habits. Explore now at XIX.AI to Unlock your AI edge.

10 tools
xix.ai
Data Analysis AI SQL Copilots for Product and Revenue Analytics
AI SQL Copilots for Product and Revenue Analytics

2026 Latest Best Top-Rated AI SQL Copilots for Product and Revenue Analytics! XIX.AI has curated a powerful, game-changing collection of must-try tools that undergo real-world tests through weekly updated rankings. These tools help users boost productivity significantly by accelerating data analysis, streamlining complex queries, and generating accurate insights to drive smarter business decisions. Explore now to Discover your perfect tool for unlocking your AI edge!

14 tools
xix.ai
Education and Learning Best AI Homework Helpers That Teach: Learn Concepts, Not Just Answers
Best AI Homework Helpers That Teach: Learn Concepts, Not Just Answers

2026 Latest Best Top-Rated AI Homework Helpers That Teach Core Concepts Not Just Answers Powerful Tools for Students Must-Try Curated List Weekly Updated Free vs Paid Comparison Real-World Tests Accurate Rankings to Help You Unlock Your Full Learning Potential Explore now to Discover your perfect tool for smarter studying.

10 tools
xix.ai
Comments (41)
0/500
GregoryWilson
GregoryWilson August 29, 2026 at 12:00:06 AM EDT

GitHub Copilotのテスト結果、正直謎すぎますね。同じGPT-4ベースなのに、ツールによって精度がこんなに違うのは不思議です。ChatGPTやPerplexityとはまた別の挙動を示すので、使い分けが重要になりそうです。AIの限界を実感しました🤔

HarryMartinez
HarryMartinez May 28, 2026 at 2:00:14 AM EDT

Honestly, this doesn't surprise me. Even with the same underlying model, the way each tool fine-tunes prompts and handles context makes a huge difference. Copilot's mixed results probably come from its integration with IDE specifics. Still, it's baffling why the same model can give such inconsistent outputs for similar tasks. 🤔

EricAllen
EricAllen May 18, 2026 at 10:00:12 PM EDT

Ich hab's auch ausprobiert und finde es echt seltsam, dass die Ergebnisse so unterschiedlich sind, obwohl die Basis ähnlich ist. Manchmal schreibt Copilot super Code, manchmal totalen Unsinn. Vielleicht liegt's an der Integration in die IDE? 🤔 Auf jeden Fall muss da noch viel verbessert werden, bevor ich mich voll darauf verlassen kann.

ArthurJackson
ArthurJackson March 11, 2026 at 4:00:47 PM EDT

Интересно, почему ИИ-инструменты на одной базовой модели GPT-4 работают так по-разному? GitHub Copilot иногда генерирует код, который выглядит логично, но потом выдает полную ерунду 😅 Может, дело в тонкой настройке или контексте? Это напоминает мне капризного коллегу-программиста, который то гений, то беспомощен.

LarryMartin
LarryMartin November 27, 2025 at 7:30:43 AM EST

이 기사 읽어보니 AI 코딩 도구의 편차가 정말 신기하네요. 같은 기술인데 결과가 이렇게 다를 수 있다니... 개발자로 일하면서 Copilot이 가끔 완벽한 코드를 써주다가도 갑자기 엉뚱한 걸 제안해서 당황했던 적이 많아요. 🤔 앞으로 AI 도구들이 더 안정화되길 바랍니다!

PaulRoberts
PaulRoberts November 7, 2025 at 11:30:36 PM EST

Acho frustrante que ferramentas como Copilot e ChatGPT usem o mesmo modelo base mas tenham performances tão diferentes. Isso me faz questionar se a implementação é realmente bem feita ou se só estão colocando um nome famoso pra vender mais. 🤔

OR