Adding plugin component name to version.php

I have included the <b><i>$plugin->component</i></b> to <b>version.php</b> file. 
I got an issue when I tried to install the block in my Moodle version 2.4 with simple-space theme. After including the component name in the version file resolved the issue.