Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼148.97ms] Passed 4 tests
Server-side resources used by ArvanCloud Cache Cleaner
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.63 ▼0.20 | 23.45 ▼17.23 |
Dashboard /wp-admin | 3.11 ▲0.05 | 47.63 ▲4.45 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 45.91 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 90.88 ▼579.45 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 33.66 ▲1.57 |
ابر آروان /wp-admin/options-general.php?page=ar_cache | 3.04 | 32.49 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ar_cache_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ArvanCloud Cache Cleaner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲116 | 15.85 ▼0.03 | 8.54 ▼0.50 | 47.42 ▼0.68 |
Dashboard /wp-admin | 2,982 ▲54 | 5.89 ▼0.04 | 142.49 ▼0.65 | 122.11 ▲11.65 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.70 ▼0.12 | 67.22 ▲1.42 | 97.61 ▼3.19 |
Add New Post /wp-admin/post-new.php | 1,679 ▲179 | 19.08 ▲0.30 | 375.47 ▼43.04 | 110.10 ▼12.03 |
Media Library /wp-admin/upload.php | 1,816 ▲12 | 5.02 ▼0.01 | 155.55 ▼0.26 | 120.47 ▼4.54 |
ابر آروان /wp-admin/options-general.php?page=ar_cache | 1,316 | 2.76 | 62.28 | 105.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- ar_cache_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ar_cache
- > Notice in wp-content/plugins/arvancloud-cache-cleaner/lib/ar_cache_options.php+88
Undefined index: site
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'ar_cache_API' not found in wp-content/plugins/arvancloud-cache-cleaner/lib/ar_cache_options.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/arvancloud-cache-cleaner/Arvancloud.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Settings) image not found
arvancloud-cache-cleaner/Arvancloud.php 85% from 13 tests
The main PHP file in "ArvanCloud Cache Cleaner" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("arvancloud-cache-cleaner.php" instead of "Arvancloud.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
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
Everything looks great! No dangerous files found in this plugin530 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 11 | 435 |
JavaScript | 1 | 10 | 0 | 85 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin