I think that's too pessimistic. With less than 5 years experience, and having made some less-than-optimal career decisions, I've got about £45,000 total compensation. (Central Belt, Scotland)
Do you work in finance perchance? Most dev salaries in Scotland are not that good with just 5y experience, but finance sector jobs seem to generally come with higher salaries. I have 15y experience, working in Aberdeen (which has a much higher CoL than the central belt) and am on 55k - which is pretty much the top end