Higher rank items take more heat to level, and each level requires more heat to reach than the previous one. Deeper depths provide more heat, levelling your equipment faster. While 5 star equips aren't at their full potential at shallow depths, they're usually still more powerful than a comperable item of a lower rank.
Your weapon's level only makes a minor difference in its effectiveness, unless you rely on its charge attack a lot.