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
198 stars 39 forks source link

Code Obfuscation Check does not show multiple obfuscated files #363

Open ernilambar opened 6 months ago

ernilambar commented 6 months ago

Issue similar to https://github.com/WordPress/plugin-check/issues/362

When there are multiple files with obfuscated code, only one error is shown.

I tested with following code in multiple files.

<?php @Zend;
3272;
/* Ò!This is not a text file!fiÌ  */

When we create new method like files_preg_match() or similar in Abstract_File_Check to find multiple matched instances, we could use that here also.