Questions tagged [performance]

Writing efficient code leads to better performance of a site, which is usually measured in the speed with which pages are served.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

Installing Fluent Forms + Formidable Forms in the same website, would it affect loadspeed significantly?

I have some functional needs that would only be satisfied by using both plugins at once (since neither of them has all functionalities I need, but just some/half of these functionalities). I am ...
0
votes
0answers
21 views

Check if almost 10 year old - working code is up to date

I found the following code and tested it on my site. Works fine. But im not sure if the code is up to date because the last few years so much has changed on wordpress. Thx for your feedback and ...
0
votes
1answer
24 views

Timezone is wrong when picking city (Copenhagen)

The timezone-setting (in 'Settings' >> 'Generel' >> 'Timezone'), seems to be ignored. I've set it to be 'Copenhagen' (value: Europe/Copenhagen). But the servers time is still 1 hour ahead ...
0
votes
0answers
8 views

How to write tax_query equivalent to meta_query

i have written wp_query using meta_query but now since the db size is increased the queries getting slow so i coverted my meta_query to tax_query but some of them are difficult to covert due to ...
0
votes
1answer
25 views

Improve wp query perfomance on large db

I have 100000 records in my database and so many meta query performed on it so it takes lot of time to perform the operation, what is the way to speed up this? It takes 20 to 25s to load this query. ...
0
votes
0answers
14 views

Disable Ajax features to trash, approve or spam comments in WordPress admin

I need to disable ajax features in WordPress admin panel. My website has a lot of visitors which participate and interact via comments, this kind of behavior exhausts the admin-ajax.php and uses too ...
0
votes
1answer
18 views

how to embed Pdf and Video Without effecting page speed?

I have a WordPress site and I upload a lot of pdf and videos use embedding techniques but now my website speed is very low. so i want to increase the page speed now, I am going to delete all the ...
0
votes
0answers
11 views

Use REST API in WordPress comments performance

My website currently having a substantial number of concurrent users, about 7K. I have Ajaxified WordPress native comments. Sometimes I am facing high CPU usage as the number of comments increases. ...
0
votes
0answers
16 views

Profiling the initial PHP file, anyone, that get like 10 seconds to load

I got a Worpress to improve, locate on a shared cloud server where we do not have so much control (cron jobs, and a limited cPanel) thing is, that whatever page I call, it takes like like 10 seconds ...
0
votes
0answers
20 views

How optimize website for massive MySQL writing?

I have a website that using plugin RSS Feed Post Generator and there are hundreds post publishing in hours and the MySQL database is busy every time and it cause to heavy loading for main page and ...
0
votes
0answers
20 views

How do you measure the PHP generation time of your Wordpress pages?

I'd like to measure the PHP page generation time for my Wordpress sites, preferrably without any plugin. Which PHP files would you edit to do this? I was thinking about adding this in index.php: <?...
1
vote
0answers
21 views

TTFB increased for no reason

I am developing custom theme based on underscores and gutenberg block plugins based on @wordpress/create-block. Suddenly, I observed slowdown in server response, it went from ~400 ms to ~750 ms. I ...
0
votes
1answer
27 views

WordPress web page struggling with performance

I have some experience with building wordpress pages but me and my friend are starting an e-shop, we wanted to have everything perfect without any bugs and problems so we decided to hire a freelancer. ...
0
votes
1answer
33 views

Change WooCommerce product and variation prices programatically without affecting performance

I need to set a global 5% discount (or 0.95 margin) for all logged in customers on my store. I've used filters to alter the price for all simple products and product variations. To get it working ...
0
votes
0answers
50 views

504 Error on WooCommerce Checkout but only when Cron Fires

I am having an issue where, on a site utilizing WooCommerce, handling a few thousand orders per day, users will experience a 504 Timeout error on wc-ajax=checkout, but only when the WordPress Cron has ...
0
votes
0answers
94 views

WordPress Object Cache and ENABLE_CACHE

An article by Jeff Starr suggests that to benefit from WordPress' native caching capabilities, that define('ENABLE_CACHE', TRUE); should be included in the wp-config.php file. There also appear to be ...
0
votes
1answer
71 views

Remove unused CSS and JS

I got this recommendation from google pagespeed tool, my pages works fine for desktop but for mobile it gets a score of 60. check the report here. I removed the css and js files manually from https://...
0
votes
0answers
28 views

Very slow 'Init Hook' causes request delays

After moving my WordPress websites from one VPS to another, I noticed that administration began to randomly load very slowly. There is no apparent reason for this - all requests load for > 15 ...
1
vote
4answers
164 views

Async Loading of Custom Posts

I have a wordpress page template, where I'm loading custom posts. The code for fetching these custom posts looks as follows: template-parts/content-page.php <article id="songs"> &...
1
vote
1answer
31 views

It is a good idea to store values from the global $post if they are used multiple times?

I am wandering if it is a good idea to store values from the global $post if they are used multiple times like in the example below, or is having no effect on performance? $post_id = $post->ID; ...
0
votes
0answers
6 views

Slow(ish) hosting for a very small client. Very static homepage - make the move to static html page instead?

I have a website running on namecheap.com - which is OKish, but google page speed insights could be better. I'm thinking about making it even better by just creating a static HTML generator from the ...
0
votes
0answers
35 views

Improve performance by removing unnecessary database queries

I've just found out that main page of custom theme im developing does 150 db queries on every load (what takes even 2.5 seconds). Many of them come from functions.php, and are caused by for example ...
0
votes
0answers
31 views

Slow issues with Website running Wordpress on Azure

I am running a Website with wordpress but I am suffering a slowness issues every three weeks. The website is https://aguadilla.inter.edu/ it is from a University and I am the Webmaster. Here is ...
0
votes
0answers
10 views

Display Products section using an external API

I need to display the below sections in Wordpress website using another API: Products search Products listing with pagination Popular products Stores section Categories and sub-categories section ...
0
votes
0answers
66 views

Local WP install giving often ERR_EMPTY_RESPONSE error

Wordpress works most of time, but slow. But very often I get ERR_EMPTY_RESPONSE, I think the reason it's just because it's slow. If I refresh the page, sometimes it works. It's a local install of an ...
0
votes
1answer
14 views

My blog load time on Bluehost and Word press is too much. I have slipped in Google Search Ranking

My blog organic traffic has fallen significantly due to long load times and 50+ DNS requests from Server. My site https://www.how2havefun.com/ loading time is more than 7 seconds. I have Blue Host and ...
0
votes
0answers
31 views

Disable remote http access for individual plugins in WordPress

I am creating a WordPress LMS website and to achieve my goals I need to install more than 40 plugins. Some of the plugins send remote http requests for license check and it consumes a lot of resources ...
1
vote
0answers
36 views

Opening specific posts on WP takes lot of time and freezes the editor

I have this weird problem in the last couple of days where it takes ~5 minutes to completely open some posts on WordPress wp-admin dashboard. Please hear me out carefully. This is happening only with ...
0
votes
0answers
13 views

Cost efficient way of pre-loading cache on server

So I've been struggling with my woocommerce site and its loading time since it has a lot of content the loading time is very slow for anyone to be interested in waiting for it to load. I was told that ...
1
vote
2answers
392 views

Get terms that are associated with products from current category

I need to list all custom terms (brands) that are associated with products from the category that is currently being viewed. E.g. I have these brands created: Shirt Brand A Shirt Brand B Shirt Brand ...
0
votes
0answers
16 views

Prioritize loading a set of images

I want a set of images (12) to be the FIRST thing the browser loads when visiting my website. I am working with Wordpress and have an animation that plays right away when the user visits the site so ...
0
votes
0answers
20 views

Store array as single, serialized post meta field or many post meta fields?

I am currently building a Wordpress plugin to fulfil WooCommerce orders for a "virtual" product. Once the payment is confirmed, I make an API call that returns a large (~50 values) array of ...
0
votes
1answer
62 views

Content including hooks inside wp-settings.php are being called twice in WordPress

I found that init hook is being called twice and then I try to trace and find out wp-settings.php is also being called twice. I originally want to post a question to find out why. And after some code ...
1
vote
0answers
206 views

Native Lazy Loading on Safari

Wordpress 5.5 was released and native Native Lazyload has been added by default to Wordpress. As you might know, Safari doesn't support this feature. Any idea of how to make it work with safari? I ...
0
votes
1answer
124 views

Should I use docker in wordpress production?

My question is, is it a good idea to use docker for a big woocommerce website (more than 100k products)? Or will this incur a noticable performance cost compared to running wordpress straight on the ...
1
vote
1answer
323 views

Wordpress digitalocean taking forever to load

So, I have a Wordpress droplet in Digitalocean with 4 shared vcpu and 8gb of ram. Everything was working really fine until I get about 400 simultaneous access in the website, then it gets REALLY SLOW. ...
0
votes
0answers
23 views

Wordpress is very slow, even it's not opening sometimes

I have migrated a WordPress site from the old server to my new server now it's very slow and even some times it's not opening at all. I'm not getting any error message just a blank page I'm getting. ...
0
votes
1answer
45 views

How to check performance of WordPress dashboard

We run a Woocommerce shop. The frontend is pretty ok, but the dashboard is really slow. The database is quite large (>2 GB) containing around 140.000 users and more than 50.0000 orders. I checked ...
0
votes
1answer
21 views

Better use two dedicated methods hooked with add_action() to different actions, or can it be twice the same method?

This is merely a question about what's better in terms on performance, and general (WordPress) PHP Development. I deregister and dequeue a fewe scripts (and styles) from a WordPress website, in a ...
0
votes
0answers
17 views

Job and Employee Performance Tracking with Product Safety

We are looking to connect a WordPress site to our database where an employee can scan an order barcode with an RFID scanner that was generated from our database and have the WordPress site query the ...
0
votes
1answer
31 views

Write/saved logs in Wordpress

I´m doing a plugin which includes a query to import data from external API into custom post types/taxonomies/medias etc... The query can be really heavy. I had to make logs to know exactly what ...
-1
votes
1answer
25 views

What is the first action or filter executed by wordpress?

To mesure performance of a wordpress website i need what is the first filter or action executed by wordpress ? it seems that index.php is the input file of server, there is a way to add a global time ...
0
votes
1answer
42 views

Super slow plugin page (lots of error 500)

Since a few days, After I migrated my wordpress site from a host to another, my plugins page is super slow ! When I click to see all plugins, or to install a plugin, I get one time out of two a error ...
0
votes
1answer
31 views

What structure and database storage method should I use for temporary storage that may be written concurrently?

In working with a third-party API, I need to store some state information to help track a process. I'm wondering where and how I should store it. Specifically, I have a multi-page Gravity Form, and ...
0
votes
0answers
54 views

Favicon is loading very late

I have 2-3 WordPress sites all have same problem when it comes to website speed. Everything is loading within 2 seconds except Favcion, how can i load the favicon faster?
0
votes
0answers
14 views

Compiling PHP files?

I am developing a custom theme for our site and I tried running the following just above the closing tag in footer.php: $included = get_included_files(); echo "<pre>";print_r($included);echo "&...
0
votes
1answer
74 views

How to simulate web traffic to test performance of a website

I have to test a WordPress site performance on an Ubuntu server running on apache2 and mysql, what the best way to simulate web traffic to see how the theme, plugins, database, cpu, and ram is ...
0
votes
0answers
8 views

Unidentified plnTokenForOrder_nnnn option in wp_options

I have hundreds of plnTokenForOrder_[0-9](4) with autoload in my wp_options table and I really don't know where it comes from. Could it be linked to Stripe or Paypal gateway? How can I be sure it's ...
0
votes
0answers
18 views

How to handle multiple visitors load to avoid server crashing?

E-teaching my undergrads (covid-19...), made a quiz for them to take on a LearnPress installation and gave them an exact time to be online. When the time came, site crashed instantly (~75 people, ...
0
votes
1answer
18 views

If I disable screen options, does WP still try to update post meta?

I am trying to speed up my WP admin post edit page. (/wp-admin/post.php?post=x&action=edit) This particular site has WooCommerce + other plugins that generate a lot of post meta installed. Most ...

1
2 3 4 5
12