How to get your WordPress plugins approved on CodeCanyon (also for WP Requirements Compliant badge)
CodeRevolution TV
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:
- Is this supposed to be a prefix? https://envato.d.pr/OAd6mR
- Remove all unused code: https://envato.d.pr/jpcLhW
- Enqueue all CSS & JS correctly: https://envato.d.pr/PDWiBi
- Use .on() rather than .click(), .bind(), .hover(), .submit() etc... https://envato.d.pr/Ayp0y8
- Use proper semantic HTML: https://envato.d.pr/S9Qlea
- Escape everything: https://envato.d.pr/EioK9l
- All theme text strings are to be translatable and properly escaped: https://envato.d.pr/TaYHTA
- 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/
- Don't suppress errors: https://envato.d.pr/hdcF1c
- 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
- 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
- Use dashes instead of underscores for handles: https://envato.d.pr/dyDa2c
- Use protocol relative URLs: https://envato.d.pr/a9GyME
- 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 ... https://www.youtube.com/watch?v=Hl8Dk48r0x4
116403770 Bytes