1 / 26

Challenges and opportunities with M2

Challenges and opportunities with M2. Christos Stavrakis Leader PHP Web Developer. Christos Stavrakis Leader PHP Web Developer. About Me Senior PHP Developer on Magento 1 CE/EE & 2 CE Senior PHP Developer on Zend Framework 2 MSc in Information System BSc in Mathematics.

Download Presentation

Challenges and opportunities with M2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Challenges and opportunities with M2 Christos StavrakisLeader PHP Web Developer

  2. Christos StavrakisLeader PHP Web Developer About Me Senior PHP Developer on Magento 1 CE/EE & 2 CE Senior PHP Developer on Zend Framework 2 MSc in Information System BSc in Mathematics

  3. Challenge with Optimum Performance!!

  4. What I can do to improve magento performance? 1. Upgrade to latest version2. Implement a CDN with Magento3. Utilize Caching (Varnish/Memcache/Redis)4. Browser Caching5. Enable Flat Catalog6. Image Optimization7. Merge CSS and JavaScript Files8. Clean Up Magento Database & Logs9. Disable Unnecessary Extensions & Modules10. Code Optimization

  5. What I can do to improve magento performance? 1. Upgrade to latest version2. Implement a CDN with Magento3. Utilize Caching (Varnish/Memcache/Redis)4. Browser Caching5. Enable Flat Catalog6. Image Optimization7. Merge CSS and JavaScript Files8. Clean Up Magento Database & Logs9. Disable Unnecessary Extensions & Modules10. Code Optimization

  6. What I can do to improve magento performance? 1. Upgrade to latest version2. Implement a CDN with Magento3. Utilize Caching (Varnish/Memcache/Redis)4. Browser Caching5. Enable Flat Catalog6. Image Optimization7. Merge CSS and JavaScript Files8. Clean Up Magento Database & Logs9. Disable Unnecessary Extensions & Modules10. Code Optimization

  7. What I can do to improve magento performance? 1. Upgrade to latest version2. Implement a CDN with Magento3. Utilize Caching (Varnish/Memcache/Redis)4. Browser Caching (enable Gzip compression)5. Enable Flat Catalog6. Image Optimization7. Merge CSS and JavaScript Files8. Clean Up Magento Database & Logs9. Disable Unnecessary Extensions & Modules10. Code Optimization

  8. What I can do to improve magento performance? 1. Upgrade to latest version2. Implement a CDN with Magento3. Utilize Caching (Varnish/Memcache/Redis)4. Browser Caching5. Enable Flat Catalog6. Image Optimization7. Merge CSS and JavaScript Files8. Clean Up Magento Database & Logs9. Disable Unnecessary Extensions & Modules10. Code Optimization

  9. What I can do to improve magento performance? 1. Upgrade to latest version2. Implement a CDN with Magento3. Utilize Caching (Varnish/Memcache/Redis)4. Browser Caching5. Enable Flat Catalog6. Image Optimization7. Merge CSS and JavaScript Files8. Clean Up Magento Database & Logs9. Disable Unnecessary Extensions & Modules10. Code Optimization

  10. What I can do to improve magento performance? 1. Upgrade to latest version2. Implement a CDN with Magento3. Utilize Caching (Varnish/Memcache/Redis)4. Browser Caching5. Enable Flat Catalog6. Image Optimization7. Merge CSS and JavaScript Files8. Clean Up Magento Database & Logs9. Disable Unnecessary Extensions & Modules10. Code Optimization

  11. What I can do to improve magento performance? 1. Upgrade to latest version2. Implement a CDN with Magento3. Utilize Caching (Varnish/Memcache/Redis)4. Browser Caching5. Enable Flat Catalog6. Image Optimization7. Merge CSS and JavaScript Files8. Clean Up Magento Database & Logs9. Disable Unnecessary Extensions & Modules10. Code Optimization

  12. What I can do to improve magento performance? 1. Upgrade to latest version2. Implement a CDN with Magento3. Utilize Caching (Varnish/Memcache/Redis)4. Browser Caching5. Enable Flat Catalog6. Image Optimization7. Merge CSS and JavaScript Files8. Clean Up Magento Database & Logs9. Disable Unnecessary Extensions & Modules10. Code Optimization

  13. What I can do to improve magento performance? 1. Upgrade to latest version2. Implement a CDN with Magento3. Utilize Caching (Varnish/Memcache/Redis)4. Browser Caching5. Enable Flat Catalog6. Image Optimization7. Merge CSS and JavaScript Files8. Clean Up Magento Database & Logs9. Disable Unnecessary Extensions & Modules10. Code Optimization

  14. Code Optimization!– What I can do for that? As long as your site becomes bigger... a) New data continuously feeds your Data Base (quotes, orders, products, logs, customers… etc)b) New business logic, adds more complexity to PHP (analytics, newsletter, custom related products… etc)c) More customers visiting and shopping!!

  15. Code Optimization!– What I can do for that? 1) Start optimization from most visited pages a. Home Page b. Product Page c. List Page d. Cart e. Checkout !!! ← Be careful here

  16. Code Optimization!– What I can do for that? 2) Inspect PHP code a. Follow Magento Coding Standards (ALWAYS!!) → Read from devdocs.magento.com, (always updated with the last version of Magento) → Read about proper module structure... → Read about test driven development in Magento

  17. Code Optimization!– What I can do for that? 2) Inspect PHP codeb. Remove raw SQL queries inside *.phtml files → Use Blocks and ViewModels for this job! → You gain Blocks Html caching system

  18. Code Optimization!– What I can do for that? 2) Inspect PHP code c. Inspect every product collection and remove any new product load inside iteration → Add additional attributes in product collection instead → You gain less queries in DataBase

  19. Code Optimization!– What I can do for that? 2) Inspect PHP code d. Proper Exception Handling → Implement custom Logger and use try,catch try{/* Some logic that throws exception */ }catch(\Exception $e){ $this→logger→critical($e→getMessage()); }

  20. Code Optimization!– What I can do for that? 2) Inspect PHP code e. Optimize Cron-Jobs → ERP crons → Import/Export Products crons → Feeds export crons → Use “Pagination” for large collections → Gain CPU and Memory from your server and give it to your customers.

  21. Opportunities on Developing

  22. Developing!– What I can do for that? Magento Modularization System 1. Create New Magento 2 Shipping Methods → ACS * → Speedex * Note: Try to mimic native Magento shipping methods and build your own logic inside them. * has been developed by

  23. Developing!– What I can do for that? Magento Modularization System 2. Create New Magento 2 Payment Methods → Eurobank * → Peiraius Bank * Note: Try to mimic native Magento payment methods and build your own logic inside them. * has been developed by

  24. Developing!– What I can do for that? Magento Modularization System 2. Create New Magento 2 analytics/marketing modules → Linkwise * → ContactPigeon* → Warply ** has been developed by

  25. Developing!– What I can do for that? Magento Modularization System 3. Feel free to change or extend the Magento application, with your own creativeness!!! (..create modules like ExtendCore, ExtendTheme…etc)Just Follow the rules!!!!

  26. Thank you! Christos StavrakisLeader PHP Web Developer

More Related