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
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.87ms] Passed 4 tests
Server-side resources used by Hayona Cookie Consent
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.91 ▼2.27 |
Dashboard /wp-admin | 3.44 ▲0.13 | 42.43 ▼9.60 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 40.27 ▼5.39 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 82.88 ▼6.21 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.05 ▲2.76 |
Cookie Consent /wp-admin/options-general.php?page=hayona-cookies | 3.33 | 31.16 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/hayona-cookies/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/hayona-cookies/assets/icon-128\303\227128.png"
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Hayona Cookie Consent
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.26 ▼0.02 | 1.76 ▼0.11 | 44.47 ▼0.61 |
Dashboard /wp-admin | 2,216 ▲39 | 5.58 ▼0.10 | 85.45 ▼8.14 | 41.29 ▲4.83 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 2.01 ▲0.03 | 38.84 ▲2.79 | 31.45 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 23.02 ▲4.83 | 598.34 ▼52.78 | 59.71 ▼13.71 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.22 ▲0.02 | 99.95 ▼0.07 | 43.40 ▼1.23 |
Cookie Consent /wp-admin/options-general.php?page=hayona-cookies | 872 | 2.13 | 23.52 | 30.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 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)
Good news, no errors were detected
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
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: cookie banner, google tag manager, eu cookie law, cookie consent, privacy settings
hayona-cookies/hayona-cookies.php Passed 13 tests
"Hayona Cookie Consent" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
A straightforward plugin to comply with the EU cookie law, including implied consent.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,318 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 94 | 117 | 506 |
Sass | 2 | 99 | 7 | 366 |
JavaScript | 2 | 69 | 99 | 218 |
PO File | 1 | 85 | 145 | 217 |
Markdown | 1 | 6 | 0 | 9 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 35.99KB | 36.44KB | 0.00% |
assets/banner-772x250.png | 29.32KB | 9.02KB | ▼ 69.23% |
assets/screenshot-4.png | 39.08KB | 40.46KB | 0.00% |
assets/screenshot-2.png | 27.28KB | 28.27KB | 0.00% |
assets/screenshot-1.png | 24.10KB | 26.13KB | 0.00% |