Home CMS Tutorial WordPress How to display query count and page loading time in WordPress

How to display query count and page loading time in WordPress

Apr 19, 2025 pm 11:51 PM
wordpress 2025

How to display query count and page loading time in WordPress

One of our users asked other websites how to display the number of queries and page loading time in the footer. You often see this in the footer of your website, which may display something like: "64 queries in 1.248 seconds". In this article, we will show you how to display the number of queries and page loading times in WordPress.

Just paste the following code anywhere you like in the theme file (e.g. footer.php).

 <?php echoget_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.
Copy after login

Depend on

Use it with one click in WordPress

And refresh the page. You will see the number of queries and execution time.

The above is the detailed content of How to display query count and page loading time in WordPress. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1662
14
PHP Tutorial
1261
29
C# Tutorial
1234
24
What does cross-chain transaction mean? What are the cross-chain transactions? What does cross-chain transaction mean? What are the cross-chain transactions? Apr 21, 2025 pm 11:39 PM

Exchanges that support cross-chain transactions: 1. Binance, 2. Uniswap, 3. SushiSwap, 4. Curve Finance, 5. Thorchain, 6. 1inch Exchange, 7. DLN Trade, these platforms support multi-chain asset transactions through various technologies.

Litecoin (LTC) price drops sharply to $65 Litecoin (LTC) price drops sharply to $65 Apr 21, 2025 pm 06:15 PM

Litecoin (LTC) price plummeted to $65 in early April, down nearly 7.5% in a week, echoing the plunge in the wider cryptocurrency market. The market crash caused billions of dollars to evaporate market value, Bitcoin (BTC) fell below $75,000, and altcoins generally fell. Macro factors such as rising U.S. Treasury yields and expected interest rates appear to intensify risk aversion in global markets. In addition, the large outflow of funds from Bitcoin spot ETFs further hits the confidence of retail investors and institutional investors. Against this backdrop, Litecoin is once again facing its long-term resistance level - the 200-week exponential moving average (EMA). The EMA had suppressed LTC prices in July 2023, when the price was close to $88. Historically, LTC and the

Bitcoin market trend chart in the past decade (analysis of Bitcoin price historical trends from 2014 to 2025) Bitcoin market trend chart in the past decade (analysis of Bitcoin price historical trends from 2014 to 2025) Apr 21, 2025 pm 07:30 PM

Bitcoin price has experienced multiple cycles of fluctuations and growth. 1. From 2013 to 2014, the price soared from less than $10 to $1,150, and then plummeted to $200. 2. From 2015 to 2016, prices stabilized and rebounded, and infrastructure improvements enhanced market confidence. 3. From 2017 to 2018, the price plummeted to US$3,000 after exceeding US$20,000, and the tightening of China's regulatory policies caused an impact. 4. From 2019 to 2021, the price rebounded to more than US$10,000, and exceeded US$60,000 in 2021, and institutional investors entered the market to drive the rise. 5. From 2022 to 2024, the price rebounded to $50,000 after the market correction, and the launch of US ETFs brought new funds. 6. At the beginning of 2025, the price is around 1

Hashbeat App: The highest regulated crypto cloud mining platform in 2025 with free Bitcoin mining rewards and daily spending Hashbeat App: The highest regulated crypto cloud mining platform in 2025 with free Bitcoin mining rewards and daily spending Apr 21, 2025 pm 06:21 PM

The most worth investing in 2025: Cloud mining strategy without eyeing the market If you want to invest in cryptocurrencies in 2025 and don’t want to pay attention to market fluctuations all the time, then cloud mining may be your ideal choice. Cloud mining can easily generate Bitcoin and other digital currencies without expensive mining machines and complex settings. A number of new cloud mining platforms have emerged in 2025, making it easier than ever to get started. Whether it is a novice novices or investors who pursue passive income, the following 11 platforms are worth paying attention to. Hashbeat app: a regulated crypto cloud mining platform that provides free Bitcoin mining rewards, daily payments. If you want to invest in low-risk, high-security, stable returns in cryptocurrency in 2025, Hashbeat app

Meme projects like Dogecoin (Doge), Shiba Inu (Shib) and Bonk (Bonk) Meme projects like Dogecoin (Doge), Shiba Inu (Shib) and Bonk (Bonk) Apr 21, 2025 pm 06:36 PM

Meme coin projects such as Dogecoin (Doge), ShibaInu (Shib) and Bonk (Bonk) have attracted widespread attention with their viral and network-driven craze. However, the emerging project OzakAI has taken a different approach, which ambitiously combines artificial intelligence with blockchain technology and is expected to surpass Meme coins with its modern support. Let's dive into why OzakAI has the potential to break through $1 and surpass Doge, Shib and Bonk's market performance. Meme Coin: Viral phenomenon Meme Coin has gained a place in the cryptocurrency market by cleverly leveraging the Internet culture and the Internet boom. Dogecoin(

Sesame Open Door Official Website Entrance Sesame Open Door Official Latest Entrance 2025 Sesame Open Door Official Website Entrance Sesame Open Door Official Latest Entrance 2025 Apr 28, 2025 pm 07:51 PM

Sesame Open Door is a platform that focuses on cryptocurrency trading. Users can obtain portals through official websites or social media to ensure that the authenticity of SSL certificates and website content is verified during access.

Ranking of exchanges in low-cost fees in 2025 Ranking of exchanges in low-cost fees in 2025 Apr 22, 2025 am 06:21 AM

The exchange with the lowest handling fee in the currency circle is Binance, with a spot trading rate of 0.1%. 1. Binance: The spot transaction fee rate is 0.1%, and BNB deduction fee is supported. 2. OKX: The spot transaction fee rate is 0.02%-0.15%, suitable for high-frequency trading. 3. Gate.io: The spot transaction fee rate is 0.2%, and the coin is listed quickly.

Shiba INU (Shib) and Mutuum Finance (MUTM) are key assets Shiba INU (Shib) and Mutuum Finance (MUTM) are key assets Apr 21, 2025 pm 09:30 PM

An investor with a $170 million portfolio considers ShibaInu (SHIB) and MutuumFinance (MUTM) to be key assets in building generational wealth. ShibaInu benefits from growing interest in meme coins, while MutuumFinance is an emerging structured lending project with rapid pre-sales progress. Let's dive into the dynamics of these two crypto assets this week. ShibaInu: Long-term holders dominate ShibaInu's price fell 11% this week, but its long-term growth rate is as high as 123%, and the current trading price is $0.0001139. Technical analysts point out that the cryptocurrency is on the rebound trend line and is

See all articles