PHPackages                             genaker/module-opcache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. genaker/module-opcache

ActiveMagento2-module

genaker/module-opcache
======================

PHP OPCache and Magento Performance monitoring and analytics

1.0.21(9mo ago)8037.3k↑38.1%21[1 PRs](https://github.com/Genaker/Magento2OPcacheGUI/pulls)MITPHP

Since Dec 19Pushed 3mo ago7 watchersCompare

[ Source](https://github.com/Genaker/Magento2OPcacheGUI)[ Packagist](https://packagist.org/packages/genaker/module-opcache)[ RSS](/packages/genaker-module-opcache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (23)Used By (0)

Magento 2 OPcache GUI PHP Performance Dashboard
===============================================

[](#magento-2-opcache-gui-php-performance-dashboard)

Advanced Magento 2 Performance Monitoring &amp; OPcache Control GUI with comprehensive benchmarking tools.

[![Magento 2 Opcache GUI](https://github.com/Genaker/Magento2OPcacheGUI/raw/main/Magento-Opcache-Gui.jpg)](https://github.com/Genaker/Magento2OPcacheGUI/raw/main/Magento-Opcache-Gui.jpg)

Magento Server Performance Toolkit New GUI
==========================================

[](#magento-server-performance-toolkit-new-gui)

[![opcacheGui](https://private-user-images.githubusercontent.com/9213670/476342654-dbe40aea-cf95-43ed-be34-a3a6b451bf08.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQzNjcyODIsIm5iZiI6MTc3NDM2Njk4MiwicGF0aCI6Ii85MjEzNjcwLzQ3NjM0MjY1NC1kYmU0MGFlYS1jZjk1LTQzZWQtYmUzNC1hM2E2YjQ1MWJmMDguZ2lmP1gtQW16LUFsZ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WduZWRIZWFkZXJzPWhvc3QifQ.prUg-0w0OxY3MFHWVH6Jc-hEXx7EuJPm4DAQED7LSwg)

Key Features
------------

[](#key-features)

### **Performance Benchmarking Suite**

[](#performance-benchmarking-suite)

- **CPU Performance Testing** - Multi-iteration BogoMIPS measurement
- **Memory Allocation Analysis** - Memory usage patterns and optimization detection
- **File Operations Testing** - I/O performance measurement
- **Database Latency Testing** - MySQL connection and query performance
- **Redis Latency Testing** - Cache backend performance analysis
- **HTTP Performance Testing** - Cached vs Uncached page load comparison
- **Random URL Testing** - Real-world product and category page performance

### **Advanced HTTP Performance Analysis**

[](#advanced-http-performance-analysis)

- **Cached Performance Testing** - Measures Full Page Cache (FPC) effectiveness
- **Uncached Performance Testing** - Real-world logged-in user experience
- **Random Product URL Testing** - Dynamic product page performance
- **Random Category URL Testing** - Category browsing performance
- **Cache Performance Comparison** - Side-by-side cached vs uncached analysis
- **Cache Limitations Warning** - Educational information about FPC behavior

### **Enhanced User Interface**

[](#enhanced-user-interface)

- **Loading Spinner with Dynamic Steps** - Rotating performance test indicators
- **Console-themed Design** - Professional terminal-style interface
- **Real-time Progress Tracking** - Step-by-step loading feedback
- **Responsive Layout** - Optimized for admin panel integration
- **Professional Error Handling** - Graceful fallbacks and debugging

### **Configuration &amp; Diagnostics**

[](#configuration--diagnostics)

- **OPcache Status Analysis** - Comprehensive OPcache configuration review
- **PHP Configuration Analysis** - PHP settings optimization recommendations
- **Security Analysis** - Security configuration assessment
- **Server Configuration Review** - System-level performance insights
- **Configurable Test Parameters** - Customizable iterations and timeouts via DI

### **Technical Architecture**

[](#technical-architecture)

- **Dependency Injection** - Clean, testable architecture
- **Performance Toolkit Class** - Modular performance testing functions
- **Block-based Architecture** - Magento 2 best practices
- **Random URL Generation** - Store-aware product and category selection
- **Error Handling &amp; Logging** - Comprehensive error management
- **Cache-busting Technology** - Accurate uncached performance measurement

Where to Find in Admin Menu
---------------------------

[](#where-to-find-in-admin-menu)

**System &gt; Tools &gt; Performance and Opcache GUI**

Installation
------------

[](#installation)

### Method 1: Manual Installation

[](#method-1-manual-installation)

Copy to `app/code`, run setup, and compile as usual.

This Extension doesn't need static content generation - it uses CDN version of React JS. Install with flag `--keep-generated`.

### Method 2: Composer Installation

[](#method-2-composer-installation)

```
composer require genaker/module-opcache
```

### Post-Installation

[](#post-installation)

```
php bin/magento module:enable Genaker_Opcache
php bin/magento setup:upgrade
php bin/magento cache:flush
```

Magento 2 OPcache Optimal Settings
----------------------------------

[](#magento-2-opcache-optimal-settings)

The biggest Magento 2 performance issue is incorrect (default) PHP OPcache settings.

### Production Web Server Settings

[](#production-web-server-settings)

```
opcache.enable = 1
opcache.enable_cli = 0
opcache.memory_consumption = 556
opcache.max_accelerated_files = 1000000
opcache.validate_timestamps = 0
opcache.interned_strings_buffer = 64
opcache.max_wasted_percentage = 5
opcache.save_comments = 1
opcache.fast_shutdown = 1
```

### CLI OPcache Settings

[](#cli-opcache-settings)

Separate CLI config file (e.g., `/etc/php/8.1/cli/conf.d/10-opcache.ini`):

```
zend_extension=opcache.so
opcache.memory_consumption=1000M
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000000
opcache.validate_timestamps=1
opcache.enable_cli=1
opcache.file_cache=/tmp/
opcache.file_cache_only=0
opcache.file_cache_consistency_checks=1
```

Performance Benchmarking Features
---------------------------------

[](#performance-benchmarking-features)

### **PHP BogoMIPS Performance Measurement**

[](#php-bogomips-performance-measurement)

Advanced PHP performance testing that measures actual Magento code execution speed.

Magento 2 is CPU-intensive due to framework design. Use the fastest CPU for optimal page rendering. If a 2GHz processor takes 3 seconds, a 3GHz processor will complete the same request in ~2 seconds.

[![Magento 2 PHP performance](https://github.com/Genaker/Magento2OPcacheGUI/raw/main/PHP-performance.jpg)](https://github.com/Genaker/Magento2OPcacheGUI/raw/main/PHP-performance.jpg)

#### Benchmark Reference Scores (lower is better):

[](#benchmark-reference-scores-lower-is-better)

- **AWS C5.large**: 0.032 (PHP 7.3.23)
- **AWS R5.xlarge**: 0.039 (PHP 7.2.34)
- **AWS C8.xlarge**: 0.029 (PHP 8.1 web), 0.066 (CLI - OPcache limitation)

### **HTTP Performance Testing**

[](#http-performance-testing)

- **Cached Testing**: Measures Full Page Cache effectiveness
- **Uncached Testing**: Real logged-in user experience with cache-busting
- **Random URL Testing**: Dynamic product/category page performance
- **Performance Comparison**: Side-by-side analysis with improvement percentages

### **Cache Limitations Analysis**

[](#cache-limitations-analysis)

Educational warnings about Magento FPC behavior:

- FPC primarily benefits guest visitors only
- Logged-in customers typically bypass FPC
- Cache can be invalidated by content updates
- Search requests and category filters are rarely cached
- Focus on uncached performance for sustainable improvements

**Advanced Configuration**
--------------------------

[](#advanced-configuration)

### Dependency Injection Configuration

[](#dependency-injection-configuration)

Performance parameters can be customized via `etc/di.xml`:

```

    3
    3
    3
    100

```

### Performance Test Categories

[](#performance-test-categories)

- **\[PERFORMANCE BENCHMARK\]** - CPU, Memory, File I/O tests
- **\[HTTP PERFORMANCE\]** - Cached page performance
- **\[UNCACHED HTTP PERFORMANCE\]** - Real-world performance
- **\[CACHE PERFORMANCE COMPARISON\]** - Cached vs Uncached analysis
- **\[OPCACHE STATUS\]** - OPcache configuration analysis
- **\[PHP CONFIGURATION ANALYSIS\]** - PHP settings review
- **\[SECURITY ANALYSIS\]** - Security configuration assessment

**What is BogoMIPS for Magento Servers?**
-----------------------------------------

[](#what-is-bogomips-for-magento-servers)

**MIPS** = Millions of Instructions Per Second - measures Magento server computation speed.

**BogoMips** are Linus Torvalds' invention, adapted for Magento servers by Yehor Shytikov. Originally used in Linux kernel 0.99.11 (July 1993) for timing loop calibration.

"Bogo" = "bogus" (fake), indicating this is a practical rather than scientific measurement.

It's the most effective way to measure and compare Magento PHP code execution performance across different servers.

**Technical Implementation**
----------------------------

[](#technical-implementation)

### Class Architecture

[](#class-architecture)

- **`Gui` Block**: Main interface and URL generation
- **`PerformanceToolkit`**: Modular performance testing functions
- **Random URL Generation**: Store-aware product/category selection
- **Dependency Injection**: Clean, configurable architecture

### Browser Features

[](#browser-features)

- **Dynamic Loading Spinner**: Rotating test step indicators
- **Automatic Fallbacks**: 10-second timeout protection
- **Error Handling**: Comprehensive debugging and logging
- **Responsive Design**: Admin panel optimized interface

---

**Optimize your Magento 2 performance with comprehensive, real-world testing tools.**

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance71

Regular maintenance activity

Popularity45

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~85 days

Recently: every ~0 days

Total

21

Last Release

276d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2614da2cb514a3749cd296d237c9ca3430f4dafa09b4e49e338a6b1794a5acf4?d=identicon)[genaker](/maintainers/genaker)

---

Top Contributors

[![Genaker](https://avatars.githubusercontent.com/u/9213670?v=4)](https://github.com/Genaker "Genaker (76 commits)")[![ejaz-alam](https://avatars.githubusercontent.com/u/22393364?v=4)](https://github.com/ejaz-alam "ejaz-alam (1 commits)")[![olivertar](https://avatars.githubusercontent.com/u/959440?v=4)](https://github.com/olivertar "olivertar (1 commits)")

---

Tags

magentomagento2magento2-modulephpreactreactjs

### Embed Badge

![Health badge](/badges/genaker-module-opcache/health.svg)

```
[![Health](https://phpackages.com/badges/genaker-module-opcache/health.svg)](https://phpackages.com/packages/genaker-module-opcache)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
