Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-admin/includes/file.php+2197
fopen(wp-content/cache/temp-write-test-65233bbaf36625-49587193): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.47MB] [CPU: ▼14.56ms] Passed 4 tests
A check of server-side resources used by CC-Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 47.38 ▲6.08 |
Dashboard /wp-admin | 3.52 ▲0.21 | 47.53 ▼4.27 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 49.21 ▲0.68 |
Add New Post /wp-admin/post-new.php | 3.37 ▼2.51 | 37.95 ▼59.36 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.91 ▲4.70 |
Cache /wp-admin/options-general.php?page=cache | 3.32 | 27.30 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
Clearcode\Cache |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by CC-Cache
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.24 ▼1.02 | 1.66 ▼0.20 | 39.10 ▼4.16 |
Dashboard /wp-admin | 2,228 ▲40 | 4.84 ▼1.01 | 108.83 ▼3.33 | 41.19 ▼3.80 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.04 ▲0.03 | 39.82 ▲1.61 | 35.55 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,526 ▲129 | 18.35 ▲0.44 | 626.01 ▲18.13 | 53.83 ▲7.96 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.28 ▲0.07 | 103.38 ▼16.80 | 42.97 ▼7.42 |
Cache /wp-admin/options-general.php?page=cache | 881 | 2.17 | 26.27 | 27.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-admin/includes/file.php+2197
fopen(wp-content/cache/temp-write-test-65233bc7174536-89836929): failed to open stream: No such file or directory
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=cache
- > Warning in wp-admin/includes/file.php+2197
fopen(wp-content/cache/temp-write-test-65233bc0530192-54369027): failed to open stream: No such file or directory
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (**WordPress Cache Settings** - Visit the 'Settings > Cache' page, select your preferred options and save them.), #2 (**Post Cache Settings** - You can disable the cache function for individual posts and pages by marking the Disable checkbox in Edit Post/Edit Page.)
cc-cache/plugin.php 92% from 13 tests
The main PHP script in "CC-Cache" version 1.3.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-cache.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,170 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 263 | 428 | 1,114 |
PO File | 1 | 21 | 30 | 49 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 13 | 14.94% |
▷ Public methods | 52 | 59.77% |
▷ Protected methods | 33 | 37.93% |
▷ Private methods | 2 | 2.30% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.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
2 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 73.50KB | 22.32KB | ▼ 69.63% |
screenshot-1.png | 89.35KB | 29.34KB | ▼ 67.16% |