Modify and recompile from @vaishakbabu DoubleMesh code. To make it work on specified Maya version. The plug-in can help you select duplicate objects, and then you can choose to delete them to ensure that the scene file is clean and optimize.
- Download Maya devkit from https://www.autodesk.com/developer-network/platform-technologies/maya
- Extract in here C:\Program Files\Autodesk\Maya2018\devkit\devkitBase\devkit\
- Download ZIP and extract into C:\Program Files\Autodesk\Maya2018\devkit\devkitBase\devkit\plug-ins\detectDoubleMesh
- Compile in Visual Studio 2017.
Special thanks to @vaishakbabu`for his C++ open source code.