I solved my problem by removing all the include_once, require_once in the index.php file (you will need to move all the content from included files to index.php of course). I don't know if it works on other plugins but in my plugin, it works.