Term: kludge
Example: this code is a total kludge
Definition: bad code that works but is barely readable, overly complex and unmaintainable