Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/cookie-disclaimer/best_cookies.php+24
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.13ms] Passed 4 tests
This is a short check of server-side resources used by Best Cookies
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.78 ▼1.30 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.72 ▲6.12 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.26 ▼2.92 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.97 ▼4.53 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.46 ▼3.77 |
Best Cookies /wp-admin/options-general.php?page=best_cookies | 3.18 | 31.05 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
best_cookies_version |
best_cookie_settings |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Best Cookies
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲196 | 13.76 ▼0.46 | 6.63 ▲4.87 | 49.18 ▼1.31 |
Dashboard /wp-admin | 2,230 ▲44 | 5.03 ▲0.08 | 102.92 ▼1.43 | 38.63 ▼3.38 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.32 ▲0.34 | 38.86 ▲2.66 | 31.60 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.49 ▲0.34 | 606.46 ▼117.08 | 33.98 ▼29.46 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.43 ▲0.21 | 96.21 ▼10.34 | 43.32 ▼2.01 |
Best Cookies /wp-admin/options-general.php?page=best_cookies | 1,377 | 5.92 | 124.77 | 54.05 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- best_cookie_settings
- widget_theysaidso_widget
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=best_cookies
- > Notice in wp-content/plugins/cookie-disclaimer/admin_form.php+4
Undefined index: update_cookie
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cookie-disclaimer/front_form.php:2
- > PHP Notice
Undefined index: update_cookie in wp-content/plugins/cookie-disclaimer/admin_form.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cookie-disclaimer/admin_form.php:9
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
No tags were detected
cookie-disclaimer/best_cookies.php 92% from 13 tests
"Best Cookies" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("cookie-disclaimer.php" instead of "best_cookies.php")
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
Success! There were no dangerous files found in this plugin409 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3 | 6 | 186 |
PHP | 4 | 16 | 24 | 178 |
JavaScript | 3 | 10 | 8 | 45 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/best-cookies-bg.png | 6.56KB | 7.29KB | 0.00% |