The Superhero Database Classification number, or SHDB Class, is a number that represents the overall 'power' of a character. All traits of a character are used for calculating the Classification.
What it DOESN'T mean
This doesn't mean that a higher class would always beat a lower class character. But the bigger the difference in Class is, the more obvious it is who'll win in a fight.
How is this calculated
( INT^1.3 + (STR*0.5 )^2 + (SPE*0.5)^2 + DUR^1.6 + (POW + (SPS*SPL))^2 + COM^1.8 ) ^ TIER
Super Power Score and Level
Every Super Power has a score (SPS) that is used to calculate the Class. Each Super Power also has 3 levels (SPL). The level is set when connecting that Super Power to a character. The level determines the final score, of the Super Power, being used in the calculation.
I'm gonna say ultron can definitely take prime out.
strength: Optimus takes it with being able to lift objects 4,000,000 pounds while Ultron is only able to lift 200,000 pounds
Intelligence: Optimus takes this because the matrix gives him all the knowledge of the primes. the primes are tier 8 nigh-omniscience beings btw
Durability: Optimus takes it by being able to withstand Regenesis shockwave, who was a literal god at that point.
Combat: Optimus takes it with his 2 million year war experience.
weapons: Optimus takes it with the star saber which is able to cut a planet in half.
Winner: Optimus Prime mid diff