Does Google's ranking algorithms look at the code to text ratio on your web pages? The quick answer is no and it is one of those old SEO questions people have been asking for ever. Google does not care if you have a lot of code on your web page, it doesn't matter to them these days.
The question came up again at the 18:43 mark into the video where the SEO asked "Is there any term like text to code ratio in SEO?"
John Mueller of Google said "no." He explained that some sites use more HTML, some sites use less, it is a design thing, not a content thing.
Here is what he said:
No. We we don't use anything like text to code when it comes to Google search. We especially pick up the visible content on the page and we use that. Some pages have a lot more HTML, some pages have a lot less HTML. That's more a matter of your kind of design preferences, how you set things up on your site.
Here is the video embed at the start time:
Forum discussion at YouTube.