Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼606.28ms] Passed 4 tests
A check of server-side resources used by Clear cache for Timber
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 31.94 ▼5.45 |
Dashboard /wp-admin | 3.07 ▲0.01 | 42.57 ▼8.28 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 48.16 ▲2.51 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 84.18 ▼2,409.69 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 28.72 ▼1.69 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Clear cache for Timber: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲105 | 16.30 ▲0.77 | 7.48 ▼1.02 | 51.32 ▲1.75 |
Dashboard /wp-admin | 2,958 ▲96 | 5.90 ▲0.04 | 131.25 ▲0.03 | 113.96 ▲18.81 |
Posts /wp-admin/edit.php | 2,736 ▲30 | 2.68 ▼0.01 | 63.53 ▼7.61 | 87.93 ▼9.55 |
Add New Post /wp-admin/post-new.php | 2,264 ▲611 | 25.08 ▲6.56 | 359.02 ▲23.37 | 105.35 ▼1.01 |
Media Library /wp-admin/upload.php | 1,746 ▼29 | 4.97 ▼0.03 | 129.28 ▼16.96 | 132.36 ▲26.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clear-cache-for-timber/clear-cache-for-timber.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (Clear cache for Timber in Wordpress) image not found
- Donate link: Please fix this invalid URI: ""
clear-cache-for-timber/clear-cache-for-timber.php Passed 13 tests
This is the main PHP file of "Clear cache for Timber" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
Clear cache for Timber and Twig caching
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin152 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 36 | 60 |
Markdown | 1 | 25 | 0 | 41 |
JSON | 1 | 3 | 0 | 25 |
CSS | 1 | 2 | 0 | 15 |
JavaScript | 1 | 1 | 0 | 10 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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 | 8 | |
▷ Named functions | 8 | 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 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 6.98KB | 6.93KB | ▼ 0.67% |