Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.40MB] [CPU: ▼2.18ms] Passed 4 tests
Analyzing server-side resources used by Vendi Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 39.21 ▼3.58 |
Dashboard /wp-admin | 3.77 ▲0.46 | 49.40 ▼1.36 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 51.77 ▲3.00 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 94.22 ▼6.79 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 38.74 ▲3.39 |
Vendi Cache /wp-admin/options-general.php?page=vendi-cache | 3.63 | 33.85 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
vendiWordPressCachingActivated |
can_compress_scripts |
widget_theysaidso_widget |
vendi_cache_plugin_act_error |
db_upgraded |
vendi_cache_version |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Vendi Cache
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.30 ▼1.06 | 4.28 ▲2.44 | 39.29 ▼3.44 |
Dashboard /wp-admin | 2,218 ▲30 | 4.91 ▼0.98 | 110.90 ▲9.02 | 41.43 ▲0.00 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.03 ▲0.04 | 40.00 ▼0.95 | 35.36 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.47 ▲0.74 | 601.02 ▼45.47 | 48.14 ▲5.05 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.21 ▲0.03 | 95.18 ▼5.91 | 43.92 ▼0.20 |
Vendi Cache /wp-admin/options-general.php?page=vendi-cache | 1,072 | 1.87 | 31.75 | 31.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- vendi_cache_plugin_act_error
- can_compress_scripts
- theysaidso_admin_options
- vendiWordPressCachingActivated
- vendi_cache_version
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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)
Even though no errors were found, 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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Vendi\\Cache\\cache_settings' not found in wp-content/plugins/vendi-cache/admin/vendi-cache.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/vendi-cache/vendi-cache.php:21
- > PHP Warning
Use of undefined constant VENDI_CACHE_SUPPORT_MU - assumed 'VENDI_CACHE_SUPPORT_MU' (this will throw an Error in a future version of PHP) in wp-content/plugins/vendi-cache/admin/vendi-cache.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: caching, disk cache, disk caching, performance, cache...
vendi-cache/vendi-cache.php Passed 13 tests
The main PHP file in "Vendi Cache" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Disk-based page and post cache. (Formerly Wordfence Falcon Cache)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,546 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 304 | 309 | 2,090 |
JavaScript | 5 | 11 | 36 | 328 |
CSS | 2 | 16 | 17 | 128 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 33.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 93 | 79.49% |
▷ Public methods | 114 | 97.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.56% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 34 | |
▷ Global constants | 20 | 58.82% |
▷ Class constants | 14 | 41.18% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/magnifier.png | 0.60KB | 0.60KB | 0.00% |
images/icons/arrow_refresh.png | 0.67KB | 0.72KB | 0.00% |
images/loading_background.png | 0.15KB | 0.15KB | ▼ 0.64% |
images/icons/error128.png | 12.26KB | 5.03KB | ▼ 59.02% |
images/icons/email_go.png | 0.74KB | 0.83KB | 0.00% |