Repository Analysis

firebase/flutterfire

🔥 A collection of Firebase plugins for Flutter apps.

2.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of firebase/flutterfire, a Dart project with 9,232 GitHub stars. SynthScan v2.0 examined 363,483 lines of code across 2092 source files, recording 852 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 2.6 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

2.6
Adjusted Score
2.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
9.2K
Stars
Dart
Language
363.5K
Lines of Code
2.1K
Files
852
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 3HIGH 0MEDIUM 29LOW 820

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 852 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block786 hits · 781 pts
SeverityFileLineSnippetContext
LOW…on_test/firebase_auth/firebase_auth_user_e2e_test.dart401 // email: 'invalid', password: testPassword);COMMENT
LOW…on_test/firebase_auth/firebase_auth_user_e2e_test.dart961 skip: kIsWeb ||COMMENT
LOW…on_test/firebase_auth/firebase_auth_user_e2e_test.dart981 // fail('Should not have auto resolved');COMMENT
LOW…on_test/firebase_auth/firebase_auth_user_e2e_test.dart1001 // smsCode: await emulatorPhoneVerificationCode(testPhoneNumber),COMMENT
LOW…on_test/firebase_auth/firebase_auth_user_e2e_test.dart1041 },COMMENT
LOW…on_test/firebase_auth/firebase_auth_user_e2e_test.dart1061 // expect(e.message,COMMENT
LOW…on_test/firebase_auth/firebase_auth_user_e2e_test.dart1081 // url: 'http://action-code-test.com',COMMENT
LOW…/integration_test/firebase_database/web_only_stub.dart1// Copyright 2021 The Chromium Authors. All rights reserved.COMMENT
LOW…ion_test/firebase_ai/firebase_ai_headers_e2e_test.dart1// Copyright 2026 Google LLCCOMMENT
LOW…firebase_ai/firebase_ai_response_parsing_e2e_test.dart1// Copyright 2026 Google LLCCOMMENT
LOW…ntegration_test/firebase_ai/firebase_ai_mock_test.dart1// Copyright 2026 Google LLCCOMMENT
LOW…integration_test/firebase_ai/firebase_ai_e2e_test.dart1// Copyright 2026 Google LLCCOMMENT
LOW…s/integration_test/firebase_storage/reference_e2e.dart441 // Download the file from Firebase StorageCOMMENT
LOW…s/integration_test/firebase_storage/reference_e2e.dart481 final downloadedData = await ref.getData();COMMENT
LOW…s/integration_test/firebase_storage/reference_e2e.dart581COMMENT
LOWtests/lib/firebase_options.dart1// Copyright 2022, the Chromium project authors. Please see the AUTHORS fileCOMMENT
LOWtests/windows/runner/win32_window.cpp1// Copyright 2023, the Chromium project authors. Please see the AUTHORS fileCOMMENT
LOWtests/windows/runner/resource.h1/*COMMENT
LOWtests/windows/runner/resource.h21#endifCOMMENT
LOWtests/windows/runner/main.cpp1// Copyright 2023, the Chromium project authors. Please see the AUTHORS fileCOMMENT
LOWtests/windows/flutter/generated_plugin_registrant.h1//COMMENT
LOWdocs/app-check/default-providers.md81 // You can also use a `ReCaptchaEnterpriseProvider` provider instance as anCOMMENT
LOWscripts/generate_versions_web.dart1// Copyright 2025 Google LLCCOMMENT
LOWscripts/generate_versions_web.dart81COMMENT
LOWscripts/generate_dataconnect_version.dart1// Copyright 2024 Google LLCCOMMENT
LOWscripts/generate_firebaseai_version.dart1// Copyright 2024 Google LLCCOMMENT
LOWscripts/validate_workspace.dart1// Copyright 2025 Google LLCCOMMENT
LOWscripts/generate_versions_gradle.dart1// Copyright 2024 Google LLCCOMMENT
LOW…ase_in_app_messaging/example/lib/firebase_options.dart1// Copyright 2022, the Chromium project authors. Please see the AUTHORS fileCOMMENT
LOW…n_app_messaging/include/FirebaseInAppMessagingPlugin.h1// Copyright 2021 The Chromium Authors. All rights reserved.COMMENT
LOW…_flutterfire_internals/lib/_flutterfire_internals.dart1// Copyright 2022, the Chromium project authors. Please see the AUTHORS fileCOMMENT
LOW…_flutterfire_internals/lib/_flutterfire_internals.dart21COMMENT
LOWpackages/_flutterfire_internals/lib/src/js_interop.dart1// Copyright 2024, the Chromium project authors. Please see the AUTHORS fileCOMMENT
LOW…es/firebase_crashlytics/FLTFirebaseCrashlyticsPlugin.m1// Copyright 2020 The Chromium Authors. All rights reserved.COMMENT
LOW…ase_crashlytics/include/FLTFirebaseCrashlyticsPlugin.h1// Copyright 2020 The Chromium Authors. All rights reserved.COMMENT
LOW…firebase_crashlytics/example/lib/firebase_options.dart1// Copyright 2022, the Chromium project authors. Please see the AUTHORS fileCOMMENT
LOW…es/firebase_crashlytics/FLTFirebaseCrashlyticsPlugin.m1// Copyright 2020 The Chromium Authors. All rights reserved.COMMENT
LOW…ase_crashlytics/include/FLTFirebaseCrashlyticsPlugin.h1// Copyright 2020 The Chromium Authors. All rights reserved.COMMENT
LOW…firebase_crashlytics/lib/src/firebase_crashlytics.dart1// ignore_for_file: require_trailing_commasCOMMENT
LOW…firebase_crashlytics/lib/src/firebase_crashlytics.dart41 bool get isCrashlyticsCollectionEnabled {COMMENT
LOW…firebase_crashlytics/lib/src/firebase_crashlytics.dart181COMMENT
LOW…firebase_crashlytics/lib/src/firebase_crashlytics.dart201 ///COMMENT
LOW…platform_interface/platform_interface_crashlytics.dart81 /// is disabled, this method can be used to check whether the user opts-in toCOMMENT
LOW…platform_interface/platform_interface_crashlytics.dart141 ///COMMENT
LOW…platform_interface/platform_interface_crashlytics.dart161 ///COMMENT
LOW…ase_auth/Sources/firebase_auth/FLTFirebaseAuthPlugin.m1// Copyright 2020 The Chromium Authors. All rights reserved.COMMENT
LOW…s/firebase_auth/include/Public/FLTFirebaseAuthPlugin.h1// Copyright 2020 The Chromium Authors. All rights reserved.COMMENT
LOW…uth/include/Private/FLTAuthStateChannelStreamHandler.h1// Copyright 2021 The Chromium Authors. All rights reserved.COMMENT
LOW…_auth/include/Private/FLTIdTokenChannelStreamHandler.h1// Copyright 2021 The Chromium Authors. All rights reserved.COMMENT
LOW…lude/Private/FLTPhoneNumberVerificationStreamHandler.h1// Copyright 2021 The Chromium Authors. All rights reserved.COMMENT
LOW…e_auth/firebase_auth/example/lib/firebase_options.dart1// Copyright 2022, the Chromium project authors. Please see the AUTHORS fileCOMMENT
LOW…/firebase_auth/example/windows/runner/win32_window.cpp1// Copyright 2023, the Chromium project authors. Please see the AUTHORS fileCOMMENT
LOW…e_auth/firebase_auth/example/windows/runner/resource.h1/*COMMENT
LOW…e_auth/firebase_auth/example/windows/runner/resource.h21#endifCOMMENT
LOW…ase_auth/firebase_auth/example/windows/runner/main.cpp1// Copyright 2023, the Chromium project authors. Please see the AUTHORS fileCOMMENT
LOW…ase_auth/Sources/firebase_auth/FLTFirebaseAuthPlugin.m1// Copyright 2020 The Chromium Authors. All rights reserved.COMMENT
LOW…s/firebase_auth/include/Public/FLTFirebaseAuthPlugin.h1// Copyright 2020 The Chromium Authors. All rights reserved.COMMENT
LOW…uth/include/Private/FLTAuthStateChannelStreamHandler.h1// Copyright 2021 The Chromium Authors. All rights reserved.COMMENT
LOW…_auth/include/Private/FLTIdTokenChannelStreamHandler.h1// Copyright 2021 The Chromium Authors. All rights reserved.COMMENT
LOW…lude/Private/FLTPhoneNumberVerificationStreamHandler.h1// Copyright 2021 The Chromium Authors. All rights reserved.COMMENT
726 more matches not shown…
Hallucination Indicators3 hits · 45 pts
SeverityFileLineSnippetContext
CRITICAL…er/plugins/firebase/database/FirebaseDatabasePlugin.kt800 transactionResult ?: return com.google.firebase.database.Transaction.abort()CODE
CRITICAL…er/plugins/firebase/database/FirebaseDatabasePlugin.kt803 return com.google.firebase.database.Transaction.abort()CODE
CRITICAL…er/plugins/firebase/database/FirebaseDatabasePlugin.kt807 return com.google.firebase.database.Transaction.success(mutableData)CODE
Decorative Section Separators8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUM…estore_web/lib/src/pipeline_expression_parser_web.dart35 // ── Value expressions ─────────────────────────────────────────────────────COMMENT
MEDIUM…estore_web/lib/src/pipeline_expression_parser_web.dart524 // ── Boolean expressions ───────────────────────────────────────────────────COMMENT
MEDIUM…estore_web/lib/src/pipeline_expression_parser_web.dart626 // ── Stage options ─────────────────────────────────────────────────────────COMMENT
MEDIUM…estore_web/lib/src/pipeline_expression_parser_web.dart679 // ── Aggregate ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…estore_web/lib/src/pipeline_expression_parser_web.dart702 // ── Other stage options ───────────────────────────────────────────────────COMMENT
MEDIUM…estore_web/lib/src/pipeline_expression_parser_web.dart813 // ── Private helpers ───────────────────────────────────────────────────────COMMENT
MEDIUM…restore/cloud_firestore/pipeline_example/lib/main.dart654 // ── New expression examples (22+) ─────────────────────────────────────COMMENT
MEDIUM…restore/cloud_firestore/pipeline_example/lib/main.dart1008 // ── New pipeline expressions (regex, map, string, array, agg) ───────────COMMENT
Excessive Try-Catch Wrapping12 hits · 23 pts
SeverityFileLineSnippetContext
MEDIUMdocs/auth/email-link-auth.md100 .catchError((onError) => print('Error sending email verification $onError'))CODE
MEDIUMdocs/auth/email-link-auth.md161 print('Error signing in with email link.');CODE
MEDIUMdocs/auth/email-link-auth.md181 print("Error linking emailLink credential.");CODE
MEDIUMdocs/auth/email-link-auth.md195 print("Error reauthenticating credential.");CODE
MEDIUMscripts/generate_versions_web.dart125 print('Error processing $webPackageName: $e');STRING
MEDIUMscripts/generate_versions_spm.dart124 print('Error: pubspec.yaml file not found at $pubspecFile');CODE
MEDIUMscripts/generate_versions_spm.dart135 print('Error: Version not found in pubspec.yaml');CODE
MEDIUMscripts/generate_versions_spm.dart146 print('Error: Constants.swift file not found at $packageSwiftPath');CODE
MEDIUMscripts/validate_workspace.dart41 print('Error: pubspec.yaml not found at root.');CODE
MEDIUMscripts/validate_workspace.dart51 print('Error: No workspace list found in pubspec.yaml.');CODE
MEDIUM…ebase_database/firebase_database/example/lib/main.dart127 print('Error: ${error.code} ${error.message}');CODE
MEDIUM.github/workflows/scripts/nightly_issue_dashboard.dart35 print('Error: GITHUB_TOKEN or REPO environment variables not set.');CODE
Fake / Example Data19 hits · 18 pts
SeverityFileLineSnippetContext
LOW…s/integration_test/firebase_storage/reference_e2e.dart295 'name': 'John Doe',CODE
LOWdocs/auth/federated-auth.md72 'login_hint': 'user@example.com'CODE
LOWdocs/auth/federated-auth.md87 'login_hint': 'user@example.com'CODE
LOWdocs/auth/manage-users.md162 .sendPasswordResetEmail(email: "user@example.com");CODE
LOW…uth_platform_interface/test/action_code_info_test.dart11 const String kMockEmail = 'test@test.com';CODE
LOW…m_interface/test/providers_tests/google_auth_test.dart56 'login_hint': 'user@example.com'CODE
LOW…m_interface/test/providers_tests/google_auth_test.dart62 expect(result.parameters['login_hint'], equals('user@example.com'));CODE
LOW…_platform_interface/lib/src/providers/google_auth.dart20/// 'login_hint': 'user@example.com'COMMENT
LOW…tegration_test/pipeline/pipeline_replace_with_e2e.dart33 {'father': 'John Doe Sr.', 'mother': 'Jane Doe'},CODE
LOW…tegration_test/pipeline/pipeline_replace_with_e2e.dart47 {'father': 'John Doe Sr.', 'mother': 'Jane Doe'},CODE
LOW…e_example/integration_test/pipeline/pipeline_seed.dart38 'nested': {'father': 'John Doe Sr.', 'mother': 'Jane Doe'},CODE
LOW…irebase_ai/firebase_ai/test/response_parsing_test.dart365 "text": "placeholder"CODE
LOW…irebase_ai/firebase_ai/test/response_parsing_test.dart448 Content.model([const TextPart('placeholder')]),STRING
LOW…irebase_ai/firebase_ai/test/response_parsing_test.dart500 "text": "placeholder"CODE
LOW…irebase_ai/firebase_ai/test/response_parsing_test.dart583 Content.model([const TextPart('placeholder')]),STRING
LOW…/firebase_ai/test/google_ai_response_parsing_test.dart312 "text": "placeholder"CODE
LOW…/firebase_ai/test/google_ai_response_parsing_test.dart395 Content.model([const TextPart('placeholder')]),STRING
LOW…/firebase_ai/test/google_ai_response_parsing_test.dart447 "text": "placeholder"CODE
LOW…/firebase_ai/test/google_ai_response_parsing_test.dart530 Content.model([const TextPart('placeholder')]),STRING
Structural Annotation Overuse11 hits · 16 pts
SeverityFileLineSnippetContext
LOWdocs/remote-config/_get-started.md10## Step 1: Add Firebase and the Remote Config SDK to your app {: #add-firebase }COMMENT
LOWdocs/remote-config/_get-started.md49## Step 2: Get the Remote Config singleton object {: #get-remote-config }COMMENT
LOWdocs/remote-config/_get-started.md69## Step 3: Set in-app default parameter values {: #default-parameter }COMMENT
LOWdocs/remote-config/_get-started.md90## Step 4: Get parameter values to use in your app {: #get-parameter }COMMENT
LOWdocs/remote-config/_get-started.md105## Step 5: Set parameter values in the Remote Config backend {: #set-parameter }COMMENT
LOWdocs/remote-config/_get-started.md122## Step 6: Fetch and activate values {: #fetch-values }COMMENT
LOWdocs/remote-config/_get-started.md145## Step 7: Listen for updates in real time {: #add-real-time-listener }COMMENT
LOWdocs/cloud-messaging/receive.md497### Step 1 - Add a notification service extension {:#step-1-add-notification-service-extension}COMMENT
LOWdocs/cloud-messaging/receive.md504### Step 2 - Add target to the Podfile {:#step-2-add-target-podfile}COMMENT
LOWdocs/cloud-messaging/receive.md539### Step 3 - Use the extension helper {:#step-3-ext-helper}COMMENT
LOWdocs/cloud-messaging/receive.md634### Step 4 - Add the image to the payload {:#add-image-payload}COMMENT
Slop Phrases3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…irestore/cloud_firestore/pipeline_example/pubspec.yaml63 # included with your application, so that you can use the icons inCOMMENT
MEDIUM…ase_messaging/firebase_messaging/example/lib/main.dart152/// The API endpoint here accepts a raw FCM payload for demonstration purposes.COMMENT
MEDIUMpackages/firebase_ai/firebase_ai/example/pubspec.yaml48 # included with your application, so that you can use the icons inCOMMENT
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…/cloud_firestore/cloud_firestore/lib/src/pipeline.dart35/// They do not utilize or update the local SDK cache, and they do not supportCOMMENT
MEDIUM…rebase_ai/firebase_ai/example/lib/pages/bidi_page.dart164 // Intention state for robust stream reconnectionCOMMENT
MEDIUM.github/workflows/web.yaml399 # WASM web runs can hang after building but before the test harnessCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…irestore/cloud_firestore/pipeline_example/pubspec.yaml59# The following section is specific to Flutter packages.COMMENT
MEDIUM…base_performance/firebase_performance_web/pubspec.yaml29# The following section is specific to Flutter.COMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…ebase_data_connect/lib/src/network/transport_stub.dart60 // TODO: implement invokeMutationCOMMENT
LOW…ebase_data_connect/lib/src/network/transport_stub.dart74 // TODO: implement invokeStreamQueryCOMMENT
LOW…ebase_data_connect/lib/src/network/transport_stub.dart88 // TODO: implement invokeQueryCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…ages/firebase_auth/firebase_auth/example/lib/auth.dart30 /// The scaffold of current context.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/scripts/ensure-simulator-ready.sh7# Usage:COMMENT