What is this plastic insert inside of copper pipe?
It's a flow restrictor. They are usually installed in shower heads or other types of plumbing fixtures. It was probably left in a tool box and found it's way into the pipe or was intentionally not installed... I hated those things.