Keep it scannable
Around 20 to 25% of the code's width is a safe logo size. Leave a little space around it, keep strong contrast between the code and its background, and watch the scan check under the preview: it reads every design back like a phone would.