Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.62ms] Passed 4 tests
A check of server-side resources used by Hyper Cache
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 40.48 ▲3.92 |
Dashboard /wp-admin | 3.43 ▲0.13 | 47.18 ▲4.85 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 43.83 ▲0.79 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 78.66 ▼10.44 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 33.68 ▲3.25 |
Hyper Cache /wp-admin/options-general.php?page=hyper-cache/options.php | 3.61 | 29.63 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- The plugin illegally modified 2 files (5.86KB) outside of "wp-content/plugins/hyper-cache/" and "wp-content/uploads/"
- (new file) wp-content/advanced-cache.php
- (new file) wp-content/cache/hyper-cache/.empty
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
hyper-cache |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Hyper Cache
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲6 | 14.35 ▼0.28 | 1.71 ▼0.00 | 42.59 ▲6.29 |
Dashboard /wp-admin | 2,193 ▲12 | 5.58 ▼0.14 | 96.26 ▼3.84 | 41.86 ▼1.47 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.01 | 35.36 ▲0.52 | 31.62 ▼5.28 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.40 ▲0.41 | 686.03 ▲34.31 | 55.32 ▲4.59 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.04 | 95.02 ▲1.91 | 42.95 ▲2.67 |
Hyper Cache /wp-admin/options-general.php?page=hyper-cache/options.php | 1,539 | 2.09 | 35.41 | 53.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- hyper-cache
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=hyper-cache/options.php
- > Warning in wp-content/plugins/hyper-cache/options.php+5
filemtime(): stat failed for wp-content/advanced-cache.php
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant HC_GZIP - assumed 'HC_GZIP' (this will throw an Error in a future version of PHP) in wp-content/plugins/hyper-cache/advanced-cache.php on line 127
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/hyper-cache/advanced-cache.php on line 12
- > PHP Warning
Use of undefined constant HC_MOBILE - assumed 'HC_MOBILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/hyper-cache/advanced-cache.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'HyperCache' not found in wp-content/plugins/hyper-cache/options.php:3
- > PHP Warning
Use of undefined constant HC_HTTPS - assumed 'HC_HTTPS' (this will throw an Error in a future version of PHP) in wp-content/plugins/hyper-cache/advanced-cache.php on line 116
- > PHP Warning
Use of undefined constant HC_HTTPS - assumed 'HC_HTTPS' (this will throw an Error in a future version of PHP) in wp-content/plugins/hyper-cache/advanced-cache.php on line 69
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hyper-cache/plugin.php:31
- > PHP Warning
Use of undefined constant HC_REJECT_AGENTS_ENABLED - assumed 'HC_REJECT_AGENTS_ENABLED' (this will throw an Error in a future version of PHP) in wp-content/plugins/hyper-cache/advanced-cache.php on line 75
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: tuning, cache, staticizer, bandwidth, speed...
hyper-cache/plugin.php 92% from 13 tests
The entry point to "Hyper Cache" version 3.4.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("hyper-cache.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,345 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 250 | 75 | 1,345 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/donation.png | 2.68KB | 1.76KB | ▼ 34.26% |