option
Home
News
Gemini Pro 2.5: A Powerful Coding Assistant Posing Major Threat to ChatGPT

Gemini Pro 2.5: A Powerful Coding Assistant Posing Major Threat to ChatGPT

April 19, 2025
296

When it comes to evaluating AI for coding assistance, I've developed a set of four standardized tests. These tests are crucial for assessing how well an AI can support your programming efforts. After all, the last thing you need is an AI that adds more bugs to your code, right?

A while back, a reader questioned my approach, suggesting that AIs might perform better with different challenges. It's a valid point, but I stick to these tests because they're straightforward. I use PHP and JavaScript, which aren't the toughest languages out there, and run some scripting queries through the AIs. This consistency allows us to directly compare performance.

The tests include writing a simple WordPress plugin, rewriting a string function, finding a bug I once struggled with, and using programming tools to extract data from Chrome. It's like teaching someone to drive—you wouldn't let them loose on a highway if they can't even get out of the driveway.

To date, only ChatGPT's GPT-4 (and above) LLM has passed all these tests. Interestingly, Perplexity Pro also succeeded, but that's because it runs on the GPT-4 series LLM. On the other hand, Microsoft Copilot, despite using the same LLM, failed all the tests.

Google's Gemini hasn't fared much better. Initially, Bard (the early name for Gemini) failed most tests, and even Gemini Advanced, which costs $20 per month, failed three out of four tests last year.

But now, Google has introduced Gemini Pro 2.5, and it's free for everyone, though with rate limits. I hit those limits after just two prompts during my testing, which is a bit restrictive. It's possible that the rate limiting is based on the complexity of the tasks rather than the number of prompts. My first two requests were to write a full WordPress plugin and fix some code, which might have consumed my limit faster than simpler queries would.

Despite the wait, the results were surprising and worth it.

Test 1: Write a simple WordPress plugin

This time around, Gemini Pro 2.5 knocked it out of the park. The challenge was to create a WordPress plugin that provides a user interface to randomize input lines and distribute duplicates so they're not adjacent.

Previously, Gemini Advanced didn't create a back-end dashboard but required a shortcode in the body text of a public page. It did create a basic UI, but clicking the button did nothing. No matter how I tweaked the prompts, it still failed.

But Gemini Pro 2.5 delivered a solid UI, and the code worked as intended. What really impressed me was the icon choice for the plugin. Most AIs ignore this detail, but Gemini Pro 2.5 picked a relevant icon from the WordPress Dashicon set without any prompting from me. The code was well-documented, with each major segment explained clearly.

randomizer-ui

Screenshot by David Gewirtz/ZDNET

icon

Screenshot by David Gewirtz/ZDNET

Test 2: Rewrite a string function

In the second test, I asked Gemini Pro 2.5 to modify some string processing code to handle dollars and cents, not just integers. ChatGPT got this right, while Bard eventually succeeded after initial failures.

Last time, Gemini Advanced failed in a subtle yet dangerous way. It didn't allow non-decimal inputs and incorrectly limited numbers to two digits before the decimal point, misunderstanding the concept of dollars and cents. This kind of error could lead to a flood of bug reports if not caught.

Gemini Pro 2.5, however, nailed it. It correctly checked input types, trimmed whitespace, fixed the regular expression to handle leading zeros and decimal-only inputs, and rejected negative inputs. The code was well-commented, with a full set of test examples. While it didn't allow grouping commas or leading currency symbols, these were controlled errors, not crashes, so I consider it a pass.

Test 3: Find a bug

Once, I struggled with a bug in my code that should have worked but didn't. The issue was tricky, and while I was focused on the number of parameters being passed, ChatGPT pointed out that I needed to change something in a hook.

Both Bard and Meta missed the mark, following the same futile path I did. Gemini Advanced, back in February 2024, suggested looking "likely somewhere else in the plugin or WordPress," which was unhelpful.

With Gemini Pro 2.5, I hit the rate limit after the first two tests, so I had to wait until the next day. When I finally ran the test, Gemini Pro 2.5 not only found the bug but also showed me exactly where to fix it, complete with a helpful diagram.

limit

Screenshot by David Gewirtz/ZDNET

map

Screenshot by David Gewirtz/ZDNET

Test 4: Writing a script

The final test involves understanding Chrome's internal object model, AppleScript, and Keyboard Maestro, a macro-building tool. It's about opening Chrome tabs and setting the active tab based on a parameter.

Most AIs handle the Chrome and AppleScript parts well but often struggle with Keyboard Maestro. Gemini Pro 2.5, however, got it right. It wrote the necessary code to pass variables correctly, added error checking and user notifications, and even provided steps to set up Keyboard Maestro.

maestro

Screenshot by David Gewirtz/ZDNET

With all four tests passed, Gemini Pro 2.5 joins the elite group of AI tools that can truly assist with programming tasks.

It was only a matter of time before Google's AI caught up with OpenAI's offerings. Google's 2017 "Attention is all you need" paper kicked off the generative AI boom, so it's no surprise they've reached this point. Gemini Pro 2.5 is slower than ChatGPT Plus, taking between 15 seconds and a minute to respond, but accuracy is more important than speed.

Google has also made Google Code Assist free with generous limits, but it's only valuable if the code generated is of high quality. With Gemini Pro 2.5, that quality is now evident. Though currently marked as "experimental," I expect Google to refine this soon, potentially offering a paid version with fewer rate limits.

It's clear that Gemini Pro 2.5 is set to challenge ChatGPT in the realm of coding assistance. I'll be keeping a close eye on this development and sharing more updates soon.

Related article
Florida sues OpenAI, Sam Altman over violent incidents Florida sues OpenAI, Sam Altman over violent incidents Florida’s Attorney General filed a first-of-its-kind state lawsuit against OpenAI and CEO Sam Altman on Monday, alleging the company’s ChatGPT is linked to multiple violent incidents.The complaint argues that OpenAI prioritized winning “the AI arms r
OpenAI unveils advanced voice models for more natural real-time conversations OpenAI unveils advanced voice models for more natural real-time conversations OpenAI has launched new conversational models, GPT-Live-1 and GPT-Live-1 mini, designed to sound more natural and manage turn-taking more effectively. These full-duplex models can speak and listen simultaneously, allowing users to interrupt naturally
OpenAI unveils GPT-5.6, the newest addition to its model family OpenAI unveils GPT-5.6, the newest addition to its model family OpenAI launched its latest model family on Thursday, introducing powerful new options into an increasingly competitive AI landscape.GPT-5.6 comes in three variants: Sol (designed as the primary workhorse), Terra (a mid-range option), and Luna (the bu
Related Special Topic Recommendations
Music composition AI Stem Separation Tools for Remix Production, Sampling Prep, and Karaoke Masters
AI Stem Separation Tools for Remix Production, Sampling Prep, and Karaoke Masters

2026 Latest Best Top-rated AI Stem Separation Tools Curated for Remix Production, Sampling Prep, and Karaoke Masters. These powerful game-changing tools offer real-world tests to deliver precise audio isolation, boosting productivity significantly. XIX.AI provides a weekly updated free vs paid comparison guide to help you find the must-try solution that suits your needs. Explore now to unlock your AI edge.

8 tools
xix.ai
Data Analysis AI SQL Copilots for Revenue Dashboards, Funnel Analysis, and Product Metrics
AI SQL Copilots for Revenue Dashboards, Funnel Analysis, and Product Metrics

2026 Latest Best AI SQL Copilots Ranked Top-Rated! XIX.AI curates a powerful game-changing collection for weekly updated real-world tests. These must-try tools help you generate accurate revenue dashboards, analyze sales funnels, and track product metrics swiftly, boosting productivity massively. Explore now to Discover your perfect tool for data-driven decision making! 238 characters

9 tools
xix.ai
Music composition Best AI Melody Writing Tools for Song Drafts
Best AI Melody Writing Tools for Song Drafts

2026 Latest Best Top-Rated AI Melody Writing Tools for Song Drafts! XIX.AI has curated a highly powerful game-changing collection that goes through rigorous real-world tests to deliver the best writing experience. You can find detailed free vs paid comparisons, accurate rankings, and must-try options designed to help you create stunning song drafts effortlessly and boost your creative productivity significantly. Explore now to discover your perfect tool!

8 tools
xix.ai
chatbot Best AI Conversation Trainer Tools for Interview Practice
Best AI Conversation Trainer Tools for Interview Practice

2026 Latest Best Top-rated AI Conversation Trainer Tools for Interview Practice are here on XIX.AI! This curated collection features powerful, game-changing tools that go through rigorous real-world tests to deliver accurate feedback. You’ll find a free vs paid comparison and detailed rankings to help you choose the must-try option that boosts your confidence and skills. Explore now to Discover your perfect tool for interview success!

12 tools
xix.ai
Design & Art Best AI Style Transfer Tools for Creative Experiments
Best AI Style Transfer Tools for Creative Experiments

2026 Latest Best Top-rated AI Style Transfer Tools for Creative Experiments! XIX.AI has curated a powerful, game-changing collection of must-try tools that deliver exceptional results through real-world tests and rigorous rankings. These top solutions help creatives boost productivity significantly by accelerating content creation and unlocking endless creative possibilities. Explore now to discover your perfect tool and start creating today!

9 tools
xix.ai
Comic Creation Best AI Dialogue Bubble Tools for Visual Storytelling
Best AI Dialogue Bubble Tools for Visual Storytelling

2026 Latest Best Top-Rated AI Dialogue Bubble Tools for Visual Storytelling are here on XIX.AI! This curated collection features powerful, game-changing tools that help creators boost productivity and overcome creative bottlenecks. Get a free vs paid comparison, see real-world tests, and check the latest rankings to find the must-try solutions perfect for crafting engaging visual narratives. Explore now to discover your ideal tool!

10 tools
xix.ai
Comments (26)
0/500
BrianWalker
BrianWalker June 27, 2026 at 6:00:14 AM EDT

Oh great, another AI coding assistant claiming to be a 'threat' to ChatGPT. 🙄 I'll believe it when I see it actually fixing my spaghetti code without introducing new bugs. Standardized tests? Sounds like marketing fluff to me. Show me the real-world results!

EricMiller
EricMiller June 14, 2026 at 12:00:11 PM EDT

Honestly, I've been burned by so-called "powerful" coding assistants before. The real test is whether it can refactor my spaghetti code without hallucinating imports. Gemini Pro 2.5 sounds promising, but I'll believe it when I see it on a real project 🤨

WalterHarris
WalterHarris May 27, 2026 at 4:00:23 PM EDT

Also ich hab's mal mit Python getestet und muss sagen, die Fehleranalyse ist echt krass. Aber ob das wirklich eine 'Bedrohung' für ChatGPT ist? Die haben doch beide ihre Nischen. Hauptsache, die Preise bleiben im Wettbewerb vernünftig 😅

MatthewScott
MatthewScott February 15, 2026 at 1:00:57 AM EST

Como programador, siempre estoy buscando asistentes de IA confiables. Los cuatro tests estandarizados que describes suenan muy útiles, ¡debería probarlos con Gemini y ChatGPT! Si realmente supera en bugs, sería un cambio de juego. 🤔 ¿Habrá algún análisis de costo? A veces estas herramientas premium son caras.

JoseGonzalez
JoseGonzalez July 30, 2025 at 9:42:05 PM EDT

Just read about Gemini Pro 2.5 and wow, those coding tests sound intense! 😅 Curious if it’ll really outshine ChatGPT or just hype. Anyone tried it yet?

WalterLewis
WalterLewis July 27, 2025 at 9:19:30 PM EDT

This AI coding battle is heating up! Gemini Pro 2.5 sounds like a beast, but I’m curious if it’s really outpacing ChatGPT or just hype. 🤔 Anyone tried it on real projects yet?

OR