Title: Misc suggestions to improve code
Last modified: August 30, 2016

---

# Misc suggestions to improve code

 *  [DrLightman](https://wordpress.org/support/users/drlightman/)
 * (@drlightman)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/misc-suggestions-to-improve-code/)
 * 1. you may safely remove the php closing tag ?> at the end of a source code file(
   it’s always encouraged to do so, google it), to reduce probability of empty blank
   space after that which may be sent to output buffer and break some website features.
   I notice you had it removed from 2 sources but left it in other 2 sources of 
   the plugin.
 * 2. always use absolute paths to include/require stuff.
    NO: require ‘fbcs-admin.
   php’; YES: require dirname( __FILE__ ) . ‘/fbcs-admin.php’; YES: require __DIR__.‘/
   fbcs-admin.php’;
 * [https://wordpress.org/plugins/facebook-comments-sync/](https://wordpress.org/plugins/facebook-comments-sync/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [btdogan](https://wordpress.org/support/users/btdogan/)
 * (@btdogan)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/misc-suggestions-to-improve-code/#post-6737909)
 * Thank you very much for your feedback. I am gonna apply these in the next version
   =)

Viewing 1 replies (of 1 total)

The topic ‘Misc suggestions to improve code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook-comments-sync_4c6971.svg)
 * [Facebook Comments Sync](https://wordpress.org/plugins/facebook-comments-sync/)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-comments-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-comments-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-comments-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-comments-sync/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [btdogan](https://wordpress.org/support/users/btdogan/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/misc-suggestions-to-improve-code/#post-6737909)
 * Status: not resolved