[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog
You are here: Home / WordPress plugins from oik-plugins / FREE oik plugins / oik-bwtrace – debug trace for WordPress / Deprecated or deleted or legacy logic and documentation / oik-bwtrace action and filter trace file – bwaction.loh – Deprecated

oik-bwtrace action and filter trace file – bwaction.loh – Deprecated

No longer relevant. This functionality has been replaced by Count action hooks and filters.

The oik-bwtrace action and filter output file lists the actions and filters invoked on your WordPress server. We use the name bwaction.loh. The format of each record is:

  • timestamp – with microseconds
  • action start or end indicator
  • trace record count
  • current filter
  • context

The action start or end indicator values are:

  • <S = Action start
  • E> = Action end
  • <I = Immediate action start
  • I> = Immediate action end

Here is a sample showing the start of “init” processing.

2012-12-20 10:02:59 0.71846600 <I 711 cf! do_action init
2012-12-20 10:02:59 0.71975400 <S 712 cf=init
2012-12-20 10:02:59 0.72103000 <I 713 cf=init apply_filters gettext_with_context

In these examples we have both action and Immediate action tracing enabled. Note: You cannot perform Immediate action tracing without also having selected Action tracing.

Here are excerpts of the matching trace records from bwtrace.loh

711 cf! 0 16836880/17396408 do_action(74) init
712 cf=init 0 16837880/17396408 bw_trace_action_start(26) arg1
713 cf=init 0 16838160/17396408 apply_filters(1250) gettext_with_context Post

Nearly 900 trace records later we find the end of “init” processing

2012-12-20 10:03:01 0.63814200 E> 1611 cf=init
2012-12-20 10:03:01 0.64196800 I> 1612 cf! do_action init

Clearly there’s a lot of processing in “init”. Further analysis of the action log for this particular part of the transaction reveals the following. Of the 870 action or filter records, only 18 of the calls were actually hooked into by the active plugins. These were:

  • init – obviously
  • oik_fields_loaded
  • oik_loaded
  • option_blog_charset
  • option_category_base – called 3 times
  • option_home
  • option_siteurl – called 5 times
  • option_tag_base – called 2 times
  • widgets_init
  • wp_default_scripts
  • wp_default_styles

So that meant there were 800 Immediate action trace records (produced by calls to do_action(), apply_filters(), do_action_ref_array() or apply_filters_ref_array()) for which no hook had been added. Those called more than once were:

Hook Invocations
gettext 482
gettext_with_context 119
wp_register_sidebar_widget 70
sanitize_key 22
registered_post_type 14
attribute_escape 8
registered_taxonomy 5
pre_option_siteurl 5
pre_option_cron 4
option_cron 4
site_url 4
pre_option_category_base 3
pre_option_tag_base 2
includes_url 2

Leaving 56 other actions/filters called once each.

Published: December 20, 2012 | Last updated: December 3, 2019

Information

Component:
  • oik-bwtrace – debug trace for WordPress
Letters: O

Recent plugin updates

oik-themes v1.4.0 

Update to oik-themes v1.4.0 to support Full Site Editing (FSE) themes. FSE themes, which are currently experimental, deliver block based templates and template parts.

 ...
oik-clone v2.0.1 oik-clone v2.0.1 contains a fix for a 500 internal server error being produced when cloning content with certain taxonomy terms. ...
SB Chart block v0.1.1 

Update to SB Chart block v0.1.1 for improved enqueing of the chart.js Javascript and better colours in the Gutenberg palette.

 ...
Slog v1.3.1 

Update to Slog v1.3.1 for a new Driver tab and improved display of charts grouping Elapsed times.

 ...
SB-Chart-Block v0.0.8 SB-Chart-Block v0.0.8, a WordPress single block plugin, supports 4 different chart types; Line, Bar, Horizontal bar and Pie. ...

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: [email protected]

Weight shipping plugins

Find out which cart weight shipping plugin you need for your WooCommerce site.
Which cart weight based plugin do I need?

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2021. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins