WordPress / plugin-check

A repository for the new Plugin Check plugin from the WordPress Performance and Plugins Team.
https://wordpress.org/plugins/plugin-check/
GNU General Public License v2.0
240 stars 46 forks source link

Detect missing readme headers #414

Closed ernilambar closed 3 months ago

ernilambar commented 7 months ago

Related to https://github.com/WordPress/plugin-check/issues/402

If the PR is acceptable then I will add tests for the changes and update other tests accordingly. Other tests also need to be updated because currently we have assumed there will be no warning for missing Tested up to field.

ernilambar commented 7 months ago

cc: @swissspidy @mukeshpanchal27

frantorres commented 3 months ago

Hi @ernilambar thanks for the change. It looks good, if you finish the tests I can continue with the review.

ernilambar commented 3 months ago

PR has been rebased with trunk and few more updates have been done.

davidperezgar commented 3 months ago

For me It's ok after all changes! In the future, we would need to get the actual version of WordPress somewhere and create a warning if it's not getting an actual version.

davidperezgar commented 3 months ago

I would add to check the actual version of WordPress. It must be Tested up "actual version".

In order to have always the latest version, I've asked to meta, and we have some methods to check that:

Yes, use one of these:
https://api.wordpress.org/core/stable-check/1.0/
3rd line of https://api.wordpress.org/core/version-check/1.1/
Or just json decode https://api.wordpress.org/core/version-check/1.7/

So finally we have a complete check.

The error that we show to the users is something like this ERROR: Tested up to: 6.4 < 6.5

ernilambar commented 3 months ago

@davidperezgar Should this be done in this same PR or separate PR?

davidperezgar commented 3 months ago

In a separate Issue. I'll create the issue #481