Such questions are not strictly disallowed here (I think), they are asked and answered from time to time, if they ask about a very specific part of some code. When it's just a huge code dump, asking how to improve it, your question will quickly gather downvotes and close votes.
There is a site specifically created for this, however: Code Review Stack Exchange
Take a look at What topics can I ask about here? for details on the kind of questions you can ask on Code Review. Below is a summary, taken from that page:
I'm confused! What questions are on-topic for this site?
Simply ask yourself the following questions. To be on-topic the answer
must be "yes" to all questions:
- Is code included directly in my question? (See Make sure you include your code in your question below.)
- Am I an owner or maintainer of the code?
- Is it actual code from a project rather than pseudo-code or example code?
- Do I want the code to be good code? (i.e. not code-golfing, obfuscation, or similar)
- To the best of my knowledge, does the code work as intended?
- Do I want feedback about any or all facets of the code?
If you answered "yes" to all the above questions, your question is
on-topic for Code Review.