Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/3com-asesor-de-cookies/plugin.php+53
Undefined variable: i
Server metrics [RAM: ▲0.11MB] [CPU: ▼294.70ms] Passed 4 tests
A check of server-side resources used by 3com - Asesor de Cookies para normativa española
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.19 | 56.84 ▼3.86 |
Dashboard /wp-admin | 3.55 ▲0.14 | 34.67 ▲2.57 |
Posts /wp-admin/edit.php | 3.78 ▲0.13 | 38.95 ▲2.77 |
Add New Post /wp-admin/post-new.php | 7.02 ▲0.04 | 100.95 ▼1,175.13 |
Media Library /wp-admin/upload.php | 3.43 ▲0.13 | 24.71 ▼2.38 |
Asesor de cookies /wp-admin/tools.php?page=cdp_cookies | 3.45 | 31.84 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for 3com - Asesor de Cookies para normativa española
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,969 ▲215 | 16.93 ▲1.32 | 11.64 ▲4.69 | 12.94 ▲9.65 |
Dashboard /wp-admin | 2,920 ▲62 | 6.93 ▲0.83 | 120.19 ▼19.52 | 157.58 ▼7.51 |
Posts /wp-admin/edit.php | 2,722 ▲31 | 3.55 ▲0.30 | 67.61 ▲1.50 | 160.96 ▲17.80 |
Add New Post /wp-admin/post-new.php | 1,794 ▲42 | 19.39 ▼2.18 | 384.62 ▼75.71 | 173.65 ▲13.60 |
Media Library /wp-admin/upload.php | 1,723 ▲25 | 6.07 ▲0.55 | 117.06 ▼37.25 | 187.63 ▼4.90 |
Asesor de cookies /wp-admin/tools.php?page=cdp_cookies | 3,172 | 4.09 | 90.86 | 119.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/3com-asesor-de-cookies/plugin.php+53
Undefined variable: i
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/3com-asesor-de-cookies/3com_cookies/config.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/3com-asesor-de-cookies/3com_cookies/config.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/3com-asesor-de-cookies/config.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/3com-asesor-de-cookies/config.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Así aparecerá el aviso de cookies al visitante de su web.), #2 (Panel de configuración que permite cambiar los colores, posición del aviso, etc.)
3com-asesor-de-cookies/plugin.php 85% from 13 tests
The main file in "3com - Asesor de Cookies para normativa española" v. 3.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 330 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("3com-asesor-de-cookies.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,936 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 160 | 427 | 1,024 |
HTML | 7 | 129 | 59 | 821 |
CSS | 3 | 40 | 98 | 674 |
JavaScript | 3 | 76 | 103 | 382 |
XML | 5 | 0 | 0 | 32 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 52 | 92.86% |
▷ Public methods | 56 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
There are no PNG files in this plugin