AI Slop Code RIsk Monitor

PHPMailer/PHPMailer

The classic email sending library for PHP

11.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for PHPMailer/PHPMailer, a PHP project with 22,310 GitHub stars. SynthScan examined 22,195 lines of code across 155 source files, recording 215 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 11.1 (Moderate 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.

11.1
Adjusted Signal
11.1
Raw Pattern Score
100%
Time Factor
2026-10-06
Last Push
22.3K
Stars
PHP
Language
22.2K
Lines of Code
155
Files
215
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 18.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 29.1/100 · MEDIUM

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

Agent Over-Engineering Ratio 16.9/100 · LOW

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

PR Review Velocity Impact 38.7/100 · MEDIUM

Which changes need focused human review? 215 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 0HIGH 0MEDIUM 1LOW 214

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 215 distinct pattern matches across 4 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.

Fake / Example Data125 hits · 153 pts
SeverityFileLineSnippetContext
LOWREADME.md111 $mail->Username = 'user@example.com'; //SMTP usernameCODE
LOW⚡test/PHPMailer/MailTransportTest.php124 * php -d sendmail_path="/usr/sbin/sendmail -t -i -frpath@example.org" ./vendor/bin/phpunitCOMMENT
LOW⚡test/PHPMailer/MailTransportTest.php131 $sender = 'rpath@example.org';CODE
LOW⚡test/PHPMailer/MailTransportTest.php154 * php -d sendmail_path="/usr/sbin/sendmail -t -i -frpath@example.org" ./vendor/bin/phpunitCOMMENT
LOW⚡test/PHPMailer/MailTransportTest.php161 $sender = 'rpath@example.org';CODE
LOW⚡test/PHPMailer/MailTransportTest.php232 'rpath@example.org'CODE
LOW⚡test/PHPMailer/MailTransportTest.php237 'rpath@example.org',CODE
LOW⚡test/PHPMailer/MailTransportTest.php240 '/opt/sendmail -x -y -fuser@example.org',CODE
LOW⚡test/PHPMailer/MailTransportTest.php242 'user@example.org',CODE
LOW⚡test/PHPMailer/MailTransportTest.php245 '/opt/sendmail -X /path/to/logfile -fuser@example.org',CODE
LOW⚡test/PHPMailer/MailTransportTest.php247 'user@example.org',CODE
LOW⚡test/PHPMailer/WrapTextTest.php55 'message' => 'Lorem ipsum dolor sit amet.',CODE
LOW⚡test/PHPMailer/WrapTextTest.php55 'message' => 'Lorem ipsum dolor sit amet.',CODE
LOW⚡test/PHPMailer/WrapTextTest.php56 'expected' => 'Lorem ipsum dolor sit amet.' . PHPMailer::getLE(),CODE
LOW⚡test/PHPMailer/WrapTextTest.php56 'expected' => 'Lorem ipsum dolor sit amet.' . PHPMailer::getLE(),CODE
LOW⚡test/PHPMailer/WrapTextTest.php60 'message' => 'Lorem ipsum dolor sit amet.',CODE
LOW⚡test/PHPMailer/WrapTextTest.php60 'message' => 'Lorem ipsum dolor sit amet.',CODE
LOW⚡test/PHPMailer/WrapTextTest.php61 'expected' => 'Lorem ipsum dolor sit amet.' . PHPMailer::getLE(),CODE
LOW⚡test/PHPMailer/WrapTextTest.php61 'expected' => 'Lorem ipsum dolor sit amet.' . PHPMailer::getLE(),CODE
LOW⚡test/PHPMailer/WrapTextTest.php65 'message' => 'Lorem ipsum dolor' . PHPMailer::CRLF,CODE
LOW⚡test/PHPMailer/WrapTextTest.php66 'expected' => 'Lorem ipsum dolor' . PHPMailer::getLE(),CODE
LOW⚡test/PHPMailer/WrapTextTest.php69 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW⚡test/PHPMailer/WrapTextTest.php69 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW⚡test/PHPMailer/WrapTextTest.php72 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing' . PHPMailer::getLE()CODE
LOW⚡test/PHPMailer/WrapTextTest.php72 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing' . PHPMailer::getLE()CODE
LOW⚡test/PHPMailer/WrapTextTest.php80 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW⚡test/PHPMailer/WrapTextTest.php80 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'CODE
LOW⚡test/PHPMailer/WrapTextTest.php83 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing =' . PHPMailer::getLE()CODE
LOW⚡test/PHPMailer/WrapTextTest.php83 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing =' . PHPMailer::getLE()CODE
LOW⚡test/PHPMailer/WrapTextTest.php91 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. =' . PHPMailer::CRLFCODE
LOW⚡test/PHPMailer/WrapTextTest.php91 'message' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. =' . PHPMailer::CRLFCODE
LOW⚡test/PHPMailer/WrapTextTest.php95 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing =' . PHPMailer::getLE()CODE
LOW⚡test/PHPMailer/WrapTextTest.php95 'expected' => 'Lorem ipsum dolor sit amet, consectetur adipiscing =' . PHPMailer::getLE()CODE
LOW⚡test/PHPMailer/WrapTextTest.php104 'message' => 'Lorem ipsumdolorsitametconsetetursadipscingelitrseddiamnonumy',CODE
LOW⚡test/PHPMailer/WrapTextTest.php110 'message' => 'Lorem ipsumdolorsitametconsetetursadipscingelitrseddiamnonumy',CODE
LOW⚡test/PHPMailer/WrapTextTest.php111 'expected' => 'Lorem ipsumdolorsitametconsetetursadipscingelitrs=' . PHPMailer::getLE()CODE
LOW⚡test/PHPMailer/WrapTextTest.php116 'message' => 'Lorem ipsumdolorsitametconsetetursadipscingelitrseddiam=' . PHPMailer::CRLFCODE
LOWtest/PHPMailer/EmptyMailerTest.php33 $this->Mail->addAddress('whoto@example.com', 'John Doe');CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php122 'first@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php123 'first.last@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php124 '1234567890123456789012345678901234567890123456789012345678901234@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php125 '"first\"last"@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php126 '"first@last"@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php127 '"first\last"@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php131 '"first\last"@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php132 '"Abc\@def"@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php133 '"Fred\ Bloggs"@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php134 '"Joe.\Blow"@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php135 '"Abc@def"@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php136 'user+mailbox@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php137 'customer/department=shipping@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php138 '$A12345@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php139 '!def!xyz%abc@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php140 '_somename@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php142 'peter.piper@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php143 'test@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php144 'TEST@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php145 '1234567890@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php146 'test+test@example.org',CODE
LOW⚡test/PHPMailer/ValidateAddressTest.php147 'test-test@example.org',CODE
65 more matches not shown…
Hyper-Verbose Identifiers81 hits · 82 pts
SeverityFileLineSnippetContext
LOWtest/PHPMailer/AddStringEmbeddedImageTest.php32 public function testHtmlStringEmbedNoName()CODE
LOWtest/PHPMailer/AddStringEmbeddedImageTest.php130 public function testFailToAttachException(CODE
LOWtest/PHPMailer/FileIsAccessibleTest.php82 public function testFileIsAccessibleFailsOnUnreadableFile()CODE
LOWtest/PHPMailer/AddStringAttachmentTest.php33 public function testAddPlainStringAttachment()CODE
LOWtest/PHPMailer/AddStringAttachmentTest.php118 public function testFailToAttachException(CODE
LOWtest/PHPMailer/CustomHeaderTest.php37 public function testAddAndGetCustomHeader($headers, $expected = null)CODE
LOWtest/PHPMailer/CustomHeaderTest.php67 public static function dataAddAndGetCustomHeader()CODE
LOWtest/PHPMailer/CustomHeaderTest.php163 public function testAddCustomHeaderInvalid($name, $value = null)CODE
LOWtest/PHPMailer/CustomHeaderTest.php173 public static function dataAddCustomHeaderInvalid()CODE
LOWtest/PHPMailer/CustomHeaderTest.php217 public function testClearCustomHeaderValue()CODE
LOWtest/PHPMailer/CustomHeaderTest.php259 public function testInvalidHeaderException()CODE
LOWtest/PHPMailer/DSNConfiguratorTest.php94 public function testConfigureSmtpWithoutAuthentication()CODE
LOWtest/PHPMailer/DSNConfiguratorTest.php108 public function testConfigureSmtpWithAuthentication()CODE
LOWtest/PHPMailer/DSNConfiguratorTest.php125 public function testConfigureSmtpWithoutPort()CODE
LOWtest/PHPMailer/DSNConfiguratorTest.php153 public function testConfigureSmtpsWithoutPort()CODE
LOWtest/PHPMailer/DSNConfiguratorTest.php173 public function testConfigureWithUnknownOption()CODE
LOWtest/PHPMailer/NormalizeBreaksTest.php94 public function testNormalizeBreaksWithCustomLineEnding()CODE
LOW⚡test/PHPMailer/MailTransportTest.php129 public function testMailSendWithSendmailParams()CODE
LOW⚡test/PHPMailer/MailTransportTest.php159 public function testSendmailSendWithSendmailParams()CODE
LOWtest/PHPMailer/DKIMWithoutExceptionsTest.php37 public function testDKIMSignOpenSSLNotAvailable()CODE
LOWtest/PHPMailer/PunyencodeAddressTest.php38 public function testPunyencodeAddressConversion($input, $charset, $expected)CODE
LOWtest/PHPMailer/PunyencodeAddressTest.php54 public static function dataPunyencodeAddressConversion()CODE
LOWtest/PHPMailer/PunyencodeAddressTest.php92 public function testPunyencodeAddressNoConversion($input, $charset, $expected)CODE
LOWtest/PHPMailer/PunyencodeAddressTest.php111 public static function dataPunyencodeAddressNoConversion()CODE
LOWtest/PHPMailer/SetFromTest.php106 public function testSetFromDoesNotOverruleSenderWithAutoFalse()CODE
LOWtest/PHPMailer/SetFromTest.php117 public function testSetFromDoesNotOverruleExistingSender()CODE
LOWtest/PHPMailer/SetFromTest.php159 public function testInvalidAddressException($address, $name = '')CODE
LOWtest/PHPMailer/EmptyMailerTest.php30 public function testSendWithEmptyMailerDoesNotCrash($mailer)CODE
LOWtest/PHPMailer/ValidateAddressTest.php73 public function testPatternsInvalidAddress($pattern)CODE
LOWtest/PHPMailer/PHPMailerTest.php45 public function testMultiplePlainFileAttachment()CODE
LOWtest/PHPMailer/PHPMailerTest.php69 public function testRejectNonLocalFileAttachment()CODE
LOWtest/PHPMailer/PHPMailerTest.php622 public function testEmbeddedImageCustomCidDomain()CODE
LOWtest/PHPMailer/PHPMailerTest.php862 public function testAddAttachmentEncodingException()CODE
LOWtest/PHPMailer/PHPMailerTest.php873 public function testAddFolderAsAttachment()CODE
LOWtest/PHPMailer/PHPMailerTest.php887 public function testDeletedAttachmentException()CODE
LOWtest/PHPMailer/PHPMailerTest.php902 public function testDeletedAttachmentError()CODE
LOWtest/PHPMailer/PHPMailerTest.php1272 public function testStrangeUnicodeEmailAddresses()CODE
LOWtest/PHPMailer/PHPMailerTest.php1285 public function testAutomaticEaiValidation()CODE
LOWtest/PHPMailer/DKIMTest.php54 public function testDKIMBodyCanonicalization()CODE
LOWtest/PHPMailer/DKIMTest.php89 public function testDKIMHeaderCanonicalization()CODE
LOWtest/PHPMailer/DKIMTest.php126 public function testDKIMOptionalHeaderFieldsCopy()CODE
LOWtest/PHPMailer/DKIMTest.php247 public function testDKIMSignOpenSSLNotAvailableException()CODE
LOWtest/PHPMailer/ReplyToGetSetClearTest.php40 public function testAddReplyToValidAddressNonIdn($address, $name = null, $expected = null)CODE
LOWtest/PHPMailer/ReplyToGetSetClearTest.php86 public static function dataAddReplyToValidAddressNonIdn()CODE
LOWtest/PHPMailer/ReplyToGetSetClearTest.php125 public function testAddReplyToInvalidAddressNonIdn($address)CODE
LOWtest/PHPMailer/ReplyToGetSetClearTest.php147 public function testAddReplyToInvalidAddressNonIdnException($address)CODE
LOWtest/PHPMailer/ReplyToGetSetClearTest.php161 public static function dataAddReplyToInvalidAddressNonIdn()CODE
LOWtest/PHPMailer/ReplyToGetSetClearTest.php181 public function testReplyToInMessageHeader($addresses, $expected)CODE
LOWtest/PHPMailer/ReplyToGetSetClearTest.php207 public static function dataReplyToInMessageHeader()CODE
LOWtest/PHPMailer/ReplyToGetSetClearTest.php265 public function testEnqueueAndAddIdnAddress()CODE
LOWtest/PHPMailer/ReplyToGetSetClearTest.php305 public function testNoDuplicateReplyToAddresses()CODE
LOWtest/PHPMailer/LocalizationTest.php134 public function testSetLanguageSuccessFallBackLogic($phrase, $langCode = null, $langPath = null)CODE
LOWtest/PHPMailer/LocalizationTest.php144 public static function dataSetLanguageSuccessFallBackLogic()CODE
LOWtest/PHPMailer/LocalizationTest.php282 public function testSetLanguageDoesNotExecuteCodeInLangFile()CODE
LOWtest/PHPMailer/LocalizationTest.php327 public function testSetLanguageDoesNotExecuteCodeWithBackticksInLangFile()CODE
LOWtest/PHPMailer/LocalizationTest.php358 public function testSetLanguageOnlyProcessesKnownKeys()CODE
LOWtest/PHPMailer/AddEmbeddedImageTest.php99 public function testAddingImageWithoutExplicitName()CODE
LOWtest/PHPMailer/AddEmbeddedImageTest.php142 public function testFailToAttachException(CODE
LOWtest/PHPMailer/ParseAddressesTest.php53 public function testAddressSplittingNative($addrstr, $expected, $charset = PHPMailer::CHARSET_ISO88591)CODE
LOWtest/PHPMailer/ParseAddressesTest.php80 public function testParseAddressesWithFalsyUseimapValues($useimap)CODE
21 more matches not shown…
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOW.phan/config.php21 ],COMMENT
LOWtest/fakepopserver.sh1#!/usr/bin/env bashCOMMENT
LOWtest/PHPMailer/PHPMailerTest.php1381 $this->Mail->SMTPDebug = SMTP::DEBUG_LOWLEVEL; //Show connection-level errorsCOMMENT
LOWlanguage/phpmailer.lang-fo.php21$PHPMAILER_LANG['provide_address'] = 'Tú skal uppgeva minst móttakara-emailadressu(r).';COMMENT
LOWlanguage/phpmailer.lang-fi.php21$PHPMAILER_LANG['provide_address'] = 'Aseta vähintään yksi vastaanottajan sähköpostiosoite.';COMMENT
LOW.github/workflows/tests.yml141 permissions:COMMENT
LOWsrc/PHPMailer.php1901 //This sets the SMTP envelope sender which gets turned into a return-path header by the receiverCOMMENT
LOWsrc/PHPMailer.php5281 //That means this may break if you do something daft like put vertical tabs in your headers.COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtest/fakesendmail.sh5#Create a temp folder to put messages inCOMMENT