Yes it will be good idea to replace the smoke dectetor every 10 years because the sensor chamber over the time it will reduce the senevity to the point it will not able function anymore.
basically every year the smoke dectors i check i always write a date on it and what i useally do is change the back up battery [ if have it ] check the connection, check the cleanness see if alot of smoke or dust or derbies or even somesorta of critter living in there.
i take one of the spraycan that have only compressed air only and give them a quick puff noting more useally that will kick alot of dust out of it but smoky film that diffrent i just go ahead and swap unit no question asked.
Wisconsin and Paris France
"Pas de problème, il marche n'est-ce pas?" (No problem, it works doesn't it?)