sniplets VS exec-php

sniplets是一款我用了很久的插件,特点是功能很强大,可以在post或者page里执行php语句,也可以高亮显示代码,还可以做一些我用不到的事,整个后台操作也是基于AJAX的。当然,有如此强大功能的插件,体积也不会小,每次都要加载60多KB的js,而且,它还要在数据库里独占一张表,备份数据库都不能忘了它。

还有,sniplets升级到1.0版之后(现在的最新版本是1.2.4),整个插件完全变了样,变得更强大了,当然也更臃肿了。我在测试环境里装过两次,两次都出现了问题。更糟的是,新版跟以前的版本不兼容了,原先创建的sniplets在新版里竟然识别不出来。我只是为了能执行几个php语句,能贴几段代码,但是新版却让人很难上手。所以,不管官方的版本如何升级,我真正用的还是旧版本,好像还是0.3多少的。为了不让插件管理页面老是提醒有新版本需要升级,我干脆自己把版本号修改到了2.0.0,世界从此安静了。

exec-php是近期才开始装上的,以前也听说过一两次。既然决定要舍弃sniplets了,总得找个能执行php语句的办法来生成首页链接页面啊,于是,就用上了exec-php。执行php代码它当然没有任何问题,而且是直接写在HTML模式的编辑器里的,不像sniplets那样要通过引用的办法来实现。不过exec-php不能高亮显示代码,算了,反正我也很少贴代码的,高不高亮就无所谓了。

在Google上搜索wordpress sniplets,大部分的搜索结果都是:

WordPress Sniplets插件多个输入验证漏洞

sniplets VS exec-php》有4个想法

  1. PJP 文章作者

    Thanks for your response.

    My main point is that although exec-php is less powerful than sniplets in function,but more smaller,more conducive to load web pages,and relatively easy to use.The only regret is that exec-php can’t highlight the codes like sniplets.

    I have disabled sniplets and begin to use exec-php in stead of it from today.

    回复
  2. S?ren

    Hey PJP, thanks for the answer. In case where blog security does matters (eg. blogs with untrusted users) I would recommend Snipplets instead.

    I haven’t found out about Snipplets code highlighting feature. I guess I have to reevaluate this 😉

    Thanks and happy blogging, S?ren

    回复
  3. Tad Suiter

    Thanks for posting this. I, too, had to resort to Google’s translation tool, but I think I get the general idea.

    I’m currently trying to decide between these two plugins, and yours seems to be the only review that compares the two. Thank you for writing such a useful post.

    回复

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

+ 72 = 78