Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/implied-cookie-consent/icc-admin.php+39
Undefined variable: opt_name
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.20ms] Passed 4 tests
A check of server-side resources used by Implied Cookie Consent
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.24 ▼5.19 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.07 ▼2.58 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.09 ▲0.44 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.57 ▼13.04 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.73 ▲0.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Implied Cookie Consent
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,040 ▲294 | 14.20 ▼0.02 | 9.52 ▲7.55 | 40.63 ▼8.13 |
Dashboard /wp-admin | 2,229 ▲44 | 5.99 ▲0.12 | 101.99 ▲3.46 | 38.91 ▲3.19 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.31 ▲0.31 | 41.44 ▼1.13 | 34.24 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 18.28 ▼0.12 | 661.04 ▲17.88 | 35.07 ▼30.05 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.38 ▲0.09 | 98.10 ▲5.85 | 39.01 ▼0.80 |
Implied Cookie Consent /wp-admin/implied-cookie-consent.php | 26 | 0.44 | 0.12 | 13.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/implied-cookie-consent/icc-admin.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/implied-cookie-consent/implied-cookie-consent.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/implied-cookie-consent.php
- > Network (severe)
wp-admin/implied-cookie-consent.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: cookie warning, cookie law, cookie consent
implied-cookie-consent/implied-cookie-consent.php Passed 13 tests
The principal PHP file in "Implied Cookie Consent" v. 1.3 is loaded by WordPress automatically on each request
81 characters long description:
Displays an unobtrusive cookie information bar when a user first visits the site.
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
Good job! No executable or dangerous file extensions detected272 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 35 | 22 | 145 |
JavaScript | 3 | 28 | 15 | 110 |
CSS | 1 | 2 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 2 | 20.00% |
▷ Anonymous functions | 8 | 80.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin