Plugin Reviews

Code Snippets

An easy, clean and simple way to add code snippets to your site.

2 reviews
Average Rating
4.8 out of 5 stars
You are currently viewing the reviews that provided a rating of 1 star. Click here to see all reviews.
No easy way to fix fatal errors in code;
By ,

If you accidentally write some bad code in one of your snippets, and it causes a fatal error, then the server will only display the fatal error message and there is no way to get back to the wp-admin menu to either disable the snippet, fix the code, or disable the plugin. And furthermore, because snippets stores your code in the MySQL database, there is no easy way to fix it to restore the site to a working condition. I am resorting to restore a back-up of my site to resolve the problem.


I just learned the hard way that storing code in the WP MySQL database is never a good idea.

I am now moving all of my snippets out of "Code Snippets" and back into either the functions.php file or another so that this doesn't happen again.

Another less troubling problem with this plugin is that you can't grep for anything in the code snippets that you have written among the rest of your code, because it is in the database instead.

I'd just recommend staying away from Code Snippets until they start storing your code with the rest of your site code. (if they want to implement a git repository, I think that might be a good thing).

WordPress breaks after running phpinfo()
By , for WP 3.6

I was able to install this plugin successfully. I created only one snippet as such:

NAME: phpinfo


Upon clicking "save and activate" I get this error:

Fatal error: Call to undefined function info() in /home/www/ehepperle.com/sites/ehw/codeslayer2010/wp-content/plugins/code-snippets/code-snippets.php(1030) : eval()'d code on line 1

When I subsequently tried to deactivate it, I jumps to that error. When I then tried to just delete it, jumps to that error again.

Basicall, my whole WordPress install is broke because this plugin won't uninstall, deactive, leave, nor un-do in any sort of way. I had high hopes for it, but unfortunately cannot recommend it due to it breaking my WordPress.

You must log in to submit a review. You can also log in or register using the form near the top of this page.