The cylinder was larger than I expected in person (6 inches).  The adjustable stem means that the cord is very long, so be prepared to cut and strip the wire in order to make it fit if your ceiling isn't very high