I understand that fighters inflict more damage on objects of greater mass. Is it worthwhile therefore to increase a starbases' defences (which increases its mass) if expecting a fighter bases attack?
What ISO--T said. And yes, it's also true for bases.
There's a lot of complex information available on the subject, if you don't mind reading. I'd recommend "Master At Arms" to start with, from the Links page of the documentation.