Title: Performance benefit to using exported PHP code?
Last modified: June 20, 2022

---

# Performance benefit to using exported PHP code?

 *  Resolved [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/performance-benefit-to-using-exported-php-code/)
 * Hi
 * Is there a performance benefit to exporting the PHP code and using it in a custom
   plugin vs not doing so? Presumably, at least one database query is removed?
 * Can/should the plugin be deactivated if the generated code is used?
 * Thanks
    Jamie

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

 *  [Adam](https://wordpress.org/support/users/panhead/)
 * (@panhead)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/performance-benefit-to-using-exported-php-code/#post-15861590)
 * [@jamieburchell](https://wordpress.org/support/users/jamieburchell/) – I personally
   haven’t noticed a decrease in performance using this plugin as opposed to putting
   the code into the functions.php file.
 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/performance-benefit-to-using-exported-php-code/#post-15863212)
 * [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * As [@panhead](https://wordpress.org/support/users/panhead/) said, the performance
   gain using PHP is tiny, as the code runs fast. There’s extra query to the database,
   but it doesn’t affect the performance very much.

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

The topic ‘Performance benefit to using exported PHP code?’ is closed to new replies.

 * ![](https://ps.w.org/mb-custom-post-type/assets/icon-128x128.png?rev=1697794)
 * [MB Custom Post Types & Custom Taxonomies](https://wordpress.org/plugins/mb-custom-post-type/)
 * [Support Threads](https://wordpress.org/support/plugin/mb-custom-post-type/)
 * [Active Topics](https://wordpress.org/support/plugin/mb-custom-post-type/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mb-custom-post-type/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mb-custom-post-type/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/performance-benefit-to-using-exported-php-code/#post-15863212)
 * Status: resolved