> Text Replace wordpress plugin resources analysis

Text Replace wordpress plugin resources analysis

Download This Plugin
Download Elegant Themes
Name Text Replace
Version 3.6.1
Author Scott Reilly
Rating 80
Last updated 2015-02-19 07:28:00
Downloads
27267
Download Plugins Speed Test plugin for Wordpress

Home page

Delta: 0%

Post page

Delta: 0%
Text Replace 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%

Text Replace plugin added 6 bytes of resources to the Home page and 7 bytes of resources to the sample Post page.

Text Replace plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.

Great! Text Replace plugin ads no tables to your Wordpress blog database.

This plugin allows you to easily define text or HTML that should be used in your posts in place of words or phrases that are actually present in the posts. This is a handy technique for creating shortcuts to common, lengthy, or frequently changing text/HTML, or for smilies.

Additional features of the plugin controlled both via settings and filters:

  • Text replacement can be enabled for comments (it isn't by default)
  • Text replacement can be made case insensitive (it is case sensitive by default)
  • Text replacement can be limited to doing only one replacement per term, per post (by default, all occurrences of a term are replaced)

A few things to keep these things in mind:

  • Your best bet with defining shortcuts is to define something that would never otherwise appear in your text. For instance, bookend the shortcut with colons:
:wp: => <a href='https://wordpress.org'>WordPress</a>
:aol: => <a href='http://www.aol.com'>America Online, Inc.</a>

Otherwise, you risk proper but undesired replacements:

Hi => Hello

Would have the effect of changing "His majesty" to "Hellos majesty".

  • List the more specific matches early, to avoid stomping on another of your shortcuts. For example, if you have both
:p

and :pout: as shortcuts, put :pout: first, otherwise, the :p will match against all the :pout: in your text.

  • If you intend to use this plugin to handle smilies, you should probably disable WordPress's default smilie handler.

  • This plugin is set to filter the_content, the_excerpt, widget_text, and optionally, get_comment_text and get_comment_excerpt. The filter 'c2c_text_replace_filters' can be used to add or modify the list of filters affected.

  • Text inside of HTML tags (such as tag names and attributes) will not be matched. So, for example, you can't expect the :mycss: shortcut to work in: <a href="" :mycss:>text</a>.'.

  • SPECIAL CONSIDERATION: Be aware that the shortcut text that you use in your posts will be stored that way in the database (naturally). While calls to display the posts will see the filtered, text replaced version, anything that operates directly on the database will not see the expanded replacement text. So if you only ever referred to "America Online" as ":aol:" (where ":aol:" => "America Online"), visitors to your site will see the linked, expanded text due to the text replace, but a database search would never turn up a match for "America Online".

  • However, a benefit of the replacement text not being saved to the database and instead evaluated when the data is being loaded into a web page is that if the replacement text is modified, all pages making use of the shortcut will henceforth use the updated replacement text.

Links: Plugin Homepage | Plugin Directory Page | Author Homepage

Screenshots

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
WPElegance2Col screenshot

WPElegance2Col

by: Rajesh Babu

13889
0%
No Nonsense screenshot

No Nonsense

by: danielpataki

1933
0%