-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion - Extension Performance #52
Comments
Noted. I'm not sure if this is easy to do with PHPCS, but perhaps the new Reflection helper I've added comes to aid. Few other things come to my mind: Blackfire performance testing in a CI chain. And perhaps an Integration Test that is able to sum up the queries that have been added since a specific piece of code has been run. Both would be optional for developers, but at least more thought can be put into this. |
Specific performance related anti patterns (like load in a loop) can be implemented as code sniffer rules, but will be bypassed if they are hidden behind abstractions as described in the Twitter thread. But let's keep this topic to collect ideas independent of phpcs |
I have had to fix many extensions that broke the caches which is a huge performance hit. Test automation can detect cache headers and the Magento debug cache header to verify the extensions don’t break the full page cache I have also had one invalidate the config cache and that was a nightmare and hard to find. |
@dankoz51 Good point. Magento Marketplace already contains a check to see if FPC is disabled once a tested extension is enabled. Likewise they are working on performance metrics to see if an extension puts an additional load somewhere. To built a FPC check is not that hard I think, it could be done with an integration test in a controller that dispatches the request and then inspects the response. Could you elaborate a bit more on the extension that invalidated the config cache? Was this on every request? Or specific circumstances? |
So far three different issues.
|
Thanks for the input! Much appreciated. To comment on the points:
Last but not least, did you stick around for the vendors to fix their extensions? Or did you chuck them out? |
Performance comes up at various times in regards to extension quality. I am not sure if there is much that can/should be done as part of a codesniffer rule as load testing might be better, for example with the Magento performance profiles, but adding a topic here so we don't lose the discussion https://twitter.com/foomanNZ/status/1018553321555021824
The text was updated successfully, but these errors were encountered: