make_result( array( 'id' => 'file_mods_allowed', 'title' => __( 'Plugin/theme installation from admin is allowed', 'aipatch-security-scanner' ), 'description' => __( 'File editing is disabled but file installations are still possible from the admin panel.', 'aipatch-security-scanner' ), 'severity' => 'low', 'confidence' => 'high', 'category' => 'configuration', 'why_it_matters' => __( 'If an attacker gains admin access, they could install a malicious plugin or theme.', 'aipatch-security-scanner' ), 'recommendation' => __( 'For maximum security, add define( \'DISALLOW_FILE_MODS\', true ); to wp-config.php.', 'aipatch-security-scanner' ), 'dismissible' => true, 'evidence' => 'DISALLOW_FILE_EDIT is true but DISALLOW_FILE_MODS is not set', ) ), ); } }