If you are not technical enough to check the work being delivered.
If you are hiring developers on Upwork (or anywhere really) to build your vision.
If you have anything brought anything into your codebase.
I really recommend performing a code audit to ensure a minimum level of quality and security.
The client doesn't care about the code.
That's a saying I have heard multiple times, and, well I tend to agree with it. In general you don't care. As long as it does what you expect, it is fine.
Is it ?
It may be when you are confident and trust that whoever writes the code, deploy the software, ... has your best interest in mind. That the person has the skills required, follows best practices and conventions, ...
If you have any doubt or concerns, I recommend a code audit could be beneficial, or at least some automatic checking.
The main elements to focus on would be :
I don't believe you should overdo it. Measure the benefits against the costs of policing everything. But I believe that you should always have a minimum set up that you ask your developers to follow as a condition for acceptance.
For most elements, it doesn't cost much to have. It can limit issues and facilitate future work. It can also be automated in a set up once, benefit for ever manner.