Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.82MB] [CPU: ▲5.09ms] Passed 4 tests
Analyzing server-side resources used by Flash Cache
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.87 | 48.80 ▲1.38 |
Dashboard /wp-admin | 4.16 ▲0.85 | 55.70 ▲7.34 |
Posts /wp-admin/edit.php | 4.21 ▲0.85 | 50.54 ▲4.14 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 97.83 ▲7.50 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 43.09 ▲10.41 |
Patterns /wp-admin/edit.php?post_type=flash_cache_patterns | 4.19 | 50.83 |
Preload /wp-admin/admin.php?page=flash_cache_preload | 3.99 | 40.99 |
Advanced options /wp-admin/admin.php?page=flash_cache_advanced_setting | 3.99 | 36.11 |
Flash Cache /wp-admin/admin.php?page=flash_cache_setting | 3.99 | 38.03 |
Add New Patterns /wp-admin/post-new.php?post_type=flash_cache_patterns | 4.22 | 78.52 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
flash_cache_version |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Flash Cache
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲89 | 14.20 ▼0.51 | 2.22 ▲0.67 | 43.45 ▲5.35 |
Dashboard /wp-admin | 2,219 ▲42 | 5.56 ▼0.05 | 89.49 ▼7.61 | 67.94 ▲22.96 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 1.98 ▼0.02 | 39.84 ▲0.14 | 33.26 ▼9.97 |
Add New Post /wp-admin/post-new.php | 1,572 ▲33 | 23.08 ▼2.04 | 662.56 ▲44.56 | 53.24 ▼13.03 |
Media Library /wp-admin/upload.php | 1,430 ▲27 | 4.15 ▲0.02 | 96.84 ▼2.99 | 71.13 ▲26.79 |
Patterns /wp-admin/edit.php?post_type=flash_cache_patterns | 1,811 | 2.01 | 40.38 | 45.37 |
Preload /wp-admin/admin.php?page=flash_cache_preload | 1,080 | 2.06 | 42.91 | 37.81 |
Advanced options /wp-admin/admin.php?page=flash_cache_advanced_setting | 1,276 | 1.72 | 28.76 | 38.40 |
Flash Cache /wp-admin/admin.php?page=flash_cache_setting | 1,003 | 2.08 | 26.73 | 35.90 |
Add New Patterns /wp-admin/post-new.php?post_type=flash_cache_patterns | 1,779 | 2.46 | 50.04 | 61.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/flash-cache/includes/functions.php+633
Undefined index: lock_type
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flash-cache/includes/preload.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flash-cache/includes/functions.php:102
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Advanced Settings.) image missing
flash-cache/flash_cache.php 85% from 13 tests
"Flash Cache" version 3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("flash-cache.php" instead of "flash_cache.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,613 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 664 | 809 | 3,848 |
CSS | 2 | 2 | 9 | 659 |
JavaScript | 1 | 9 | 4 | 62 |
Markdown | 1 | 28 | 0 | 44 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 34.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 5.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 114 | 91.20% |
▷ Public methods | 110 | 88.00% |
▷ Protected methods | 9 | 7.20% |
▷ Private methods | 6 | 4.80% |
Functions | 39 | |
▷ Named functions | 38 | 97.44% |
▷ Anonymous functions | 1 | 2.56% |
Constants | 10 | |
▷ Global constants | 5 | 50.00% |
▷ Class constants | 5 | 50.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flash-cache-icon.png | 1.13KB | 0.98KB | ▼ 13.42% |