In Hypercart Smart Batch Installer MKIII Triage
Initially missed that $args is defined once and reused for multiple calls
Initial FALSE Positive finding
2. Missing timeout Arguments ✅ VALID
- Finding: Add explicit timeout to wp_remote_get calls
- Reality: Found 4 calls in
GitHubService.php missing explicit timeout
- Lines 82, 102, 562, 576
- They have
$args arrays but no 'timeout' key
- Action: Add
'timeout' => 10 to these 4 calls
Possible code:
Tier 1: High confidence (auto-flag)
wp_remote_get( $url ); // No args at all
Tier 2: Medium confidence (warn)
$args = [ 'headers' => [...] ]; // No timeout in context
wp_remote_get( $url, $args );
Tier 3: Low confidence (info)
wp_remote_get( $url, self::ARGS ); // Likely OK - uses constant