Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7663641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:06:03+00:00 2026-05-31T14:06:03+00:00

I have a WordPress plugin, which checks for an updated version of itself every

  • 0

I have a WordPress plugin, which checks for an updated version of itself every hour with my website. On my website, I have a script running which listens for such update requests and responds with data.

What I want to implement is some basic analytics for this script, which can give me information like no of requests per day, no of unique requests per day/week/month etc.

What is the best way to go about this?

  1. Use some existing analytics script which can do the job for me
  2. Log this information in a file on the server and process that file on my computer to get the information out
  3. Log this information in a database on the server and use queries to fetch the information

Also there will be about 4000 to 5000 requests every hour, so whatever approach I take should not be too heavy on the server.

I know this is a very open ended question, but I couldn’t find anything useful that can get me started in a particular direction.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:06:05+00:00Added an answer on May 31, 2026 at 2:06 pm

    Wow. I’m surprised this doesn’t have any answers yet. Anyways, here goes:

    1. Using an existing script / framework

    Obviously, Google analytics won’t work for you since it is javascript based. I’m sure there exists PHP analytical frameworks out there. Whether you use them or not is really a matter of your personal choice. Do these existing frameworks record everything you need? If not, do they lend themselves to be easily modified? You could use a good existing framework and choose not to reinvent the wheel. Personally, I would write my own just for the learning experience.

    I don’t know any such frameworks off the top of my head because I’ve never needed one. I could do a Google search and paste the first few results here, but then so could you.

    2. Log in a file or MySQL

    There is absolutely NO GOOD REASON to log to a file. You’d first log it to a file. Then write a script to parse this file.Tomorrow you decide you want to capture some additional information. You now need to modify your parsing script. This will get messy. What I’m getting at is – you do not need to use a file as an intermediate store before the database. 4-5k write requests an hour (I don’t think there will be a lot of read requests apart from when you query the DB) is a breeze for MySQL. Furthermore, since this DB won’t be used to serve up data to users, you don’t care if it is slightly un-optimized. As I see it, you’re the only one who’ll be querying the database.

    EDIT:
    When you talked about using a file, I assumed you meant to use it as a temporary store only until you process the file and transfer the contents to a DB. If you did not mean that, and instead meant to store the information permanently in files – that would be a nightmare. Imagine trying to query for certain information that is scattered across files. Not only would you have to write a script that can parse the files, you’d have to right a non-trivial script that can query them without loading all the contents into memory. That would get nasty very, very fast and tremendously impair your abilities to spot trends in data etc.

    Once again – 4-5K might seem like a lot of requests, but a well optimized DB can handle it. Querying a reasonably optimized DB will be magnitudes upon magnitudes of orders faster than parsing and querying numerous files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://demo.thethemefoundry.com/traction/#post-183 Which wordpress plugin is this, to have post image on the left side
I have a WordPress website ( abetterworldbydesign.com ) which has user-agent detection to redirect
OK I have my website running Wordpress at http://www.visualise.ca/ and I installed the qTranslate
I have some code (it's part of a wordpress plugin) which takes a text
I have developed a WordPress plugin which needs to perform additional processing when a
Within a wordpress plugin, I have a PHP function which transform $file_name (a CSV
I'm developing my first Wordpress plugin, and I have one line which deletes an
I have a WordPress plugin with settings page. On this settings page, the form
I have created a simple WordPress plugin that automatically sets my new sites up
I am creating my first wordpress plugin. one of the questions i have is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.