wppaste

ReferenceCost rankingsMost distinct cost outcomes

WordPress 7.1.0PHP 8.4top 100

Most distinct cost outcomes

Distinct ways one call can run, each with its own price, recovered from the control-flow graph. A high count means cost depends heavily on arguments and site state, so any single benchmark of these tells you very little.

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

  1. 1
    upgrade_all()

    Functions to be called in installation and upgrade scripts.

    queryoptionhook1 caller
    4,000outcomes
  2. 2
    wp_hoist_late_printed_styles()

    Adds the hooks needed for CSS output to be delayed until after the content of the page has been established.

    sqlqueryoptionhookloops
    3,006outcomes
  3. 3
    twentyfifteen_entry_meta()

    Prints HTML with meta information for the categories, tags.

    queryoptionhook
    2,740outcomes
  4. 4
    wp_ajax_install_plugin()

    Handles installing a plugin via AJAX.

    httpqueryoptionhook
    2,016outcomes
  5. 5
    switch_theme()

    Switches the theme.

    sqlqueryoptionhook9 callers
    1,912outcomes
  6. 6
    download_url()

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

    httpfilesystemqueryoption3 callers
    1,716outcomes
  7. 7
    customize_themes_print_templates()

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

    queryoptionhook
    1,568outcomes
  8. 8
    wp_ajax_install_theme()

    Handles installing a theme via AJAX.

    httpqueryoptionhook
    1,536outcomes
  9. 9
    wp_admin_bar_site_menu()

    Adds the "Site Name" menu.

    queryoptionhook
    1,514outcomes
  10. 10
    wpmu_validate_user_signup()

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

    sqlqueryoptionhook3 callers
    1,224outcomes
  11. 11
    get_media_states()

    Retrieves an array of media states from an attachment.

    queryoptionhook2 callers
    900outcomes
  12. 12
    wp_ajax_upload_attachment()

    Handles uploading attachments via AJAX.

    queryoptionhook
    864outcomes
  13. 13
    twentytwenty_get_post_meta()

    Retrieves the post meta.

    queryoptionhook1 caller
    812outcomes
  14. 14
    wp_ajax_wp_privacy_export_personal_data()

    Handles exporting a user's personal data via AJAX.

    queryoptionhook
    690outcomes
  15. 15
    get_custom_logo()

    Returns a custom logo, linked to home unless the theme supports removing the link on the home page.

    queryoptionhook4 callers
    600outcomes
  16. 16
    wpmu_validate_blog_signup()

    Processes new site registrations.

    sqlqueryoptionhook2 callers
    598outcomes
  17. 17
    wp_dashboard_setup()

    Registers dashboard widgets.

    httpqueryoptionhookloops
    538outcomes
  18. 18
    get_post_states()

    Retrieves an array of post states from a post.

    queryoptionhook4 callers
    510outcomes
  19. 19
    network_step1()

    Prints step 1 for Network installation process.

    queryoptionhook
    500outcomes
  20. 20
    wp_get_update_data()

    Collects counts and UI strings for available updates.

    queryoptionhook5 callers
    432outcomes
  21. 21
    _wp_personal_data_handle_actions()

    Handle list table actions.

    mailqueryoptionhook
    409outcomes
  22. 22
    populate_network()

    Populate network settings.

    httpsqlqueryoption
    408outcomes
  23. 23
    _wp_upload_dir()

    A non-filtered, non-cached version of wp_upload_dir() that doesn't check the path.

    queryoptionhook1 caller
    384outcomes
  24. 24
    wp_handle_comment_submission()

    Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form.

    queryoptionhook
    369outcomes
  25. 25
    wp_get_loading_optimization_attributes()

    Gets loading optimization attributes.

    queryoptionhook6 callers
    356outcomes
  26. 26
    wp_ajax_update_theme()

    Handles updating a theme via AJAX.

    httpqueryoptionhook
    352outcomes
  27. 27
    rest_validate_value_from_schema()

    Validate a value based on a schema.

    queryoptionhook19 callers
    352outcomes
  28. 28
    wp_default_scripts()

    Registers all WordPress scripts.

    queryoptionhook
    336outcomes
  29. 29
    wp_ajax_wp_privacy_erase_personal_data()

    Handles erasing personal data via AJAX.

    queryoptionhook
    332outcomes
  30. 30
    wp_privacy_generate_personal_data_export_file()

    Generate the personal data export file.

    filesystemqueryoptionhookloops
    324outcomes
  31. 31
    wp_ajax_delete_plugin()

    Handles deleting a plugin via AJAX.

    queryoptionhook
    324outcomes
  32. 32
    rest_sanitize_value_from_schema()

    Sanitize a value based on a schema.

    queryoptionhookloops12 callers
    322outcomes
  33. 33
    _default_wp_die_handler()

    Kills WordPress execution and displays HTML page with an error message.

    queryoptionhook
    300outcomes
  34. 34
    ms_load_current_site_and_network()

    Identifies the network and site of a requested domain and path and populates the corresponding network and site global objects as part of the multisite bootstrap process.

    hook
    293outcomes
  35. 35
    wp_generate_attachment_metadata()

    Generates attachment meta data and create image sub-sizes for images.

    filesystemqueryoptionhook13 callers
    288outcomes
  36. 36
    wp_ajax_update_plugin()

    Handles updating a plugin via AJAX.

    httpqueryoptionhook
    264outcomes
  37. 37
    pre_schema_upgrade()

    Runs before the schema is upgraded.

    sqlhook1 caller
    256outcomes
  38. 38
    wp_install_defaults()

    Creates the initial content for a newly-installed site.

    sqlqueryoptionhook3 callers
    255outcomes
  39. 39
    register_and_do_post_meta_boxes()

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

    queryoptionhook
    225outcomes
  40. 40
    get_blog_details()

    Retrieves the details for a blog from the blogs table and blog options.

    sqlqueryoptionhook
    221outcomes
  41. 41
    edit_user()

    Edit user settings based on contents of $_POST

    httpmailqueryoption2 callers
    216outcomes
  42. 42
    wp_ajax_delete_theme()

    Handles deleting a theme via AJAX.

    queryoptionhook
    216outcomes
  43. 43
    retrieve_password()

    Handles sending a password retrieval email to a user.

    mailqueryoptionhook1 caller
    200outcomes
  44. 44
    wp_unique_filename()

    Gets a filename that is sanitized and unique for the given directory.

    filesystemqueryoptionhookloops8 callers
    200outcomes
  45. 45
    redirect_guess_404_permalink()

    Attempts to guess the correct URL for a 404 request based on query vars.

    sqlqueryoptionhook1 caller
    199outcomes
  46. 46
    wp_insert_post()

    Inserts or updates a post in the database.

    sqlqueryoptionhook21 callers
    195outcomes
  47. 47
    wp_initialize_site()

    Runs the initialization routine for a given site.

    queryoptionhook
    195outcomes
  48. 48
    display_setup_form()

    Displays installer setup form.

    sqlqueryoptionhook
    192outcomes
  49. 49
    wp_ajax_add_tag()

    Handles adding a tag via AJAX.

    queryoptionhook
    188outcomes
  50. 50
    upgrade_network()

    Executes network-level upgrade routines.

    sqlqueryoptionhookloops1 caller
    176outcomes
  51. 51
    wp_setup_nav_menu_item()

    Decorates a menu item object with the shared navigation menu item properties.

    queryoptionhook3 callers
    168outcomes
  52. 52
    comments_template()

    Loads the comment template specified in $file.

    filesystemsqlqueryoptionloops1 caller
    162outcomes
  53. 53
    render_block_core_post_featured_image()

    Renders the `core/post-featured-image` block on the server.

    queryoptionhookloops
    160outcomes
  54. 54
    wp_admin_bar_new_content_menu()

    Adds "Add New" menu.

    queryoptionhookloops
    160outcomes
  55. 55
    152outcomes
  56. 56
    media_handle_upload()

    Saves a file submitted from a POST request and create an attachment post for it.

    queryoptionhook2 callers
    151outcomes
  57. 57
    wp_update_user()

    Updates a user in the database.

    mailqueryoptionhookloops6 callers
    150outcomes
  58. 58
    wp_edit_theme_plugin_file()

    Attempts to edit a file for a theme or plugin.

    httpfilesystemqueryoption1 caller
    147outcomes
  59. 59
    activate_plugin()

    Attempts activation of plugin in a "sandbox" and redirects on success.

    queryoptionhook3 callers
    136outcomes
  60. 60
    wp_new_comment()

    Adds a new comment to the database.

    queryoptionhookloops4 callers
    132outcomes
  61. 61
    get_default_post_to_edit()

    Returns default post information to use when populating the "Write Post" form.

    queryoptionhook5 callers
    132outcomes
  62. 62
    wp_title()

    Displays or retrieves page title for all areas of blog.

    queryoptionhook
    128outcomes
  63. 63
    edit_form_image_editor()

    Displays the image and editor in the post editor

    queryoptionhook
    120outcomes
  64. 64
    inject_ignored_hooked_blocks_metadata_attributes()

    Inject ignoredHookedBlocks metadata attributes into a template or template part.

    queryoptionhook
    120outcomes
  65. 65
    get_body_class()

    Retrieves an array of the class names for the body element.

    queryoptionhook1 caller
    120outcomes
  66. 66
    register_new_user()

    Handles registering a new user.

    queryoptionhook
    120outcomes
  67. 67
    wp_admin_bar_edit_menu()

    Provides an edit link for posts and terms.

    queryoptionhook
    118outcomes
  68. 68
    fetch_rss()

    Build Magpie object based on RSS from URL.

    httphook2 callers
    117outcomes
  69. 69
    _build_block_template_result_from_post()

    Builds a unified template object based a post Object.

    queryoptionhookloops6 callers
    115outcomes
  70. 70
    post_submit_meta_box()

    Displays post submit form fields.

    queryoptionhook
    114outcomes
  71. 71
    register_meta()

    Registers a meta key.

    queryoptionhook4 callers
    114outcomes
  72. 72
    wp_ajax_toggle_auto_updates()

    Handles enabling or disable plugin and theme auto-updates via AJAX.

    queryoptionhook
    112outcomes
  73. 73
    comments_popup_link()

    Displays the link to the comments for the current post ID.

    queryoptionhook6 callers
    110outcomes
  74. 74
    wp_ajax_wp_compression_test()

    Handles compression testing via AJAX.

    queryoptionhook
    110outcomes
  75. 75
    wp_ajax_autocomplete_user()

    Handles user autocomplete via AJAX.

    queryoptionhookloops
    108outcomes
  76. 76
    wp_ajax_media_create_image_subsizes()

    Handles creating missing image sub-sizes for just uploaded images via AJAX.

    queryoptionhook
    108outcomes
  77. 77
    wp_delete_attachment_files()

    Deletes all files that belong to the given attachment.

    sqlqueryoptionhookloops1 caller
    105outcomes
  78. 78
    wp_media_upload_handler()

    Handles the process of uploading media.

    queryoptionhook4 callers
    104outcomes
  79. 79
    themes_api()

    Retrieves theme installer pages from the WordPress.org Themes API.

    httpqueryoptionhookloops8 callers
    100outcomes
  80. 80
    plugins_api()

    Retrieves plugin installer pages from the WordPress.org Plugins API.

    httpqueryoptionhook8 callers
    100outcomes
  81. 81
    wp_start_object_cache()

    Starts the WordPress object cache.

    filesystemhook
    100outcomes
  82. 82
    wp_list_comments()

    Displays a list of comments.

    queryoptionhook
    99outcomes
  83. 83
    wp_install()

    Installs the site.

    httpmailqueryoption
    96outcomes
  84. 84
    wp_ajax_save_widget()

    Handles saving a widget via AJAX.

    queryoptionhookloops
    96outcomes
  85. 85
    wp_ajax_add_meta()

    Handles adding meta via AJAX.

    queryoptionhook
    95outcomes
  86. 86
    install_plugin_information()

    Displays plugin information in dialog box form.

    httpqueryoptionhookloops
    88outcomes
  87. 87
    get_attachment_link()

    Retrieves the permalink for an attachment.

    queryoptionhook14 callers
    88outcomes
  88. 88
    sanitize_option()

    Sanitizes various option values based on the nature of the option.

    queryoptionhook8 callers
    87outcomes
  89. 89
    twentysixteen_entry_meta()

    Prints HTML with meta information for the categories, tags.

    queryoptionhook
    80outcomes
  90. 90
    wp_ajax_delete_comment()

    Handles deleting a comment via AJAX.

    queryoptionhook
    80outcomes
  91. 91
    wp_update_nav_menu_item()

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

    queryoptionhook6 callers
    78outcomes
  92. 92
    wp_ajax_inline_save_tax()

    Handles Quick Edit saving for a term via AJAX.

    queryoptionhookloops
    78outcomes
  93. 93
    update_option()

    Updates the value of an option that was already added.

    sqlqueryoptionhook50 callers
    74outcomes
  94. 94
    get_comment_link()

    Retrieves the link to a given comment.

    queryoptionhook21 callers
    74outcomes
  95. 95
    touch_time()

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

    queryoptionhookloops2 callers
    72outcomes
  96. 96
    populate_network_meta()

    Creates WordPress network meta and sets the default values.

    sqlqueryoptionhookloops1 caller
    72outcomes
  97. 97
    wp_ajax_parse_embed()

    Applies [embed] Ajax handlers to a string.

    queryoptionhookloops
    72outcomes
  98. 98
    twentyfourteen_scripts()

    Enqueues scripts and styles for the front end.

    queryoptionhook
    72outcomes
  99. 99
    post_preview()

    Saves a draft or manually autosaves for the purpose of showing a post preview.

    queryoptionhook
    72outcomes
  100. 100
    wp_ajax_save_attachment_compat()

    Handles saving backward compatible attachment attributes via AJAX.

    queryoptionhookloops
    72outcomes