You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer, I can see that lots of code is loading on each page of the website when Give is activated even it does not need. We can improve plugin loading performance by reorganizing plugin code.
For Example:
tcpdf lib: only needed when generates pdf
background process lib: only needed when run updates
give-metabox-functions.php: only needed when on form edit page
give-readme-parser.php: only needed when update plugin
give-html-elements: only needed in admin
import-functions only needed on tools page
give email functionality mostly needed when send email
load logging lib only if log
license handler mostly needed in backend
Note: After making these changes to code, I can see improvement (check screenshot). but few changes from above list can break addons, so need to discuss it.
Visuals
P3 Plugin Profiler WordPress Plugin
Before
After reorganize few files
Acceptance Criteria
TCPDF loads only when generating pdf report for donation income.
Form Metabox functions load only in admin.
Give HTML element functions load only in admin.: Not possible now. because tribute is using this in preview card functionality.
Import functions load only in admin.
License handler class loads only in admin.: Not possible now because most of addon is using Give_License class to register addon.
Template loader class loads only on the frontend.
Email access class loads only on the frontend.
Process donation related file to load only on the frontend. : Not possible now because this file also contains few helpers functions.
API key table class loads only on API setting page.
Feature Request
User Story
As a developer, I can see that lots of code is loading on each page of the website when Give is activated even it does not need. We can improve plugin loading performance by reorganizing plugin code.
For Example:
Note: After making these changes to code, I can see improvement (check screenshot). but few changes from above list can break addons, so need to discuss it.
Visuals
P3 Plugin Profiler WordPress Plugin
Before
After reorganize few files
Acceptance Criteria
Give HTML element functions load only in admin.: Not possible now. because tribute is using this in preview card functionality.License handler class loads only in admin.: Not possible now because most of addon is usingGive_License
class to register addon.Process donation related file to load only on the frontend.: Not possible now because this file also contains few helpers functions.ref: https://docs.google.com/document/d/1t6Q-BanFSCLzZN0J5ygMqNQ2G-s0IjRBzR-kujeBmwQ/edit?usp=sharing
The text was updated successfully, but these errors were encountered: