Technical audit · Ruby on Rails
Ruby on Rails code audit of your application
Rails version, gems, conventions, architecture, tests, performance: our Ruby on Rails developers inspect your application’s code and give you recommendations ranked by benefit and effort, so you can decide on the work to undertake.
Definition
What is a Ruby on Rails audit?
A Ruby on Rails audit is a factual review of the code of an application written with the Rails framework: website, online shop, extranet or business application. It compares the current snapshot of the application with your objectives, to avoid unjustified investment and prepare future changes with confidence.
It is the Ruby on Rails version of our technical application and code audit. It is carried out by the team at our Ruby on Rails agency, which develops and maintains Rails applications every day.
When to audit
Six situations where a Rails audit is essential
The audit comes at a decision point: take over, fix, upgrade or redevelop.
An outdated Rails version
Your application runs on an old version of Rails or Ruby that no longer receives security patches.
Abandoned gems
Dependencies are no longer maintained, block upgrades or have known vulnerabilities.
A change of provider
The application was developed by another team: the audit tells you what condition you are inheriting it in, as with the Molli shop.
Costly changes
Every change takes time and causes regressions elsewhere in the application.
Slowness
Slow pages, cascading queries, processes that overload the server: the audit identifies the causes.
Before an upgrade or a redevelopment
It is better to know the existing system precisely before investing in a new version.
Scope
What we analyse in your Rails application
The detailed analysis is based on these indicators and on your objectives for the application.
Rails and Ruby versions
Framework version used, gap with maintained versions, upgrade path.
Gems and dependencies
Outdated, abandoned or vulnerable gems, dependencies that block upgrades.
Rails conventions
Compliance with the practices and conventions adopted in Ruby on Rails development.
Architecture
Organisation of models, controllers, services and background jobs; business logic in the right place.
Database
Schema, indexes, migrations, repeated or overly heavy queries.
Tests
Coverage of written unit and functional tests, ability to change without regressions.
Security
Points of attention on access, incoming parameters, authentication and permissions.
Performance
Response times, caching, background processing, behaviour under load.
Deployment
Environments, continuous integration, release procedures.
Example
Recommendations ranked by benefit and effort
The aim of the audit is to give you the ability to make the best decisions about the corrective and evolutive aspects of your application.
Each recommendation is assessed by expected benefit and required effort. You know what needs doing straight away, what to schedule, and what can wait.
Request a Ruby on Rails auditDo straight awayHigh benefit · low effort
- Update gems with known vulnerabilities
- Remove cascading queries from the order list
ScheduleHigh benefit · high effort
- Upgrade Rails in stages
- Cover the invoicing rules with tests
As you goLow benefit · low effort
- Bring a few classes back in line with Rails conventions
ReconsiderLow benefit · high effort
- Rewrite an import module that still works reliably
Fictitious example to illustrate prioritisation: recommendations depend on each application.
Prerequisites
What we need to get started
The audit requires access to the application’s code. We carry out Ruby on Rails audits of applications and websites, whatever your sector.
The source code
Access to your source code manager, such as Git.
The documentation
Existing technical and project documentation.
The environments
If necessary, access to the servers and hosting.
The project culture
Anything that helps us understand the application, its users and your objectives.
Approach
How the audit works
- 1
Scope
Your objectives, the decisions to prepare and access to the code, documentation and environments.
- 2
Analyse
Our Rails developers read the code, supported by analysis and measurement tools.
- 3
Prioritise
Each recommendation is ranked by expected benefit and required effort.
- 4
Report back
A debrief workshop presents the audit summary to you and the relevant members of your team.
Case study
Molli: the audit, first step of the takeover
To take over maintenance of Maison Molli’s e-commerce site, developed by another team, we began with a complete technical audit of the existing system. The analysis covered in particular the quality of the development and compliance with Ruby on Rails best practices.
This review made it possible to formulate recommendations and prioritise the first corrective maintenance operations, including fixing bugs affecting stock management.
After the audit
What next?
The report belongs to you: you can hand it to your team. If you wish, Idéematic will take on the work you choose.
Fix
Our Ruby on Rails developers can handle the fixes you choose, as part of corrective and evolutive maintenance.
Upgrade
Upgrading Rails, Ruby and the gems is planned in stages, backed by tests.
Evolve
You restart on a favourable footing to develop the new needs identified.
Frequently asked questions
What does a Ruby on Rails audit check?
The Rails and Ruby versions, gems and dependencies, compliance with Rails conventions, architecture, database, test coverage, security, performance and deployment. Each finding leads to a recommendation ranked by benefit and effort.
Can you audit a Rails application developed by another team?
Yes. That is what we did for the Molli online shop before taking over its maintenance. All you need to do is give us access to the source code and, if possible, the documentation and environments.
Our application uses an old version of Rails: is that a problem?
Not for the audit, quite the opposite: it measures the gap with the maintained versions and proposes a step-by-step upgrade path, taking into account the gems that block the upgrade.
What do we receive at the end of the audit?
A summary of the findings and recommendations prioritised by benefit and effort, presented at a debrief workshop with your team.
How does it differ from the technical audit?
The Ruby on Rails audit is the technical audit applied to a Rails application: it goes into the specifics of the framework, its conventions and its gems. For another technology, see our technical application audit.
Can you carry out the fixes after the audit?
Yes, if you wish. Our Ruby on Rails developers can take on the work you choose, as part of application maintenance and support.
Want your Ruby on Rails application audited?
Tell us about your application, its Rails version and your objectives: we will propose a suitable audit scope.
