A WordPress Plugin Rewrite Challenge

I've been a fan of Joe Tan's Simple Spam Filter (SSF) almost since the day it was created. Regardless of that fact, it has some shortcomings that need to be fixed and I don't think I'm the person to do it. I just shot a message over to Stephen Cronin of More Than Scratch the Surface to see if his plate is full or not. He's the author of the DualFeeds plugin, which I use and the IFrameWidgets plugin, which I don't (because my theme doesn't have widget support).

Joe Tan conceived the SSF as a pre-filter for the Akismet plugin, which is bundled with WordPress. As a pre-filter, it stops comments from spambots that try to add comments containing common spam words like cialis, viagra and words I don't care to publish as open text. It scans the comment text, but not the comment headers. It uses Perl regular expressions to pluck the words from the text. Regular expressions are powerful when they're used in the way they're designed, but the average person can't make heads or tails of them. I believe the PHP functions of strstr or stristr (case sensitivity being the difference) would be better suited for finding words as well as complete phrases.

I don't have anything against Joe Tan, but he doesn't respond to comments well and I have yet to get a response to an email message I sent him. Of course, I can't be certain he received it. One item he didn't respond to in comments was the fact that some of the comment spam contains the same text in the comment author field as the first line of the comment text. It's pretty easy to spot but SSF doesn't check for it. Other comments that seem to pop up a lot are comments that end in "" (an ellipsis). It's a special HTML character (…) that no one in their right mind would type as comments, even if they could.

The plugin doesn't block comments; it merely requires you to confirm that you want to post that spammy word in your comments. It's a "sanity check" (in Joe's own words) to prevent the most common spam from getting through. It'll greatly reduce the amount of comments that appear in the Akismet filter results, saving a whole lot of time. I'm asking for someone to rewrite it to make it even better. Most of the spam showing up on my Akismet filter pages are those that I've mentioned, since the others have already been whacked by the plugin as it is. I would rewrite it myself, but I don't have the patience to test it and knowing myself, I would do something catastrophic and end up wiping out my blog or something.

Stephen isn't the only one who writes good plugins; he's just the first person that came to mind. I don't think his feelings would be hurt by anyone else stepping up to the plate and taking a swing at it. Are you up to the challenge?


Similar Posts:

22 Comments

  1. Wow, I guess this problem only comes when your blog is getting a lot of traffic and interactions huh?

    Good to know that if Askimet is not good enough, there are other alternatives. Thanks for the informative post.

  2. Vic says:

    Hi there,
    Know anyone which plugin to use if I want only the first part (first paragraph) of the article to be displayed? If someone want to read more there will be a "read more" link…
    On my blog right now is displayed all of article content and I don't want this…
    I'm talking about the latest 10 articles displayed on the first page of my blog.
    I'm using Wordpress.
    Can anyone help?

    Vic's last blog post… Toronto nights

  3. I would like to rewrite a plugin someday. The simple spam filter is a really nice wordpress plugin, but I think that askimet also works well.

    My latest blog post: Missouri Casenet – Court Records Site

  4. Yeah, some plugins definitely have their holes and need to be updated… some more than others. I have had issues with a few different Wordpress plugins that caused headaches, but for the most part the plugins available are very helpful and work well.

  5. Indeed, Wordpress plugins are far from perfect and youre idea is totally right.

  6. outblu says:

    I'm using Peter's Math Anti-Spam Image to prevent spam. It's works well. I've Akismet active at once and it's perfect. What can I want more??

    My latest blog post: Cum sa faci sa-ti apara poza pe blog?