Probably this line: if (($size>=5) || !$scale)
Either you don't use the scale, or you only show tags with 5 or more uses.
Check out the logarithmic tag cloud, it's more flexible:
https://github.com/NoahY/q2a-log-tags