Title: Clean, ethic, performance code..
Last modified: December 1, 2022

---

# Clean, ethic, performance code..

 *  [josepon](https://wordpress.org/support/users/josepon/)
 * (@josepon)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/clean-ethic-performance-code/)
 * Hi!
 * simple and awesome Plugin!!!
 * But, only one thing, could you please do not write code directly inline, so it’s
   executed every time, on every load of any site using your plugin, also in every
   page which is not showing the shortcode.
 * Basically lines of ‘simple-basic-contact-form.php’ until (near) line 140.
 * That code should execute only into the shortcode function, all that variable 
   ini, and get POST data, sanitize_text_field…
 * That kind of things seems to be silly, but every plugin that do the same adds
   miliseconds to total execution time, and that is the first problem of every site
   which looks for performance, and what is worse, could be potentially insecure.
 * Thank you very much
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fclean-ethic-performance-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Clean, ethic, performance code..’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-basic-contact-form_d8b8d8.
   svg)
 * [Simple Basic Contact Form](https://wordpress.org/plugins/simple-basic-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-basic-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-basic-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-basic-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-basic-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-basic-contact-form/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [josepon](https://wordpress.org/support/users/josepon/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/clean-ethic-performance-code/)
 * Status: not resolved