Reference › Cost rankings › Heaviest single call
WordPress 7.1.0PHP 8.5top 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.
- 12,372instructions
- 21,057instructions
- 3create_initial_post_types()
Creates the initial post types when 'init' action is fired.
queryoptionhook964instructions - 4wp_enqueue_media()
Enqueues all scripts, styles, settings, and templates necessary to use all media JS APIs.
queryoptionhook7 callers682instructions - 5541instructions
- 6531instructions
- 7wp_nav_menu_item_post_type_meta_box()
Displays a meta box for a post type menu item.
sqlqueryoptionhook512instructions - 8comment_form()
Outputs a complete commenting form for use within a template.
queryoptionhookloops2 callers492instructions - 9477instructions
- 10456instructions
- 11429instructions
- 12wp_install_defaults()
Creates the initial content for a newly-installed site.
sqlqueryoptionhook3 callers417instructions - 13twenty_twenty_one_setup()
Sets up theme defaults and registers support for various WordPress features.
queryoptionhook406instructions - 14wp_privacy_generate_personal_data_export_file()
Generate the personal data export file.
filesystemqueryoptionhookloops389instructions - 15render_block_core_latest_posts()
Renders the `core/latest-posts` block on server.
queryoptionhookloops382instructions - 16377instructions
- 17367instructions
- 18355instructions
- 19_wp_dashboard_recent_comments_row()
Outputs a row for the Recent Comments widget.
queryoptionhookloops2 callers351instructions - 20342instructions
- 21340instructions
- 22wp_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 callers325instructions - 23323instructions
- 24request_filesystem_credentials()
Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.
queryoptionhookloops12 callers323instructions - 25wp_edit_theme_plugin_file()
Attempts to edit a file for a theme or plugin.
httpfilesystemqueryoption1 caller321instructions - 26321instructions
- 27319instructions
- 28customize_themes_print_templates()
Prints JS templates for the theme-browsing UI in the Customizer.
queryoptionhook315instructions - 29twentytwenty_get_starter_content()
Returns the array of starter content for the theme.
queryoptionhook1 caller311instructions - 30get_theme_starter_content()
Expands a theme's starter content configuration using core-provided data.
queryoptionhookloops1 caller307instructions - 31305instructions
- 32303instructions
- 33twentyfifteen_setup()
Sets up theme defaults and registers support for various WordPress features.
queryoptionhook296instructions - 34media_upload_library_form()
Outputs the legacy media upload form for the media library.
sqlqueryoptionhookloops293instructions - 35292instructions
- 36wp_update_nav_menu_item()
Saves the properties of a menu item or create a new one.
queryoptionhook6 callers292instructions - 37286instructions
- 38284instructions
- 39_register_core_block_patterns_and_categories()
Registers the core block patterns and categories.
queryoptionhookloops283instructions - 40wptexturize()
Replaces common plain text characters with formatted entities.
queryoptionhookloops9 callers279instructions - 41276instructions
- 42274instructions
- 43get_block_editor_settings()
Returns the contextualized block editor settings for a selected editor context.
httpqueryoptionhook1 caller274instructions - 44269instructions
- 45269instructions
- 46twentyeleven_setup()
Sets up theme defaults and registers support for various WordPress features.
queryoptionhook269instructions - 47redirect_canonical()
Redirects incoming links to the proper URL based on the site url.
queryoptionhook1 caller268instructions - 48wp_default_packages_inline_scripts()
Adds inline scripts required for the WordPress JavaScript packages.
queryoptionhook1 caller262instructions - 49wp_save_image()
Saves image to post, along with enqueued changes in `$_REQUEST['history']`.
filesystemqueryoptionhookloops1 caller262instructions - 50260instructions
- 51256instructions
- 52253instructions
- 53253instructions
- 54249instructions
- 55247instructions
- 56244instructions
- 57block_core_image_render_lightbox()
Adds the directives and layout needed for the lightbox behavior.
queryoptionhook243instructions - 58242instructions
- 59populate_options()
Create WordPress options and set the default values.
sqlqueryoptionhookloops4 callers242instructions - 60register_and_do_post_meta_boxes()
Registers the default post meta boxes, and runs the `do_meta_boxes` actions.
queryoptionhook239instructions - 61wpmu_validate_user_signup()
Sanitizes and validates data required for a user sign-up.
sqlqueryoptionhook3 callers237instructions - 62wp_ajax_wp_privacy_export_personal_data()
Handles exporting a user's personal data via AJAX.
queryoptionhook235instructions - 63234instructions
- 64233instructions
- 65232instructions
- 66wp_widget_control()
Meta widget used to display the control form for a widget.
queryoptionhook2 callers232instructions - 67230instructions
- 68229instructions
- 69228instructions
- 70comments_template()
Loads the comment template specified in $file.
filesystemsqlqueryoptionloops1 caller225instructions - 71twentyfifteen_entry_meta()
Prints HTML with meta information for the categories, tags.
queryoptionhook224instructions - 72224instructions
- 73224instructions
- 74attachment_submitbox_metadata()
Displays non-editable attachment metadata in the publish meta box.
queryoptionhookloops222instructions - 75_build_block_template_result_from_post()
Builds a unified template object based a post Object.
queryoptionhookloops6 callers222instructions - 76url_to_postid()
Examines a URL and try to determine the post ID it represents.
queryoptionhookloops8 callers221instructions - 77218instructions
- 78_wp_ajax_delete_comment_response()
Sends back current comment total and new page links if they need to be updated.
queryoptionhook2 callers216instructions - 79render_block_core_navigation_submenu()
Renders the `core/navigation-submenu` block.
queryoptionhookloops215instructions - 80wp_update_themes()
Checks for available updates to themes based on the latest versions hosted on WordPress.org.
httpqueryoptionhookloops4 callers215instructions - 81214instructions
- 82get_avatar()
Retrieves the avatar `` tag for a user, email address, MD5 hash, comment, or post.
queryoptionhook24 callers214instructions - 83twentyten_setup()
Sets up theme defaults and registers support for various WordPress features.
queryoptionhook213instructions - 84wp_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.
queryoptionhook210instructions - 85209instructions
- 86touch_time()
Prints out HTML form date elements for editing post or comment publish date.
queryoptionhookloops2 callers208instructions - 87get_theme_feature_list()
Retrieves list of WordPress theme features (aka theme tags).
httpqueryoptionhookloops3 callers208instructions - 88twentynineteen_setup()
Sets up theme defaults and registers support for various WordPress features.
queryoptionhook207instructions - 89207instructions
- 90download_url()
Downloads a URL to a local temporary file using the WordPress HTTP API.
httpfilesystemqueryoption3 callers206instructions - 91205instructions
- 92204instructions
- 93wp_new_user_notification()
Emails login credentials to a newly-registered user.
mailqueryoptionhook1 caller204instructions - 94204instructions
- 95203instructions
- 96wp_get_attachment_image()
Gets an HTML img element representing an image attachment.
queryoptionhookloops13 callers203instructions - 97202instructions
- 98202instructions
- 99202instructions
- 100202instructions