Title: Code refactoring
Last modified: February 15, 2019

---

# Code refactoring

 *  Resolved [lvfxbr](https://wordpress.org/support/users/lvfxbr/)
 * (@lvfxbr)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-refactoring/)
 * Hello there!
 * Well, I was reading the code of the plugin and I noticed some things to improve:
 * 1. The way you commented the code is not following the PHPDoc standard and as
   you see, it is breaking the syntax highlight of any colorful text-editor and 
   that difficults debug:
 * [https://pasteboard.co/I1gR7R1.png](https://pasteboard.co/I1gR7R1.png)
 * 2. The index.php have 3k of lines, can you please split it in small files? The
   good code is not that only run and just works, the good code is that is readable,
   mantainable and objective.
 * Thank you, the plugin is working fine but need these improvements.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [pavloborysenko](https://wordpress.org/support/users/pavloborysenko/)
 * (@pavloborysenko)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-refactoring/#post-11210406)
 * Hello
 * 1) Use another IDE. A good editor should recognize comments. Looks like you are
   using VS code
 * 2) Yes of course. But this is class size. And it is impossible to divide it into
   several files. the same file size does not affect readability
 *  Thread Starter [lvfxbr](https://wordpress.org/support/users/lvfxbr/)
 * (@lvfxbr)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-refactoring/#post-11211390)
 * 1) Tell me the IDE that is not breaking in the comment, because I tested in VSCode
   and in Sublime Text, two code editors can’t be wrong.
 * 2) Yes, you can, maybe you don’t want to waste your time organizing it because
   it’s too big and it’s working as expected. See WooCommerce code and tell me you
   can’t split a class in two or in twenty.
    -  This reply was modified 7 years, 3 months ago by [lvfxbr](https://wordpress.org/support/users/lvfxbr/).
    -  This reply was modified 7 years, 3 months ago by [lvfxbr](https://wordpress.org/support/users/lvfxbr/).
 *  [pavloborysenko](https://wordpress.org/support/users/pavloborysenko/)
 * (@pavloborysenko)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-refactoring/#post-11219136)
 * Hello
 * 1) Notepad++, bluefish, netbeans, PHPstorm – these plugins have intelligent recognition
   of comments
 * 2) Do you want to offer your services? Please give me a link to your product 
   in production.
 *  Thread Starter [lvfxbr](https://wordpress.org/support/users/lvfxbr/)
 * (@lvfxbr)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-refactoring/#post-11235725)
 * 1) You are using the IDE change as excuse, you don’t want to use PHPDoc Standard,
   I don’t understand your reluctance. You are nesting the a single line comment
   in a block comment and that is a bad code practice. If you don’t believe me, 
   see: [http://php.net/manual/en/language.basic-syntax.comments.php](http://php.net/manual/en/language.basic-syntax.comments.php).
 * 2) I will be interested in contribute to plugin with two conditions:
 * 2.1 – IF the plugin is open source, I will be happy to send pull requests, just
   give me the link of repository (I didn’t found in Google).
 * 2.2 – IF the plugin has a commercial license, I want a percentage of it. But 
   we can talk more if you wish.
 * 3) As I can see, you don’t accept my opinions so I will use another plugin to
   make the filter of my theme. I lost my time here. Have a nice day!
 *  [pavloborysenko](https://wordpress.org/support/users/pavloborysenko/)
 * (@pavloborysenko)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/code-refactoring/#post-11235829)
 * Hello
 * 1)Did you read the article to which you threw me a link?
 * PHPDoc – Yes, I do not use it! But this is not the rule, and there is no need
   to use it if I do not want automatic documentation.
 * 2) If you do not have serious products in production. Of course I will not cooperate
   with you
 * 3) Yes you are right. Let’s not waste each other’s time

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Code refactoring’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-products-filter/assets/icon-256x256.png?rev=
   2844301)
 * [HUSKY - Products Filter Professional for WooCommerce](https://wordpress.org/plugins/woocommerce-products-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-products-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-filter/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [improvement](https://wordpress.org/support/topic-tag/improvement/)
 * [Standard](https://wordpress.org/support/topic-tag/standard/)

 * 5 replies
 * 2 participants
 * Last reply from: [pavloborysenko](https://wordpress.org/support/users/pavloborysenko/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/code-refactoring/#post-11235829)
 * Status: resolved