Why Magento Code Audit Is Important For Magento Developers

About This Presentation
Title:

Why Magento Code Audit Is Important For Magento Developers

Description:

Magento Website code audit is a summary of a website's database and code to determine possible bugs, bottlenecks etc.. The consequence of an audit is a report outlining areas that have to be improved and a roadmap explaining how to implement necessary changes, which is really helpful for magento developers for the further changes. – PowerPoint PPT presentation

Number of Views:16

less

Transcript and Presenter's Notes

Title: Why Magento Code Audit Is Important For Magento Developers


1
Why Magento Code Audit Is Important For Magento
Developers
Hire Magento Developers From Dev Technosys
2
Introduction
  • A code audit is a summary of a website's database
    and code to determine possible bugs, bottlenecks
    etc.. The consequence of an audit is a report
    outlining areas that have to be improved and a
    roadmap explaining how to implement necessary
    changes.

3
Why Do You Need an Audit Magento website
Development?
  • A Magento website audit can help if your shopping
    site is suffering from any of the following
  • High maintenance costs
  • Slow loading times for your site
  • Difficulty to upgrade latest version of Magento
  • Regular system crashes and errors

4
What are we looking for?
5
Core File Overrides
  • When developing a Magento extension that attempts
    to modify core behavior it's best practice to
    utilise event observers. Unfortunately, this is
    not always possible and so it may be necessary to
    utilize an override. This is a possibly debatable
    practice as it might lead to incompatibilities
    between different extensions that are attempting
    to override the same code.
  • When a Magento developer is made to use an
    override, it is also important to ensure that
    only necessary code is overridden very often a
    programmer will copy the whole core file into a
    local codepool file when they only have to change
    a single line. This may lead to issues when
    attempting to update the Magento installation, as
    the override will still be in place and some
    other repairs (e.g. bugs, security fixes etc.)
    will probably be ignored.
  •  
  • We will prepare a report regarding the center
    file overrides currently in place inside the your
    codebase, identify conflicts between installed
    extensions, and make suggestions regarding how
    any debatable overrides can be altered to prevent
    possible problems and keep the codebase
    maintainable.

6
Core File Modifications
  • Another method that some Programmers Fall back
    on is to alter the center codepool files to
    inject their desired changes. This is not a
    suitable solution, as when the time comes to
    upgrade the Magento codebase to another version,
    the core file alterations will be uninstalled and
    automatic behavior is going to be lost
    potentially leading to a time-consuming
    evaluation.
  • We'll identify any core Modifications currently
    within the codebase, identify the programmer's
    the reason For these alterations, and propose a
    better alternative.

7
Coding Standards
  • We will use automated and manual investigation
    to evaluate the current status of the local and
    community codepools. These evaluations will
    identify areas for improvement with respect to
    adhering to Magento coding standards and we will
    propose changes that may be made to make the
    codebase compliant.

Read the Article Why Magento is the Best Choice
for Online Store development?
8
Templates
  • Magento's templating system is Block-based,
    which means that the code within templates must
    be stored as light as Possible with the majority
    of business logic being siphoned into Block
    classes. The advantages of this are
  • Easier for non- backend-developers to focus on
    presentation
  • Reduced code duplication in multi-store systems
  • Less chance of unnecessary legacy code remaining
    in code-base
  • Better caching for faster page load times

9
Profiling
  • Profiling is a technique used to identify
    inefficiencies within an application by
    monitoring each function call and recording the
    duration of each individual's implementation.
    This permits you to locate bottlenecks in the
    application (e.g. slow database queries) and
    determine how to fix them.
  • Using the information gathered from these tests
    we'll identify areas that we believe are
    contributing to the slow page-speeds being
    experienced with clients. Additionally, we will
    recommend solutions to the issues and add an
    estimate for each.

10
3rd Party Extensions
  • Our programmers will look at the respective
    modules which were installed on your Magento
    shop. We'll make sure that the modules are
    following best practices and are not affecting
    the performance of your site negatively.

11
Case Study
  • Our client was undergoing extremely slow load
    times in their live website occasionally around
    12 seconds per petition. Almost immediately we
    could determine that the problem lay with a
    popular extension's anti-piracy alternative. In
    an effort to stop unauthorized Magento stores
    from using their extension they were implementing
    a request to their servers for affirmation.
    Unfortunately, their host has been experiencing
    it's own performance problems and preventing our
    client's website from loading quickly.
  • Having identified the issue, we were able to
    indicate an alternative 3rd party extension
    offering the very same features but without the
    ideal practice offenses. Our client instantly saw
    their page speed times reduce from 12 seconds to
    2 seconds per request.

12
Conclusion
  • After we have performed the audit, we'll supply
    you with a report detailing the numerous issues
    existing in your site. For each issue we will
    also include an estimate of the time that we
    think it will take to execute a solution. By
    obeying the improvements we believe will yield
    the best results, we will present you with a
    roadmap outlining the next actions you should
    take if you decide to proceed.

13
(No Transcript)
14
(No Transcript)
Write a Comment
User Comments (0)