10% 3com-asesor-de-cookies

Code Review | 3com - Asesor de Cookies para normativa española

WordPress plugin 3com - Asesor de Cookies para normativa española scored 10% from 54 tests.

About plugin

  • Plugin page: 3com-asesor-de-co...
  • Plugin version: 3.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.7
  • WordPress version: 5.9.2
  • First release: Jul 17, 2018
  • Latest release: Jan 23, 2019
  • Number of updates: 28
  • Update frequency: every 7.2 days
  • Top authors: 3comunicacion (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 6,987 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.1956.84 ▼3.86
Dashboard /wp-admin3.55 ▲0.1434.67 ▲2.57
Posts /wp-admin/edit.php3.78 ▲0.1338.95 ▲2.77
Add New Post /wp-admin/post-new.php7.02 ▲0.04100.95 ▼1,175.13
Media Library /wp-admin/upload.php3.43 ▲0.1324.71 ▼2.38
Asesor de cookies /wp-admin/tools.php?page=cdp_cookies3.4531.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,969 ▲21516.93 ▲1.3211.64 ▲4.6912.94 ▲9.65
Dashboard /wp-admin2,920 ▲626.93 ▲0.83120.19 ▼19.52157.58 ▼7.51
Posts /wp-admin/edit.php2,722 ▲313.55 ▲0.3067.61 ▲1.50160.96 ▲17.80
Add New Post /wp-admin/post-new.php1,794 ▲4219.39 ▼2.18384.62 ▼75.71173.65 ▲13.60
Media Library /wp-admin/upload.php1,723 ▲256.07 ▲0.55117.06 ▼37.25187.63 ▼4.90
Asesor de cookies /wp-admin/tools.php?page=cdp_cookies3,1724.0990.86119.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

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.)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP61604271,024
HTML712959821
CSS34098674
JavaScript376103382
XML50032
Markdown1103

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 code0.34
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods56
▷ Static methods5292.86%
▷ Public methods56100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.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