• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

the size of function.php file and performance

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › the size of function.php file and performance

This topic is: not resolved

Tagged: Function.php

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 3 months ago by kriskl.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 8, 2013 at 10:27 am #65855
    kriskl
    Participant

    Hi,

    does the size and of course the number (and complexity) of the functions/actions in the child theme functions.php file affect much the performance?
    Just wondering, since it seems like this is the correct way to customise genesis child themes.

    so I wonder about the server performance..

    thanks
    kris

    November 17, 2013 at 1:19 pm #73665
    Aaron Eaton
    Member

    The size of a PHP file doesn't have nearly the effect on execution time as the quality of the code contained within. Plus, once you get over a couple of hundred lines, you should think about breaking it up with includes or some code design pattern.

    It's a bit difficult to provide some good suggestions without examples. If you'd like to provide some specific code blocks, we'd be happy to take a look.


    —
    J. Aaron Eaton – WordPress Consultant
    Website

    December 4, 2013 at 11:22 am #76985
    kriskl
    Participant

    Thanks Aaron for responding.

    it was just a general question,
    but your answer does clear some worries 🙂 when I finally get around to customise a lot the theme using functions.php.. I may post the code here for inspection.

    thanks a lot
    Kris

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble