Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.97ms] Passed 4 tests
An overview of server-side resources used by HOB Advanced Cookies for Wordpress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.07 ▼4.16 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.06 ▼10.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.82 ▼15.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.77 ▼14.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.91 ▼0.55 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for HOB Advanced Cookies for Wordpress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.25 ▲0.02 | 1.71 ▼0.06 | 40.01 ▲0.86 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▲0.01 | 93.28 ▼2.68 | 40.49 ▼1.43 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.04 | 40.45 ▼0.13 | 36.03 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.14 ▼0.03 | 632.68 ▲18.47 | 54.38 ▲3.17 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▲0.02 | 95.30 ▼5.04 | 43.12 ▲1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/advanced-cookies/partials/gestion/gestion.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-cookies/includes/Hob_ac_request.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-cookies/includes/Hob_ac_admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-cookies/partials/licence/licence.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/advanced-cookies/advanced_cookies.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/advanced-cookies/partials/description/description.php:11
- > PHP Fatal error
Uncaught Error: Class 'Hob_ac_view' not found in wp-content/plugins/advanced-cookies/partials/front/front.php:3
- > PHP Fatal error
Uncaught Error: Class 'Hob_ac_view' not found in wp-content/plugins/advanced-cookies/partials/configuration/configuration.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
4 plugin tags: advancedcookies, cookie, rgpd, gdpr
advanced-cookies/advanced_cookies.php 85% from 13 tests
The principal PHP file in "HOB Advanced Cookies for Wordpress" v. 1.4.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-cookies.php" instead of "advanced_cookies.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin4,961 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 206 | 416 | 3,927 |
CSS | 2 | 112 | 10 | 643 |
PO File | 1 | 80 | 125 | 250 |
JavaScript | 1 | 26 | 9 | 141 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 19 | 46.34% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 8 | 19.51% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/img/logo-cookies.png | 4.43KB | 4.41KB | 0.44% |
asset/img/c-logo.png | 16.23KB | 1.25KB | ▼ 92.32% |
asset/img/disquette.png | 8.80KB | 4.53KB | ▼ 48.50% |