Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.80ms] Passed 4 tests
A check of server-side resources used by Italy Cookie Choices (for EU Cookie Law & Cookie Notice)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 32.66 ▼12.24 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.94 ▼4.21 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.45 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 95.46 ▼5.42 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 38.24 ▼1.32 |
Italy Cookie Choices /wp-admin/options-general.php?page=italy-cookie-choices | 3.32 | 36.14 |
Server storage [IO: ▲0.67MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
italy_cookie_choices |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Italy Cookie Choices (for EU Cookie Law & Cookie Notice): an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.20 ▼1.10 | 1.87 ▲0.16 | 43.34 ▲1.19 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲0.07 | 104.77 ▲1.26 | 37.62 ▼7.29 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.01 | 38.74 ▼3.70 | 35.02 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.13 ▼0.06 | 603.02 ▼27.55 | 54.54 ▲3.00 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.15 ▼0.04 | 93.76 ▼1.36 | 39.37 ▼2.93 |
Italy Cookie Choices /wp-admin/options-general.php?page=italy-cookie-choices | 2,670 | 6.74 | 157.75 | 92.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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-comments
- db_upgraded
- theysaidso_admin_options
- 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 shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/italy-cookie-choices/js/bigbutton/cookiechoices.php
- > /wp-content/plugins/italy-cookie-choices/js/default/cookiechoices.php
- > /wp-content/plugins/italy-cookie-choices/js/smallbutton/cookiechoices.php
- > /wp-content/plugins/italy-cookie-choices/js/cookiechoices.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Overclokk\\Cookie\\Cookie_Interface' not found in wp-content/plugins/italy-cookie-choices/vendor/overclokk/cookie/src/Cookie.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function Italy_Cookie_Choices\\Admin\\is_admin() in wp-content/plugins/italy-cookie-choices/init-admin.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/italy-cookie-choices/admin/template/block-script.php:4
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/italy-cookie-choices/vendor/overclokk/cookie/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/italy-cookie-choices/vendor/overclokk/cookie/cookie.php on line 38
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/italy-cookie-choices/admin/template/admin.php:21
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/italy-cookie-choices/admin/template/allow-script.php:4
- > PHP Warning
require(wp-content/plugins/italy-cookie-choices/vendor/overclokk/cookie/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/italy-cookie-choices/vendor/overclokk/cookie/cookie.php on line 38
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/italy-cookie-choices/bootstrap.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function Italy_Cookie_Choices\\Core\\is_admin() in wp-content/plugins/italy-cookie-choices/init.php:16
- > PHP Fatal error
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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
- Donate link: Invalid URI ("")
italy-cookie-choices/italy-cookie-choices.php Passed 13 tests
"Italy Cookie Choices (for EU Cookie Law & Cookie Notice)" version 2.5.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
119 characters long description:
Italy Cookie Choices allows you to easily comply with the european cookie law and block third part cookie in your page.
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
No dangerous file extensions were detected7,279 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 978 | 1,762 | 4,980 |
JavaScript | 7 | 369 | 420 | 1,026 |
Markdown | 4 | 157 | 0 | 636 |
PO File | 2 | 244 | 316 | 636 |
CSS | 1 | 0 | 0 | 1 |
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.50 |
Average class complexity | 33.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 130 | |
▷ Static methods | 22 | 16.92% |
▷ Public methods | 118 | 90.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 9.23% |
Functions | 14 | |
▷ Named functions | 11 | 78.57% |
▷ Anonymous functions | 3 | 21.43% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
No PNG images were found in this plugin