Skip to content

High frontend load time on plugins_loaded caused by FluentSMTP closure #404

Description

@neralex

Hi FluentSMTP team,

I am profiling a WooCommerce frontend page with the WordPress Hook Profiler plugin and noticed that FluentSMTP adds about 30 ms during a normal frontend page request.

In the profiler I see this entry:

  • Callback: Closure

  • Hook: plugins_loaded

  • Plugin: FluentSMTP

  • Time: ~30.5 ms

  • Context: normal frontend page view, no email is being sent

My question:

Is it expected that FluentSMTP initializes this much logic on every frontend request, even when no mail is sent?

If yes, is there a recommended way to reduce the frontend overhead?

If not, which FluentSMTP settings or modules should I check that could cause this?

Environment:

  • WordPress: 7.0

  • WooCommerce: 10.9.3

  • FluentSMTP: 2.2.95

  • PHP: 8.3

  • Theme: child theme

  • Request type: normal frontend page view

  • No mail sending during this request

  • Profiling tool: WordPress Hook Profiler

Screenshot attached.

Thanks!

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions