> FeedWordPress Duplicate Post Filter wordpress plugin resources analysis

FeedWordPress Duplicate Post Filter wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name FeedWordPress Duplicate Post Filter
Version 1.5
Author Mark Allen
Rating 0
Last updated 2012-02-15 04:29:00
Downloads
36537
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
FeedWordPress Duplicate Post Filter plugin has no negative impact on PageSpeed score.

Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%

FeedWordPress Duplicate Post Filter plugin added 13 bytes of resources to the Home page and 27 bytes of resources to the sample Post page.

FeedWordPress Duplicate Post Filter plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! FeedWordPress Duplicate Post Filter plugin ads no tables to your Wordpress blog database.

This is a filter for the FeedWordPress plugin. If you don't use FeedWordPress this plugin will not be useful to you.

I wrote this filter after seeing the same post in my database 32 times. Maybe you've had the same problem, and I hope this filter helps you solve it.

The filter works by hooking the "syndicated_post" action of FeedWordPress and the "save_post" action in the core of WordPress.

For each potential post from a feed, the plugin attempts to find an identical SHA1 hash of the first 1024 non-whitespace characters (stripped of HTML tags) of the post content. If it finds a match the post is skipped. If not, the post is processed and a hash is inserted into the post's metadata. (Stored as key _dpf.)

NOTE: No filter is going to be 100% accurate. This filter will stop most or some duplicates, but in all likelihood, will not stop all of them. If you want a filter that stops all duplicates, this isn't your solution. In my test installation I had 5 posted duplicates out of 125 syndicated posts (4% false negative) out of a corpus of about 300 duplicates. Most of those false negatives were due to slightly different HTML markup in the post content itself. So my approach isn't perfect, but it is "good enough" for me.

Resources added by plugin to Home page/Post page in kB
Total size of resources for Home page/Post page in kB
Random Theme Tests
Babylog screenshot

Babylog

by: sixhours

29111
100%
Business Casual screenshot

Business Casual

by: cpoteet

22255
0%