AI Slop Code Risk Monitor

BookStackApp/BookStack

SlopCodeMonitor badge for BookStackApp/BookStack Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

NOW MANAGED ON CODEBERG

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for BookStackApp/BookStack, a PHP project with 19,117 GitHub stars. SynthScan examined 296,455 lines of code across 2281 source files, recording 314 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.1 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.1
Adjusted Signal
1.1
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
19.1K
Stars
PHP
Language
296.5K
Lines of Code
2.3K
Files
314
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 4.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 285 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

Are imports declared and package/API names verified? 29 finding(s).

Agent Over-Engineering Ratio 4.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 254 finding(s).

PR Review Velocity Impact 5.5/100 · LOW

Which changes need focused human review? 314 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 0MEDIUM 5LOW 308

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 314 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers254 hits · 256 pts
SeverityFileLineSnippetContext
LOWapp/Settings/AppSettingsStore.php88 protected function destroyExistingSettingImage(string $settingKey): voidCODE
LOWapp/App/Providers/EventServiceProvider.php49 protected function configureEmailVerification(): voidCODE
LOWapp/Access/LdapService.php361 protected function extractGroupNamesFromLdapGroupDns(array $groupDNs): arrayCODE
LOWapp/Access/LdapService.php440 protected function extractGroupsFromSearchResponseEntry(array $ldapEntry): arrayCODE
LOWapp/Access/SocialAuthService.php56 public function handleRegistrationCallback(string $socialDriver, SocialUser $socialUser): SocialUserCODE
LOWapp/Access/LoginService.php97 protected function getLastLoginAttemptDetails(): arrayCODE
LOWapp/Access/LoginService.php120 protected function setLastLoginAttemptedForUser(User $user, string $method, bool $remember): voidCODE
LOWapp/Access/LoginService.php147 public function awaitingEmailConfirmation(User $user): boolCODE
LOWapp/Access/RegistrationService.php28 public function ensureRegistrationAllowed()CODE
LOWapp/Access/Saml2Service.php202 protected function loadOneloginServiceProviderDetails(): arrayCODE
LOWapp/Access/GroupSyncService.php29 protected function externalIdMatchesGroupNames(string $externalId, array $groupNames): boolCODE
LOWapp/Access/GroupSyncService.php56 protected function matchGroupsToSystemsRoles(array $groupNames): CollectionCODE
LOWapp/Access/SocialDriverManager.php51 public function isAutoConfirmEmailEnabled(string $driver): boolCODE
LOWapp/Access/SocialDriverManager.php79 public function getConfigureForRedirectCallback(string $driver): callableCODE
LOWapp/Access/Oidc/OidcProviderSettings.php114 protected function loadSettingsFromIssuerDiscovery(ClientInterface $httpClient): arrayCODE
LOWapp/Access/Oidc/OidcService.php177 protected function processAccessTokenCallback(OidcAccessToken $accessToken, OidcProviderSettings $settings): UserCODE
LOWapp/Access/Oidc/OidcJwtWithClaims.php62 public function validateCommonTokenDetails(string $clientId): boolCODE
LOWapp/Access/Oidc/OidcOAuthProvider.php50 public function getResourceOwnerDetailsUrl(AccessToken $token): stringCODE
LOWapp/Access/Controllers/LoginController.php167 protected function sendLoginAttemptExceptionResponse(LoginAttemptException $exception, Request $request)CODE
LOWapp/Access/Controllers/LoginController.php186 protected function updateIntendedFromPrevious(): voidCODE
LOWapp/Access/Controllers/HandlesPartialLogins.php14 protected function currentOrLastAttemptedUser(): UserCODE
LOWapp/Access/Guards/LdapSessionGuard.php112 protected function createNewFromLdapAndCreds(array $ldapUserDetails, array $credentials): UserCODE
LOWapp/Util/HtmlContentFilter.php51 protected function filterOutScriptsFromDocument(HtmlDocument $doc): voidCODE
LOWapp/Util/HtmlContentFilter.php89 protected function filterOutFormElementsFromDocument(HtmlDocument $doc): voidCODE
LOWapp/Util/HtmlContentFilter.php116 protected function filterOutBadHtmlElementsFromDocument(HtmlDocument $doc): voidCODE
LOWapp/Util/HtmlContentFilter.php123 protected function filterOutNonContentElementsFromDocument(HtmlDocument $doc): voidCODE
LOWapp/Util/HtmlContentFilter.php174 public static function removeScriptsFromDocument(HtmlDocument $doc): voidCODE
LOWapp/Util/HtmlContentFilter.php189 public static function removeScriptsFromHtmlString(string $html): stringCODE
LOWapp/Util/CspService.php62 public function allowedIFrameHostsConfigured(): boolCODE
LOWapp/Util/HtmlPurifier/ConfiguredHtmlPurifier.php56 protected function createCacheFolderIfNeeded(string $cachePath): voidCODE
LOWapp/References/ReferenceFetcher.php36 public function getReferenceCountToEntity(Entity $entity): intCODE
LOWapp/References/CrossLinkParser.php87 public static function createWithEntityResolvers(): selfCODE
LOWapp/References/ReferenceStore.php76 protected function dropReferencesFromEntities(array $entities): voidCODE
LOWapp/References/ReferenceUpdater.php35 public function changeReferencesUsingContext(ReferenceChangeContext $context): voidCODE
LOWapp/References/ReferenceUpdater.php101 protected function updateReferencesWithinEntity(Entity $entity, string $oldLink, string $newLink): voidCODE
LOWapp/References/ReferenceUpdater.php112 protected function updateReferencesWithinDescription(Entity&HasDescriptionInterface $entity, string $oldLink, stringCODE
LOWapp/References/ReferenceUpdater.php120 protected function updateReferencesWithinPage(Page $page, string $oldLink, string $newLink): voidCODE
LOWapp/Activity/Tools/WebhookFormatter.php73 public function addDefaultModelFormatters(): voidCODE
LOW…ity/Notifications/Handlers/BaseNotificationHandler.php19 protected function sendNotificationToUserIds(string $notification, array $userIds, User $initiator, string|Loggable CODE
LOW…cations/Handlers/CommentMentionNotificationHandler.php77 protected function getPreviouslyNotifiedUserIds(Comment $comment): arrayCODE
LOWapp/Uploads/ImageStorage.php33 public function usingSecureRestrictedImages(): boolCODE
LOWapp/Uploads/ImageStorageDisk.php108 public function destroyAllMatchingNameFromPath(string $path): voidCODE
LOWapp/Uploads/UserAvatars.php45 public function assignToUserFromExistingData(User $user, string $imageData, string $extension): voidCODE
LOWapp/Uploads/UserAvatars.php123 protected function createAvatarImageFromData(User $user, string $imageData, string $extension): ImageCODE
LOWapp/Uploads/AttachmentService.php21 public function streamAttachmentFromStorage(Attachment $attachment)CODE
LOWapp/Uploads/AttachmentService.php105 public function updateFileOrderWithinPage(array $attachmentOrder, int $pageId)CODE
LOWapp/Uploads/ImageResizer.php32 public function loadGalleryThumbnailsForMany(iterable $images, bool $shouldCreate = false): voidCODE
LOWapp/Uploads/ImageResizer.php42 public function loadGalleryThumbnailsForImage(Image $image, bool $shouldCreate): voidCODE
LOWapp/Uploads/ImageResizer.php161 protected function interventionFromImageData(string $imageData, ?string $fileType): InterventionImageCODE
LOWapp/Uploads/ImageResizer.php195 protected function orientImageToOriginalExif(InterventionImage $image, string $originalData): voidCODE
LOWapp/Uploads/FaviconHandler.php51 public function restoreOriginalIfNotExists(): boolCODE
LOWapp/Uploads/ImageService.php119 public function replaceExistingFromUpload(string $path, string $type, UploadedFile $file): voidCODE
LOWapp/Uploads/ImageService.php252 public function pathAccessibleInLocalSecure(string $imagePath): boolCODE
LOWapp/Uploads/ImageService.php315 protected function checkUserHasAccessToRelationOfImageAtPath(string $path): boolCODE
LOWapp/Uploads/ImageService.php340 protected function checkUserHasAccessToRelationOfImage(Image $image): boolCODE
LOWapp/Uploads/ImageService.php368 public function streamImageFromStorageResponse(string $imageType, string $path): StreamedResponseCODE
LOWapp/Permissions/JointPermissionBuilder.php127 protected function buildJointPermissionsForBooks(EloquentCollection $books, array $roles, bool $deleteOld = false): CODE
LOWapp/Permissions/JointPermissionBuilder.php152 protected function buildJointPermissionsForEntities(array $entities): voidCODE
LOWapp/Permissions/JointPermissionBuilder.php164 protected function deleteManyJointPermissionsForEntities(array $entities): voidCODE
LOWapp/Permissions/JointPermissionBuilder.php202 protected function createManyJointPermissions(array $originalEntities, array $roles): voidCODE
194 more matches not shown…
Fake / Example Data28 hits · 33 pts
SeverityFileLineSnippetContext
LOWapp/Console/Commands/CreateAdminCommand.php124 $details['email'] = 'admin@example.com';CODE
LOW…rces/views/settings/categories/customization.blade.php139 'placeholder' => trans('settings.app_homepage_select'),CODE
LOWresources/views/auth/register.blade.php34 @include('form.password', ['name' => 'password', 'placeholder' => trans('auth.password_hint')])CODE
LOWresources/views/auth/invite-set-password.blade.php15 @include('form.password', ['name' => 'password', 'placeholder' => trans('auth.password_hint')])CODE
LOWresources/views/attachments/manager-edit-form.blade.php39 'placeholder' => trans('entities.attachments_edit_drop_upload'),CODE
LOWresources/views/pages/parts/form.blade.php28 @include('form.text', ['name' => 'name', 'model' => $model, 'placeholder' => trans('entities.pages_tCODE
LOWresources/views/entities/template-selector.blade.php9 'placeholder' => trans('entities.default_template_select'),CODE
LOWtests/Auth/AuthTest.php124 $this->post('/login', ['email' => 'admin@example.com', 'password' => 'cattreedog']);CODE
LOWtests/Auth/Saml2Test.php99 'email' => 'user@example.com',CODE
LOWtests/Auth/Saml2Test.php367 $this->assertDatabaseMissing('users', ['email' => 'user@example.com']);CODE
LOWtests/Auth/Saml2Test.php406 'email' => 'user@example.com',CODE
LOWtests/Auth/Saml2Test.php415 'email' => 'user@example.com',CODE
LOWtests/Auth/Saml2Test.php439 'email' => 'user@example.com',CODE
LOWtests/Auth/Saml2Test.php441 $this->assertEquals('user@example.com', user()->email);CODE
LOWtests/Auth/Saml2Test.php524 * 0 => "user@example.com"COMMENT
LOW⚡tests/Entity/PageContentFilteringTest.php320 '<div>Lorem ipsum dolor sit amet.</div><p onclick="console.log(\'test\')">Hello</p>',CODE
LOW⚡tests/Entity/PageContentFilteringTest.php320 '<div>Lorem ipsum dolor sit amet.</div><p onclick="console.log(\'test\')">Hello</p>',CODE
LOW⚡tests/Entity/PageContentFilteringTest.php321 '<div>Lorem ipsum dolor sit amet.<p onclick="console.log(\'test\')">Hello</p></div>',CODE
LOW⚡tests/Entity/PageContentFilteringTest.php321 '<div>Lorem ipsum dolor sit amet.<p onclick="console.log(\'test\')">Hello</p></div>',CODE
LOW⚡tests/Entity/PageContentFilteringTest.php322 '<div><div><div><div>Lorem ipsum dolor sit amet.<p onclick="console.log(\'test\')">Hello</p></div></div></diCODE
LOW⚡tests/Entity/PageContentFilteringTest.php322 '<div><div><div><div>Lorem ipsum dolor sit amet.<p onclick="console.log(\'test\')">Hello</p></div></div></diCODE
LOW⚡tests/Entity/PageContentFilteringTest.php323 '<div onclick="console.log(\'test\')">Lorem ipsum dolor sit amet.</div><p onclick="console.log(\'test\')">HeCODE
LOW⚡tests/Entity/PageContentFilteringTest.php323 '<div onclick="console.log(\'test\')">Lorem ipsum dolor sit amet.</div><p onclick="console.log(\'test\')">HeCODE
LOWtests/Commands/CreateAdminCommandTest.php207 'email' => 'admin@example.com',CODE
LOW⚡public/libs/tinymce/tinymce.min.js4!function(){"use strict";var e=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;returCODE
LOWpublic/libs/tinymce/themes/silver/theme.min.js4!function(){"use strict";const e=Object.getPrototypeOf,t=(e,t,o)=>{var n;return!!o(e,t.prototype)||(null===(n=e.construcCODE
LOWdev/api/responses/shelves-read.json70 "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOWdev/api/responses/shelves-read.json70 "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
Over-Commented Block23 hits · 23 pts
SeverityFileLineSnippetContext
LOWjest.config.ts21 // Indicates whether the coverage information should be collected while executing the testCOMMENT
LOWjest.config.ts41 // "text",COMMENT
LOWjest.config.ts61 // forceCoverageMatch: [],COMMENT
LOWjest.config.ts81COMMENT
LOWjest.config.ts121 // Use this configuration option to add custom reporters to JestCOMMENT
LOWjest.config.ts141 "./resources/js"COMMENT
LOWjest.config.ts161COMMENT
LOWjest.config.ts181 // This option allows the use of a custom results processorCOMMENT
LOWapp/Config/oidc.php41 // A false value force-disables RP-Initiated Logout.COMMENT
LOWapp/Config/app.php21 // Shows much more verbose error messages. Has potential to showCOMMENT
LOWapp/Config/app.php41 // This setting is a string of characters which represent different available filters:COMMENT
LOWapp/Config/app.php61 // and used by BookStack in URL generation.COMMENT
LOWapp/Config/app.php81 // Space separated if multiple. BookStack host domain is auto-inferred, in addition toCOMMENT
LOWapp/Config/session.php41 // When using the "apc" or "memcached" session drivers, you may specify aCOMMENT
LOWapp/Config/session.php61 // your application but you are free to change this when necessary.COMMENT
LOWapp/Config/session.php81COMMENT
LOWapp/Config/debugbar.php21COMMENT
LOWapp/Config/debugbar.php121COMMENT
LOWapp/Config/saml2.php61 // SAML protocol binding to be used when returning the <Response>COMMENT
LOWapp/Config/logging.php21 // messages to the logs. The name specified in this option should matchCOMMENT
LOWresources/js/wysiwyg/ui/defaults/toolbars.ts201COMMENT
LOWresources/js/wysiwyg/lexical/core/LexicalReconciler.ts721 // We also want to make sure we clear them down, otherwise weCOMMENT
LOW…xical/core/nodes/__tests__/unit/LexicalTabNode.test.ts61 invariant($isRangeSelection(selection), 'isRangeSelection(selection)');COMMENT
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMapp/Config/logging.php37 // you a variety of powerful log handlers / formatters to utilize.COMMENT
MEDIUMresources/js/wysiwyg/lexical/core/LexicalUpdates.ts252 // We leverage editor._dirtyLeaves to track the new dirty leaves after the transformsCOMMENT
MEDIUM…iwyg/lexical/core/__tests__/unit/LexicalEditor.test.ts529 // Add transform makes everything dirty the first time (let's not leverage this here)COMMENT
MEDIUM⚡public/libs/tinymce/tinymce.min.js4!function(){"use strict";var e=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;returCODE
MEDIUM⚡public/libs/tinymce/tinymce.min.js4!function(){"use strict";var e=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;returCODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALpublic/libs/tinymce/themes/silver/theme.min.js4!function(){"use strict";const e=Object.getPrototypeOf,t=(e,t,o)=>{var n;return!!o(e,t.prototype)||(null===(n=e.construcCODE
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…xical/core/__tests__/unit/LexicalSerialization.test.ts110 const expectedStringifiedEditorState = `{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","CODE
LOW…xical/core/__tests__/unit/LexicalSerialization.test.ts119 `{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Welcome to the playCODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWresources/js/wysiwyg/lexical/utils/index.ts426 // TODO: implement this functionalityCOMMENT