I [sic] have to rethink the whole logic from scratch?
Not entirely, but the complexities make this harder that it appears.
"randomness" (0 - 100) which tells how random the bytes look (regardless of how much data we have)
This is still somewhat of an open question for the general case of auto-correlated samples. The simple Shannon $\log$ formula is no use whatsoever as it is impossible to adequately populate set $p_i$ of $-\sum p_i \log p_i$. Similarly $\chi^2$ values fail for exactly the same reason; defining the domain of the probability mass function for the sample distribution. Simple Shannon only works for uncorrelated data, like perhaps testing keys from good sources.
And for the same reason again, the more common measure of cryptographic entropy, min.entropy $(H_{\infty})$ is also very problematic in the general case. An example of how hard and varied general entropy measurement can be seen on this page. Many of those techniques are various forms of compression.
Anyway you'd have to shift your metrics away from 0 - 100, towards 0 - 1 bits/bit or 0 - 8 bits/byte of Shannon entropy. The measurement effectiveness is inversely related to the degree of auto-correlation (loosely).
"randomlike" (0.001 - 99.999) which tells the general likelihood of the whole data to be random (a combination of randomness and length).
This need to be changed to a $p$ value of the certainty that whatever randomness test suite (NIST STS, TestU01, diehard, dieharder, ent, AIS-31, pkzip, FIPS 140 etc.) you run is accurate. It ranges 0 - 1, and 'famously' we tend to exclude values within 1% - 5% of the tails (suite dependant). And you do get $p = 0.0005$ as false negatives because imagine an output domain like (it's a TRNG random walk):-

If you test the blue box, the data is appears highly biased and it fails. If you test the green box, as the data is uniform it passes. And yet it's a good TRNG overall. Randomness is pesky like that.
What does 50% randomness correspond to?
However you manage to measure the Shannon entropy, 50% $\equiv$ 0.5 bits/bit or 4 bits/byte. So there would be a half cup of stuff that varies unpredictably, and a half cup that remains constant/so auto-correlated that it might as well be constant.
The family of paq8
compressors are pretty efficient, and running your data through one will give you a good estimate of the amount of randomness but not a certainty for the reasons above.