Repository Analysis

filamentphp/filament

A powerful open-source UI framework for Laravel • Build and ship apps & admin panels fast with Livewire

4.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of filamentphp/filament, a PHP project with 31,441 GitHub stars. SynthScan v2.0 examined 587,983 lines of code across 5916 source files, recording 2413 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 4.5 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).

4.5
Adjusted Score
4.5
Raw Score
100%
Time Factor
2026-07-13
Last Push
31.4K
Stars
PHP
Language
588.0K
Lines of Code
5.9K
Files
2.4K
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 1HIGH 1MEDIUM 0LOW 2411

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 2413 distinct pattern matches across 6 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.

Hyper-Verbose Identifiers1592 hits · 1781 pts
SeverityFileLineSnippetContext
LOWtests/src/Tables/RecordTest.php62function attachDepartmentsWithSort(Ticket $ticket, Collection $departments, int $sortOffset = 1, array $extraPivotData =CODE
LOWtests/src/Tables/RecordTest.php75function pivotSortKeyedByDepartment(Ticket $ticket): arrayCODE
LOWtests/src/Forms/Components/RepeaterTest.php3033 public function getFilamentTranslatableContentDriver(): ?stringCODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php2076 public function saveUploadedFileAttachment(TemporaryUploadedFile $file): mixedCODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php2081 public function getDefaultFileAttachmentVisibility(): ?stringCODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php2086 public function isExistingRecordRequiredToSaveNewFileAttachments(): boolCODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php2108 public function getFileAttachmentProvider(): ?FileAttachmentProviderCODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php2117 public function saveUploadedFileAttachment(TemporaryUploadedFile $file): mixedCODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php2122 public function getDefaultFileAttachmentVisibility(): ?stringCODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php2127 public function isExistingRecordRequiredToSaveNewFileAttachments(): boolCODE
LOW…s/Components/RichEditor/RichContentCustomBlockTest.php67 public static function shouldApplyProseStylingToPreview(array $config): boolCODE
LOW…ents/RichEditor/StateCasts/RichEditorStateCastTest.php535 public static function shouldApplyProseStylingToPreview(array $config): boolCODE
LOWtests/src/Panels/Commands/MakeThemeCommandTest.php25function createCommandWithMockedFilesystem(string $viteConfigContent = '', string $panelProviderContent = '', string $paCODE
LOWtests/src/Panels/GlobalSearch/GlobalSearchTest.php129 public static function getGloballySearchableAttributes(): arrayCODE
LOWtests/src/Support/EvaluatesClosuresTest.php121 protected function resolveDefaultClosureDependencyForEvaluationByName(string $parameterName): arrayCODE
LOWtests/src/Support/EvaluatesClosuresTest.php129 protected function resolveDefaultClosureDependencyForEvaluationByType(string $parameterType): arrayCODE
LOW…mponents/ColorMaps/IconButtonComponentColorMapTest.php12function defaultIconButtonColorMap(array $palette): IconButtonComponentColorMapCODE
LOWtests/src/Actions/Imports/ImporterTest.php18 public static function getCompletedNotificationBody(Import $import): stringCODE
LOWtests/src/Actions/Imports/ImporterTest.php33 public static function getCompletedNotificationBody(Import $import): stringCODE
LOW…orts/Http/Controllers/DownloadImportFailureCsvTest.php23 public static function getCompletedNotificationBody(Import $import): stringCODE
LOW…orts/Http/Controllers/DownloadImportFailureCsvTest.php59function signedImportFailureDownloadUrl(Import $import): stringCODE
LOWtests/src/Actions/Exports/ExporterTest.php22 public static function getCompletedNotificationBody(Export $export): stringCODE
LOWtests/src/Actions/Exports/ExporterTest.php39 public static function getCompletedNotificationBody(Export $export): stringCODE
LOWtests/src/Fixtures/RichEditor/TestRichContentPlugin.php65 public function getDisabledToolbarButtons(): arrayCODE
LOW…xtures/Forms/RichEditor/FileAttachmentProviderStub.php27 public function saveUploadedFileAttachment(TemporaryUploadedFile $file): mixedCODE
LOW…xtures/Forms/RichEditor/FileAttachmentProviderStub.php32 public function getDefaultFileAttachmentVisibility(): ?stringCODE
LOW…xtures/Forms/RichEditor/FileAttachmentProviderStub.php37 public function isExistingRecordRequiredToSaveNewFileAttachments(): boolCODE
LOW…/Forms/RichEditor/PluginWithFileAttachmentProvider.php25 public function getFileAttachmentProvider(): ?FileAttachmentProviderCODE
LOW…es/Translatable/RecordingTranslatableContentDriver.php26 public function getRecordAttributesToArray(Model $record): arrayCODE
LOW…es/Translatable/RecordingTranslatableContentDriver.php55 public function applySearchConstraintToQuery(Builder $query, string $column, string $search, string $whereClause, ?bCODE
LOW…ges/CreateAnotherPreservingRepeaterWithDefaultPost.php35 protected function preserveFormDataWhenCreatingAnother(array $data): arrayCODE
LOW…es/Posts/Pages/CreateAnotherPreservingRepeaterPost.php32 protected function preserveFormDataWhenCreatingAnother(array $data): arrayCODE
LOW…ources/Posts/Pages/CreateAnotherPreservingDataPost.php13 protected function preserveFormDataWhenCreatingAnother(array $data): arrayCODE
LOW…ixtures/Resources/Users/Resources/UserPostResource.php27 public static function getParentResourceRegistration(): ?ParentResourceRegistrationCODE
LOW…/Resources/Companies/Resources/CompanyTeamResource.php27 public static function getParentResourceRegistration(): ?ParentResourceRegistrationCODE
LOWtests/src/Notifications/NotificationTest.php215function getLastNotificationAction()CODE
LOWdocs/03-resources/06-deleting-records.md68public static function getRecordRouteBindingEloquentQuery(): BuilderCODE
LOWdocs/03-resources/07-managing-relationships.md803public function hasCombinedRelationManagerTabsWithContent(): boolCODE
LOWdocs/03-resources/03-creating-records.md13protected function mutateFormDataBeforeCreate(array $data): arrayCODE
LOWdocs/03-resources/03-creating-records.md84protected function getCreatedNotificationTitle(): ?stringCODE
LOWdocs/03-resources/03-creating-records.md143protected function preserveFormDataWhenCreatingAnother(array $data): arrayCODE
LOWdocs/03-resources/03-creating-records.md152protected function preserveFormDataWhenCreatingAnother(array $data): arrayCODE
LOWdocs/03-resources/04-editing-records.md109protected function getSavedNotificationTitle(): ?stringCODE
LOWdocs/03-resources/10-global-search.md32public static function getGlobalSearchResultTitle(Model $record): string | HtmlableCODE
LOWdocs/03-resources/10-global-search.md43public static function getGloballySearchableAttributes(): arrayCODE
LOWdocs/03-resources/10-global-search.md54public static function getGlobalSearchResultDetails(Model $record): arrayCODE
LOWdocs/03-resources/10-global-search.md70public static function getGlobalSearchEloquentQuery(): BuilderCODE
LOWdocs/03-resources/10-global-search.md96public static function getGlobalSearchResultActions(Model $record): arrayCODE
LOWdocs/03-resources/08-nesting.md62public static function getParentResourceRegistration(): ?ParentResourceRegistrationCODE
LOWdocs/07-users/03-tenancy.md299public static function isTenantSubscriptionRequired(Panel $panel): boolCODE
LOWdocs/06-navigation/04-clusters.md141public static function shouldRegisterSubNavigation(): boolCODE
LOWdocs/06-navigation/01-overview.md103public static function getNavigationBadgeTooltip(): ?stringCODE
LOWdocs/09-advanced/04-file-generation.md107protected function addNavigationIconPropertyToClass(ClassType $class): voidCODE
LOWdocs/09-advanced/04-file-generation.md125protected function configureNavigationIconProperty(Property $property): voidCODE
LOWpackages/tables/.stubs.php12 public function assertCanRenderTableColumn(string $name): static {}CODE
LOWpackages/tables/.stubs.php14 public function assertCanNotRenderTableColumn(string $name): static {}CODE
LOWpackages/tables/.stubs.php18 public function assertTableColumnDoesNotExist(string $name, ?Closure $checkColumnUsing = null, $record = null): CODE
LOWpackages/tables/.stubs.php24 public function assertTableColumnStateSet(string $name, $state, $record): static {}CODE
LOWpackages/tables/.stubs.php26 public function assertTableColumnStateNotSet(string $name, $state, $record): static {}CODE
LOWpackages/tables/.stubs.php28 public function assertTableColumnSummarizerExists(string $columnName, string $summarizerId): static {}CODE
1532 more matches not shown…
Fake / Example Data802 hits · 811 pts
SeverityFileLineSnippetContext
LOWtests/src/Tables/ColumnTest.php1335 $company = Company::factory()->create(['name' => 'Acme Corp']);CODE
LOWtests/src/Tables/ColumnTest.php1541 $company = Company::factory()->create(['name' => 'Acme Corp']);CODE
LOWtests/src/Tables/ColumnTest.php1628 $company = Company::factory()->create(['name' => 'Acme Corp']);CODE
LOWtests/src/Tables/GroupingTest.php166 $companyNames = ['Acme Corp', 'Beta Inc', 'Gamma LLC', 'Delta Co', 'Epsilon Ltd'];CODE
LOWtests/src/Tables/GroupingTest.php365 $company = Company::factory()->create(['name' => 'Acme Corp']);CODE
LOWtests/src/Tables/GroupingTest.php750 $companyNames = ['Acme Corp', 'Beta Inc', 'Gamma LLC', 'Delta Co', 'Epsilon Ltd'];CODE
LOWtests/src/Tables/GroupingTest.php777 $company = Company::factory()->create(['name' => 'Acme Corp']);CODE
LOWtests/src/Tables/Filters/SelectFilterTest.php823describe('placeholder', function (): void {CODE
LOWtests/src/Tables/Filters/QueryBuilderTest.php309 $author = User::factory()->create(['name' => 'John Doe']);CODE
LOWtests/src/Tables/Filters/QueryBuilderTest.php721 $author = User::factory()->create(['name' => 'John Doe']);CODE
LOWtests/src/Tables/Filters/QueryBuilderTest.php745 $author = User::factory()->create(['name' => 'John Doe']);CODE
LOWtests/src/Tables/Filters/QueryBuilderTest.php932 $author = User::factory()->create(['name' => 'John Doe']);CODE
LOWtests/src/Tables/Columns/SelectColumnTest.php316 $user = User::factory()->create(['name' => 'John Doe']);CODE
LOWtests/src/Tables/Columns/SelectColumnTest.php351 $user = User::factory()->create(['name' => 'Jane Doe']);CODE
LOWtests/src/Tables/Columns/SelectColumnTest.php360 expect($label)->toBe('Jane Doe');CODE
LOWtests/src/Tables/Columns/ColumnTest.php134describe('placeholder', function (): void {CODE
LOWtests/src/Forms/ActionTest.php252 ->assertDispatched('state-captured', state: '555-1234');CODE
LOWtests/src/Forms/ActionTest.php258 ->assertDispatched('state-captured', state: ['street' => '123 Main St', 'city' => 'Springfield']);CODE
LOWtests/src/Forms/ActionTest.php291 ->default('555-1234')CODE
LOWtests/src/Forms/ActionTest.php301 ->default('123 Main St'),CODE
LOWtests/src/Forms/AfterStateUpdatedJsTest.php22 ->fill('#form\.name', 'John Doe')CODE
LOWtests/src/Forms/AfterStateUpdatedJsTest.php28 ->fill('#form\.flex_name', 'Jane Doe')CODE
LOWtests/src/Forms/Components/RichEditorTest.php1645 $editor->rawState('<p><img src="placeholder" data-id="new-upload-uuid" /></p>');CODE
LOWtests/src/Forms/Components/RichEditorTest.php1669 $editor->rawState('<p><img src="placeholder" data-id="uploads/kept.jpg" /></p>');CODE
LOWtests/src/Forms/Components/RichEditorTest.php1688 $editor->rawState('<p><img src="placeholder" data-id="foreign-id" /></p>');CODE
LOWtests/src/Forms/Components/SelectTest.php2110 User::factory()->create(['name' => 'John Doe']);CODE
LOWtests/src/Forms/Components/SelectTest.php2119 expect(array_values($results))->toContain('John Doe');CODE
LOWtests/src/Forms/Components/TextInputTest.php538 ->type('[data-testid="text-input"] input', 'John Doe')CODE
LOWtests/src/Forms/Components/MarkdownEditorTest.php547describe('placeholder', function (): void {CODE
LOWtests/src/Forms/Components/OneTimeCodeInputTest.php110describe('placeholder', function (): void {CODE
LOWtests/src/Forms/Components/TextareaTest.php199describe('placeholder', function (): void {CODE
LOWtests/src/Forms/Components/ColorPickerTest.php136describe('placeholder', function (): void {CODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php39 'name' => 'John Doe',CODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php44 expect($html)->toContain('John Doe');CODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php293 'user_name' => 'John Doe',CODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php1181 'label' => 'John Doe',CODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php1218 ->getLabelsUsing(fn (array $ids): array => ['1' => 'John Doe']),CODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php1247 ->getLabelsUsing(fn (array $ids): array => ['1' => 'John Doe'])CODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php1701 ->mergeTags(['name' => 'John Doe']);CODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php1703 expect($renderer->getMergeTagValue('name'))->toBe('John Doe');CODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php2181 'src' => 'placeholder',CODE
LOW…orms/Components/RichEditor/RichContentRendererTest.php2193 expect($html)->not->toContain('src="placeholder"');CODE
LOWtests/src/Forms/Components/MorphToSelect/TypeTest.php279 $user = User::factory()->create(['name' => 'Jane Doe']);CODE
LOWtests/src/Forms/Components/MorphToSelect/TypeTest.php292 expect($label)->toBe('Jane Doe');CODE
LOWtests/src/Panels/Configuration/AvatarProviderTest.php11 $user = User::factory()->create(['name' => 'John Doe']);CODE
LOWtests/src/Panels/Resources/Pages/ListRecordsTest.php117 'title' => 'Lorem Ipsum',CODE
LOWtests/src/Infolists/Components/TextEntryTest.php320 'data' => 'placeholder',CODE
LOWtests/src/Infolists/Components/KeyValueEntryTest.php20 ->assertSeeText('John Doe')CODE
LOWtests/src/Infolists/Components/KeyValueEntryTest.php108 'name' => 'John Doe',CODE
LOWtests/src/Actions/SelectActionTest.php50describe('placeholder', function (): void {CODE
LOWtests/src/Fixtures/Pages/KeyValueTest.php28 'name' => 'John Doe',CODE
LOWpackages/tables/resources/lang/sl/table.php42 'placeholder' => 'Išči',CODE
LOWpackages/tables/resources/lang/sl/table.php140 'placeholder' => 'Vsi',CODE
LOWpackages/tables/resources/lang/sl/table.php144 'placeholder' => 'Vsi',CODE
LOWpackages/tables/resources/lang/sl/table.php167 'placeholder' => 'Združi po',CODE
LOWpackages/tables/resources/lang/sk/table.php37 'placeholder' => 'Vyberte možnosť',CODE
LOWpackages/tables/resources/lang/sk/table.php74 'placeholder' => 'Hľadať',CODE
LOWpackages/tables/resources/lang/sk/table.php172 'placeholder' => 'Všetko',CODE
LOWpackages/tables/resources/lang/sk/table.php177 'placeholder' => 'Všetko',CODE
LOWpackages/tables/resources/lang/ur/table.php54 'placeholder' => 'تلاش کریں',CODE
742 more matches not shown…
Structural Annotation Overuse16 hits · 24 pts
SeverityFileLineSnippetContext
LOWdocs/11-plugins/03-building-a-panel-plugin.md16## Step 1: Create the pluginCOMMENT
LOWdocs/11-plugins/03-building-a-panel-plugin.md20## Step 2: Clean upCOMMENT
LOWdocs/11-plugins/03-building-a-panel-plugin.md83## Step 3: Setting up the providerCOMMENT
LOWdocs/11-plugins/03-building-a-panel-plugin.md126## Step 4: Create the widgetCOMMENT
LOWdocs/11-plugins/03-building-a-panel-plugin.md187## Step 5: Update your READMECOMMENT
LOWdocs/11-plugins/04-building-a-standalone-plugin.md15## Step 1: Create the pluginCOMMENT
LOWdocs/11-plugins/04-building-a-standalone-plugin.md19## Step 2: Clean upCOMMENT
LOWdocs/11-plugins/04-building-a-standalone-plugin.md88## Step 3: Setting up the providerCOMMENT
LOWdocs/11-plugins/04-building-a-standalone-plugin.md123## Step 4: Creating our componentCOMMENT
LOWdocs/11-plugins/04-building-a-standalone-plugin.md186## Step 5: Rendering our componentCOMMENT
LOWdocs/11-plugins/04-building-a-standalone-plugin.md219## Step 6: Adding some stylesCOMMENT
LOWdocs/11-plugins/04-building-a-standalone-plugin.md260## Step 7: Update your READMECOMMENT
LOWpackages/widgets/docs/03-charts.md520### Step 1: Install the plugin with NPMCOMMENT
LOWpackages/widgets/docs/03-charts.md528### Step 2: Create a JavaScript file importing the pluginCOMMENT
LOWpackages/widgets/docs/03-charts.md554### Step 3: Compile the JavaScript file with ViteCOMMENT
LOWpackages/widgets/docs/03-charts.md578### Step 4: Register the JavaScript file in FilamentCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…urces/js/components/rich-editor/extension-merge-tag.js239 view.state.schema.nodes.mergeTag.create({CODE
AI Response Leakage1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpackages/schemas/docs/02-layouts.md237The `from()` method is used to control the [Tailwind breakpoint](https://tailwindcss.com/docs/responsive-design#overviewCODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpackages/support/resources/js/utilities/select.js1364 // For multiple selection, we need to check if there are any options that aren't already selectedCOMMENT