Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼161.75ms] Passed 4 tests
An overview of server-side resources used by APC Clear Cache
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 35.28 ▲13.73 |
Dashboard /wp-admin | 3.08 ▲0.02 | 35.78 ▼10.34 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 46.15 ▲2.50 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 78.24 ▼637.73 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.32 ▼1.44 |
APC Clear Cache /wp-admin/tools.php?page=apc-clear-cache | 2.99 | 29.08 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for APC Clear Cache
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.84 ▲0.22 | 7.56 ▼2.70 | 49.18 ▼4.41 |
Dashboard /wp-admin | 2,975 ▲44 | 5.86 ▼0.27 | 135.10 ▼10.24 | 111.87 ▼4.02 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 64.90 ▼6.83 | 91.38 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,675 ▲94 | 18.92 ▲4.57 | 381.95 ▲0.25 | 113.68 ▲0.59 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▲0.01 | 150.69 ▼3.92 | 124.40 ▲1.02 |
APC Clear Cache /wp-admin/tools.php?page=apc-clear-cache | 1,046 | 2.18 | 53.55 | 72.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apc-clear-cache/acc-mo-plugin.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apc-clear-cache/acc-mo-plugin.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: apcu, purge, cache, apc
apc-clear-cache/apc-clear-cache.php Passed 13 tests
The main file in "APC Clear Cache" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
121 characters long description:
A very simple and single purpose plugin to completely clear the APC cache. To use, go to Tools and click APC Clear Cache.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin94 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 25 | 49 | 94 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin