VIP-Coding-Standards icon indicating copy to clipboard operation
VIP-Coding-Standards copied to clipboard

PHP_CodeSniffer ruleset to enforce WordPress VIP coding standards.

Results 124 VIP-Coding-Standards issues
Sort by recently updated
recently updated
newest added
trafficstars

## Bug Description The VIP Go standard uses `WordPress.Security.EscapeOutput.OutputNotEscaped` but doesn't recognize that the deprecated [`wpcom_vip_get_resized_remote_image_url()` function](https://github.com/Automattic/vip-go-mu-plugins/blob/dfc36174ce2274def920a9ed4bf88e7d50303b35/vip-helpers/vip-deprecated.php#L1130-L1139) auto-escapes if it's fourth argument is true (default). Since it's conditional, we can't...

Type: False positive

## What problem would the enhancement address for VIP? When a file includes a load of other includes/requires, then part of the path might be assigned to a variable, to...

Type: Enhancement

## What problem would the enhancement address for VIP? The frequency with which "Warning: File inclusion using custom constant (`PREFIX_PATH`). Probably needs manual inspection (WordPressVIPMinimum.Files.IncludingFile.UsingCustomConstant)." shows up just below a...

Type: Enhancement
Standard: VIP-Go

We probably should enforce esc_url for any urls.

Type: Enhancement
Status: Awaiting feedback

Things I'd like to see for this repo: - [x] Change log - [ ] Roadmap / proposed release schedule - [x] Milestones - [x] Useful labels that focus on...

Type: Maintenance

## What problem would the enhancement address for VIP? Code that uses a filter instead of an action are being flagged with `WordPressVIPMinimum.Filters.AlwaysReturn.missingReturnStatement` when the correct developer remediation for the...

## What problem would the enhancement address for VIP? When using `bloginfo()`, the caller should not echo the output, as `bloginfo()` does this internally (see [here](https://developer.wordpress.org/reference/functions/bloginfo/#source)). Callers should simply call...

Type: Enhancement

:warning: DO NOT MERGE (YET) :warning: [Remaining work for this Milestone](https://github.com/Automattic/VIP-Coding-Standards/milestone/X) PR for tracking changes for the X.Y.Z release. Target release date: DOW DD MMMM YYYY. - [ ] Scan...