Skip to content

php-master-code/study-lic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StudyLIC v.1.0

This is a small free PHP profiler, the functionality of which is specifically designed for the needs of web studios:

  • to show potential areas where the client's website is slowing down;
  • to measure how the load changes after installing a plugin, component, or developed theme;
  • to evaluate which of the selected CMS is less cumbersome in accordance with the technical requirements of the new project.

The measured parameters are the number of PHP preprocessor ticks used, the amount of memory consumed in excess of the allocated amount, the time spent processing the browser request to the CMS under study, and the number of script files involved.

Design features

  • The installer, uninstaller and measurement block are combined into one file studyLIC-installer.php.
  • Built-in ability to save the measurement report as a static HTML file.
  • Multilingual interface: English (default), Russian.

For testing purposes, a folder named app-example was also added to the repository, containing an application of 3 files.

System requirements

  • A web server, Apache 2.x, for example.
  • PHP version 7.x or above.

How to install

  1. Copy the studyLIC-installer.php file to the directory of the application being analyzed. Let's assume that directory has the URL //localhost/app-example/.

  2. Open the URL //localhost/app-example/studyLIC-installer.php in your browser. That is the installer. It will automatically set observation points in all script files in your application and display a report as a file list. This moment is shown in the following demo screenshot.


An example of what the result of installing the profiler looks like.
Screenshot 1

How to use

Follow these steps for each app page you want to measure:

  1. Open the URL of the page you're interested in in your browser, adding the GET parameter studyLIC to it. For example, //localhost/app-example?studyLIC. This will display a report with measurement data. This momemny is shown in the following screenshot.

  2. Click the Download a copy button at the bottom of the report to save it to your computer as a static HTML file for later viewing.


An example of what the measurement result looks like.
Screenshot 2

How to uninstall

  1. Copy the studyLIC-installer.php file again to the directory of the application being analyzed.

  2. Open the same URL in your browser as during installation, but add the GET parameter uninstall to it. For example, //localhost/app-example?uninstall. As a result, the profiler will automatically delete previously set observation points.


An example of what the result of removing the profiler looks like.
Screenshot 3

Any ideas?

Did you like my work, but is there a detail missing? Please share your thoughts on how to improve the functionality. If I find it truly useful, I'll refine the profiler as soon as I have a free minute.

About

It is a simple tool for examining how much load a PHP application is putting on your website's server.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages