wppaste

ReferenceCost rankingsHeaviest single call

WordPress 7.1.0PHP 8.4top 100

Heaviest single call

Ranked by the most Zend VM instructions one call can execute. This is how much work the function does itself, before it delegates: not a timing, and not a verdict on speed, since a single database call outweighs a thousand assignments.

Counted from the compiled opcodes, identical on any machine running the same PHP version. How this is measured.

  1. 1
    wp_default_scripts()

    Registers all WordPress scripts.

    queryoptionhook
    2,372instructions
  2. 2
    wp_print_media_templates()

    Prints the templates used in the media manager.

    queryoptionhookloops
    1,057instructions
  3. 3
    create_initial_post_types()

    Creates the initial post types when 'init' action is fired.

    queryoptionhook
    964instructions
  4. 4
    wp_enqueue_media()

    Enqueues all scripts, styles, settings, and templates necessary to use all media JS APIs.

    queryoptionhook7 callers
    682instructions
  5. 5
    wp_image_editor()

    Loads the WP image-editing interface.

    queryoptionhook2 callers
    541instructions
  6. 6
    wp_default_styles()

    Assigns default styles to $styles object.

    queryoptionhookloops
    531instructions
  7. 7
    wp_nav_menu_item_post_type_meta_box()

    Displays a meta box for a post type menu item.

    sqlqueryoptionhook
    512instructions
  8. 8
    comment_form()

    Outputs a complete commenting form for use within a template.

    queryoptionhookloops2 callers
    492instructions
  9. 9
    wp_nav_menu_item_taxonomy_meta_box()

    Displays a meta box for a taxonomy menu item.

    queryoptionhook
    477instructions
  10. 10
    twenty_twenty_one_register_block_pattern()

    Registers Block Patterns.

    queryoptionhook
    456instructions
  11. 11
    wp_insert_post()

    Inserts or updates a post in the database.

    sqlqueryoptionhook21 callers
    429instructions
  12. 12
    wp_install_defaults()

    Creates the initial content for a newly-installed site.

    sqlqueryoptionhook3 callers
    417instructions
  13. 13
    twenty_twenty_one_setup()

    Sets up theme defaults and registers support for various WordPress features.

    queryoptionhook
    406instructions
  14. 14
    wp_privacy_generate_personal_data_export_file()

    Generate the personal data export file.

    filesystemqueryoptionhookloops
    389instructions
  15. 15
    render_block_core_latest_posts()

    Renders the `core/latest-posts` block on server.

    queryoptionhookloops
    382instructions
  16. 16
    post_submit_meta_box()

    Displays post submit form fields.

    queryoptionhook
    377instructions
  17. 17
    block_core_social_link_services()

    Returns the SVG for social link.

    queryoptionhook2 callers
    367instructions
  18. 18
    wp_insert_user()

    Inserts a user into the database.

    sqlqueryoptionhookloops4 callers
    355instructions
  19. 19
    _wp_dashboard_recent_comments_row()

    Outputs a row for the Recent Comments widget.

    queryoptionhookloops2 callers
    351instructions
  20. 20
    create_initial_taxonomies()

    Creates the initial taxonomies.

    queryoptionhook
    342instructions
  21. 21
    network_step2()

    Prints step 2 for Network installation process.

    httpfilesystemsqlqueryloops
    340instructions
  22. 22
    wp_prepare_attachment_for_js()

    Prepares an attachment post object for JS, where it is expected to be JSON-encoded and fit into an Attachment model.

    queryoptionhookloops7 callers
    325instructions
  23. 23
    get_calendar()

    Displays calendar with days that have posts as links.

    sqlqueryoptionhookloops2 callers
    323instructions
  24. 24
    request_filesystem_credentials()

    Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.

    queryoptionhookloops12 callers
    323instructions
  25. 25
    wp_edit_theme_plugin_file()

    Attempts to edit a file for a theme or plugin.

    httpfilesystemqueryoption1 caller
    321instructions
  26. 26
    wp_update_term()

    Updates term based on arguments provided.

    sqlqueryoptionhook8 callers
    321instructions
  27. 27
    wp_insert_term()

    Adds a new term to the database.

    sqlqueryoptionhook11 callers
    319instructions
  28. 28
    customize_themes_print_templates()

    Prints JS templates for the theme-browsing UI in the Customizer.

    queryoptionhook
    315instructions
  29. 29
    twentytwenty_get_starter_content()

    Returns the array of starter content for the theme.

    queryoptionhook1 caller
    311instructions
  30. 30
    get_theme_starter_content()

    Expands a theme's starter content configuration using core-provided data.

    queryoptionhookloops1 caller
    307instructions
  31. 31
    wp_update_user()

    Updates a user in the database.

    mailqueryoptionhookloops6 callers
    305instructions
  32. 32
    network_step1()

    Prints step 1 for Network installation process.

    queryoptionhook
    303instructions
  33. 33
    twentyfifteen_setup()

    Sets up theme defaults and registers support for various WordPress features.

    queryoptionhook
    296instructions
  34. 34
    media_upload_library_form()

    Outputs the legacy media upload form for the media library.

    sqlqueryoptionhookloops
    293instructions
  35. 35
    install_plugin_information()

    Displays plugin information in dialog box form.

    httpqueryoptionhookloops
    292instructions
  36. 36
    wp_update_nav_menu_item()

    Saves the properties of a menu item or create a new one.

    queryoptionhook6 callers
    292instructions
  37. 37
    update_core()

    Upgrades the core of WordPress.

    httpfilesystemsqlqueryloops1 caller
    286instructions
  38. 38
    get_media_item()

    Retrieves HTML form for modifying the image attachment.

    queryoptionhookloops1 caller
    284instructions
  39. 39
    _register_core_block_patterns_and_categories()

    Registers the core block patterns and categories.

    queryoptionhookloops
    283instructions
  40. 40
    wptexturize()

    Replaces common plain text characters with formatted entities.

    queryoptionhookloops9 callers
    279instructions
  41. 41
    wp_render_layout_support_flag()

    Renders the layout config to the block wrapper.

    queryoptionhookloops
    276instructions
  42. 42
    link_xfn_meta_box()

    Displays XFN form fields.

    queryoptionhook
    274instructions
  43. 43
    get_block_editor_settings()

    Returns the contextualized block editor settings for a selected editor context.

    httpqueryoptionhook1 caller
    274instructions
  44. 44
    populate_network()

    Populate network settings.

    httpsqlqueryoption
    269instructions
  45. 45
    render_block_core_search()

    Dynamically renders the `core/search` block.

    queryoptionhook
    269instructions
  46. 46
    twentyeleven_setup()

    Sets up theme defaults and registers support for various WordPress features.

    queryoptionhook
    269instructions
  47. 47
    redirect_canonical()

    Redirects incoming links to the proper URL based on the site url.

    queryoptionhook1 caller
    268instructions
  48. 48
    wp_default_packages_inline_scripts()

    Adds inline scripts required for the WordPress JavaScript packages.

    queryoptionhook1 caller
    262instructions
  49. 49
    wp_save_image()

    Saves image to post, along with enqueued changes in `$_REQUEST['history']`.

    filesystemqueryoptionhookloops1 caller
    262instructions
  50. 50
    wp_ajax_wp_privacy_erase_personal_data()

    Handles erasing personal data via AJAX.

    queryoptionhook
    260instructions
  51. 51
    retrieve_password()

    Handles sending a password retrieval email to a user.

    mailqueryoptionhook1 caller
    256instructions
  52. 52
    export_wp()

    Generates the WXR export file for download.

    sqlqueryoptionhookloops
    253instructions
  53. 53
    wp_clear_auth_cookie()

    Removes all of the cookies associated with authentication.

    queryhook3 callers
    253instructions
  54. 54
    display_setup_form()

    Displays installer setup form.

    sqlqueryoptionhook
    249instructions
  55. 55
    login_header()

    Outputs the login page header.

    queryoptionhookloops
    247instructions
  56. 56
    get_adjacent_post()

    Retrieves the adjacent post.

    sqlqueryoptionhookloops7 callers
    244instructions
  57. 57
    block_core_image_render_lightbox()

    Adds the directives and layout needed for the lightbox behavior.

    queryoptionhook
    243instructions
  58. 58
    wp_initialize_site()

    Runs the initialization routine for a given site.

    queryoptionhook
    242instructions
  59. 59
    populate_options()

    Create WordPress options and set the default values.

    sqlqueryoptionhookloops4 callers
    242instructions
  60. 60
    register_and_do_post_meta_boxes()

    Registers the default post meta boxes, and runs the `do_meta_boxes` actions.

    queryoptionhook
    239instructions
  61. 61
    wpmu_validate_user_signup()

    Sanitizes and validates data required for a user sign-up.

    sqlqueryoptionhook3 callers
    237instructions
  62. 62
    wp_ajax_wp_privacy_export_personal_data()

    Handles exporting a user's personal data via AJAX.

    queryoptionhook
    235instructions
  63. 63
    wp_delete_term()

    Removes a term from the database.

    sqlqueryoptionhookloops7 callers
    234instructions
  64. 64
    paginate_links()

    Retrieves paginated links for archive post pages.

    queryoptionhookloops8 callers
    233instructions
  65. 65
    register_initial_settings()

    Registers default settings available in WordPress.

    queryoptionhook
    232instructions
  66. 66
    wp_widget_control()

    Meta widget used to display the control form for a widget.

    queryoptionhook2 callers
    232instructions
  67. 67
    populate_roles_160()

    Create the roles for WordPress 2.0

    2 callers
    230instructions
  68. 68
    wp_ajax_replyto_comment()

    Handles replying to a comment via AJAX.

    queryoptionhook
    229instructions
  69. 69
    twentytwenty_get_post_meta()

    Retrieves the post meta.

    queryoptionhook1 caller
    228instructions
  70. 70
    comments_template()

    Loads the comment template specified in $file.

    filesystemsqlqueryoptionloops1 caller
    225instructions
  71. 71
    twentyfifteen_entry_meta()

    Prints HTML with meta information for the categories, tags.

    queryoptionhook
    224instructions
  72. 72
    _wp_handle_upload()

    Handles PHP uploads in WordPress.

    filesystemqueryoptionhook2 callers
    224instructions
  73. 73
    wp_delete_post()

    Trashes or deletes a post or page.

    sqlqueryoptionhookloops29 callers
    224instructions
  74. 74
    attachment_submitbox_metadata()

    Displays non-editable attachment metadata in the publish meta box.

    queryoptionhookloops
    222instructions
  75. 75
    _build_block_template_result_from_post()

    Builds a unified template object based a post Object.

    queryoptionhookloops6 callers
    222instructions
  76. 76
    url_to_postid()

    Examines a URL and try to determine the post ID it represents.

    queryoptionhookloops8 callers
    221instructions
  77. 77
    list_core_update()

    Lists available core updates.

    filesystemqueryoptionhook2 callers
    218instructions
  78. 78
    _wp_ajax_delete_comment_response()

    Sends back current comment total and new page links if they need to be updated.

    queryoptionhook2 callers
    216instructions
  79. 79
    render_block_core_navigation_submenu()

    Renders the `core/navigation-submenu` block.

    queryoptionhookloops
    215instructions
  80. 80
    wp_update_themes()

    Checks for available updates to themes based on the latest versions hosted on WordPress.org.

    httpqueryoptionhookloops4 callers
    215instructions
  81. 81
    pre_schema_upgrade()

    Runs before the schema is upgraded.

    sqlhook1 caller
    214instructions
  82. 82
    get_avatar()

    Retrieves the avatar `` tag for a user, email address, MD5 hash, comment, or post.

    queryoptionhook24 callers
    214instructions
  83. 83
    twentyten_setup()

    Sets up theme defaults and registers support for various WordPress features.

    queryoptionhook
    213instructions
  84. 84
    wp_apply_typography_support()

    Adds CSS classes and inline styles for typography features such as font sizes to the incoming attributes array. This will be applied to the block markup in the front-end.

    queryoptionhook
    210instructions
  85. 85
    media_upload_form()

    Outputs the legacy media upload form.

    queryoptionhook1 caller
    209instructions
  86. 86
    touch_time()

    Prints out HTML form date elements for editing post or comment publish date.

    queryoptionhookloops2 callers
    208instructions
  87. 87
    get_theme_feature_list()

    Retrieves list of WordPress theme features (aka theme tags).

    httpqueryoptionhookloops3 callers
    208instructions
  88. 88
    twentynineteen_setup()

    Sets up theme defaults and registers support for various WordPress features.

    queryoptionhook
    207instructions
  89. 89
    get_avatar_data()

    Retrieves default data about the avatar.

    queryoptionhook3 callers
    207instructions
  90. 90
    download_url()

    Downloads a URL to a local temporary file using the WordPress HTTP API.

    httpfilesystemqueryoption3 callers
    206instructions
  91. 91
    wp_ajax_install_theme()

    Handles installing a theme via AJAX.

    httpqueryoptionhook
    205instructions
  92. 92
    twentythirteen_setup()

    Twenty Thirteen setup.

    queryoptionhook
    204instructions
  93. 93
    wp_new_user_notification()

    Emails login credentials to a newly-registered user.

    mailqueryoptionhook1 caller
    204instructions
  94. 94
    wpmu_validate_blog_signup()

    Processes new site registrations.

    sqlqueryoptionhook2 callers
    204instructions
  95. 95
    edit_form_image_editor()

    Displays the image and editor in the post editor

    queryoptionhook
    203instructions
  96. 96
    wp_get_attachment_image()

    Gets an HTML img element representing an image attachment.

    queryoptionhookloops13 callers
    203instructions
  97. 97
    wp_ajax_install_plugin()

    Handles installing a plugin via AJAX.

    httpqueryoptionhook
    202instructions
  98. 98
    wp_list_comments()

    Displays a list of comments.

    queryoptionhook
    202instructions
  99. 99
    wp_prepare_revisions_for_js()

    Prepare revisions for JavaScript.

    queryoptionhookloops
    202instructions
  100. 100
    wp_nav_menu()

    Displays a navigation menu.

    queryoptionhookloops2 callers
    202instructions