{"id":7059,"date":"2017-09-07T10:57:56","date_gmt":"2017-09-07T10:57:56","guid":{"rendered":"https:\/\/www.mconnectmedia.com\/blog\/?p=7059"},"modified":"2025-07-16T17:04:13","modified_gmt":"2025-07-16T11:34:13","slug":"magento-developer-gets-rid-code-quality-issue-extension","status":"publish","type":"post","link":"https:\/\/www.mconnectmedia.com\/blog\/2017\/09\/07\/magento-developer-gets-rid-code-quality-issue-extension\/","title":{"rendered":"Magento Developer Gets Rid of Code Quality Issue for the Extension"},"content":{"rendered":"<p>Are you a Magento developer and developing an extension for Magento 2? Are you planning to submit it to <a href=\"https:\/\/marketplace.magento.com\/\" target=\"_blank\" rel=\"noopener\">Magento Marketplace<\/a>? If yes, then this blog post helps you to eliminate rejection case based on code quality issue.<\/p>\n<p>Magento developer or company who have spent hours and resources behind the quality extension development. When they find their submission rejected by Magento Marketplace, just because of Code duplication issues, it turns into a miserable condition for them.<\/p>\n<p>Thus, they start searching the way to check the code duplication issues before submission of Magento extension.<\/p>\n<p>Many extensions consisting of some code, which was directly copied from the Magento core code base of the respective versions.<\/p>\n<p>It causes a direct violation of \u2018Magento Developer Agreement\u2019 documents under the\u00a0Sections 3.1 &amp; 9.1b signed between Magento developer and Magento platform while downloading the source code of different versions of Magento.<\/p>\n<p>Therefore, Magento Marketplace has placed strict restrictions on such practices taking place knowingly or unknowingly by the <a href=\"https:\/\/www.mconnectmedia.com\/magento-module-development\">Magento extension developers<\/a>.<\/p>\n<p>To implement the restrictions, it has started checking the code duplication own ways and started issuing emails, to the Magento developers who were submitting Magento extensions, with the following message.<\/p>\n<blockquote><p>Code quality issues: CPD: This extension contains duplicated code.<\/p><\/blockquote>\n<p><strong>Additional Comments:<\/strong><\/p>\n<blockquote><p>UI\/Component\/Listing\/Columns.php duplicates Magento 2&#8217;s (module-catalog) version of the same file &#8212; use ClassPreferences to avoid duplicating Magento&#8217;s code.<\/p><\/blockquote>\n<h2>Magento Developers at M-Connect Media has Pushed the Boundary<\/h2>\n<p>Many Magento developers are often raising issues on various forums and community blogs to find the answer or a tool for the code duplication analysis. The same question encountered by the M-Connect <a href=\"https:\/\/www.mconnectmedia.com\/magento-2-development-solutions\">Magento development team<\/a> on a Magento forum.<\/p>\n<p>Our Magento developers have tried to satisfy questioners by providing individual answers on <a href=\"https:\/\/magento.stackexchange.com\/questions\/184386\/how-to-check-code-duplication-in-magento-2-extension\/184417\" target=\"_blank\" rel=\"noopener\">StackExchange<\/a>.\u00a0It has given birth to an idea to develop a comprehensive free tool for the Magento extension developer community. The team believes that the device may aid in getting rid of code quality issues for Magento extensions.<\/p>\n<p>After enough brainstorming sessions and spending hours on coding, the team at <a href=\"https:\/\/www.mconnectmedia.com\/\">M-Connect Media<\/a> has uploaded an open source code on GitHub to download and install the tool.<\/p>\n<p>The tool can use before submission in the official Magento extension marketplace.<\/p>\n<p><strong>You can find it at <\/strong><strong>GitHub repository link<\/strong><\/p>\n<p>Afterward, the team also has decided to publish the tool online at <a href=\"http:\/\/codeanalysis.labs.mconnectmedia.com\/\">http:\/\/codeanalysis.labs.mconnectmedia.com\/<\/a><\/p>\n<p>Moreover, you can find detailed instructions and a step-by-step guide to using the tool online as well as install on your server.<\/p>\n<p>If you would like to know more regarding the tool, then contact\u00a0us for details. Have a Happy Coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you a Magento developer and developing an extension for Magento 2? Are you planning to submit it to Magento Marketplace? If yes, then this<\/p>\n","protected":false},"author":1,"featured_media":8586,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[1957,1951,1950,1958,1952,1038,1954,1519,1949,703,358,1959,1947,1948,44,1956,1955,1953],"class_list":["post-7059","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ecommerce","tag-check-duplicate-code","tag-code-analysis-tools","tag-code-duplication","tag-code-quality-issue","tag-duplicate-code","tag-magento-2-extensions","tag-magento-code-duplication-detection","tag-magento-coding","tag-magento-developer-guide","tag-magento-ecommerce-development","tag-magento-experts","tag-magento-extension-developers","tag-magento-extension-marketplace","tag-magento-marketplace","tag-magento-module-structure","tag-mconnect-magento-developers","tag-online-duplicate-code-analysis-tool","tag-source-code-analysis"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts\/7059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/comments?post=7059"}],"version-history":[{"count":15,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts\/7059\/revisions"}],"predecessor-version":[{"id":14170,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts\/7059\/revisions\/14170"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/media\/8586"}],"wp:attachment":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/media?parent=7059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/categories?post=7059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/tags?post=7059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}