• Resolved FormCraft

    (@nishncraftsnet)


    I made the plugin FormCraft (http://codecanyon.net/item/formcraft-premium-wordpress-form-builder/5335056) and the plugin FormCraft Add-On Pack (https://wordpress.org/plugins/formcraft-add-on-pack/)

    Some of my customers have run p3 profiler on their site and the results show that, in some cases, formcraft takes up 70% ( 70% of what? )

    I have looked in this in some detail.

    1. P3 provides no useful information on debugging the issue. All you see is 70% listed on different pages, presented in different styles. It’s the same piece of data. There is absolutely no other info, unless I missed some corner.

    2. FormCraft Add-On pack is a very small plugin. It loads no JS or CSS files on any page. It is a simple API snipper which connects forms to newsletter services. When your submit a form, this add-on connects to the, say, MailChimp server, giving them the email. Needless to say, this only happens when you submit the form. It obviously doesn’t happen every time you open a page?

    Why would p3 show that the add-on pack is using 70% (again, 70% WHAT) ?
    Is there any info I can use to debug something here?

    https://wordpress.org/plugins/p3-profiler/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Kurt Payne

    (@kurtpayne)

    Hi nCrafts,

    There is documentation with P3 under the “help” tab that explains in detail what is being measured.

    Why would p3 show that the add-on pack is using 70% (again, 70% WHAT) ?

    70% of wall time for php time only. CSS / JS are not considered unless they’re dynamically generated by the WordPress framework.

    If wordpress takes 10 seconds to load, P3 has attributed 7 seconds to this plugin.

    If you’d like more info, I’ve written all about it here:
    http://kpayne.me/2013/12/24/write-your-own-code-profiler-in-php/

    1. P3 provides no useful information on debugging the issue. All you see is 70% listed on different pages, presented in different styles. It’s the same piece of data. There is absolutely no other info, unless I missed some corner.

    P3 is for profiling, not debugging. If you’d like to dig into this more, I suggest using any one of these other tools:

    https://wordpress.org/plugins/query-monitor/
    https://github.com/dannyvankooten/wp-plugin-profiler
    https://github.com/Rarst/laps
    https://wpperformanceprofiler.interconnectit.com/

    Or jump straight into xdebug / xhprof and see where the holdup is.

    2. FormCraft Add-On pack is a very small plugin. It loads no JS or CSS files on any page. It is a simple API snipper which connects forms to newsletter services. When your submit a form, this add-on connects to the, say, MailChimp server, giving them the email. Needless to say, this only happens when you submit the form. It obviously doesn’t happen every time you open a page?

    I would look into this further for you, but the source code for the plugin in question is not available.

    Thread Starter FormCraft

    (@nishncraftsnet)

    Thanks for the quick and helpful reply. I’ll try some of those debugging plugins, and see where the holdup is.

    You can mark this as solved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can the plugin show any useful data?’ is closed to new replies.