This video will teach you on how to fix some common code issues in your plugins and get your code approved on CodeCanyon. I provide a list of common rejection reasons and fixes for them.
Check also my blog post on this subject: https://coderevolution.ro/2019/04/27/common-rejection-reasons-in-plugin-review-on-codecanyon-and-their-fixes/
Also, it will help you get the ‘WP Requirements Compliant’ badge – after you apply these fixes for all your plugins.
Full list of plugin requirements: https://help.author.envato.com/hc/en-us/articles/360000510603-WordPress-Plugin-Requirements
List of issues found in my plugins:
1. Is this supposed to be a prefix? https://envato.d.pr/OAd6mR
2. Remove all unused code: https://envato.d.pr/jpcLhW
3. Enqueue all CSS & JS correctly: https://envato.d.pr/PDWiBi
4. Use .on() rather than .click(), .bind(), .hover(), .submit() etc… https://envato.d.pr/Ayp0y8
5. Use proper semantic HTML: https://envato.d.pr/S9Qlea
6. Escape everything: https://envato.d.pr/EioK9l
7. All theme text strings are to be translatable and properly escaped: https://envato.d.pr/TaYHTA
8. Data Validation issues have been found in your theme. https://envato.d.pr/AI0Fmt All dynamic data must be correctly escaped for the context where it is rendered. Please make sure you read these articles: https://make.wordpress.org/themes/tags/writing-secure-themes/ http://codex.wordpress.org/Data_Validation http://developer.wordpress.com/themes/escaping/ http://code.tutsplus.com/articles/data-sanitization-and-validation-with-wordpress–wp-25536 https://vip.wordpress.com/documentation/best-practices/security/validating-sanitizing-escaping/
9. Don’t suppress errors: https://envato.d.pr/hdcF1c
10. Instead of using file_get_contents, fopen, fread, fwrite, fputs, chmod and such, could you please use the WordPress equivalents. You can access these through the WP Filesystem API. For more information: https://developer.wordpress.org/reference/functions/wp_filesystem/ https://developer.wordpress.org/reference/classes/wp_filesystem_base/ https://developer.wordpress.org/reference/classes/wp_filesystem_direct/ https://envato.d.pr/8OWR8x
11. All JavaScript should be written with “use strict” mode on. For example, you can do this with jQuery as follows: (function($) { “use strict”; // Author code here })(jQuery); https://envato.d.pr/zGx3xH
12. Use dashes instead of underscores for handles: https://envato.d.pr/dyDa2c
13. Use protocol relative URLs: https://envato.d.pr/a9GyME
14. Use a proper textdomain: https://envato.d.pr/thU02j
▶Portfolio – https://1.envato.market/coderevolution
▶DONT CLICK THIS – https://www.youtube.com/channel/UCVLIksvzyk-D_oEdHab2Lgg?sub_confirmation=1