79% click-datos-lopd

Code Review | Protección de Datos RGPD

WordPress plugin Protección de Datos RGPD scored 79% from 54 tests.

About plugin

  • Plugin page: click-datos-lopd
  • Plugin version: 3.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Feb 19, 2018
  • Latest release: Aug 17, 2020
  • Number of updates: 108
  • Update frequency: every 8.5 days
  • Top authors: atalantic (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

6,000+ active / 88,970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.40MB] [CPU: ▲2.13ms] Passed 4 tests

A check of server-side resources used by Protección de Datos RGPD
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.44 ▼2.91
Dashboard /wp-admin3.80 ▲0.5048.29 ▲0.07
Posts /wp-admin/edit.php3.91 ▲0.5653.76 ▲8.58
Add New Post /wp-admin/post-new.php6.40 ▲0.5290.49 ▲5.14
Media Library /wp-admin/upload.php3.73 ▲0.5039.37 ▲6.22
Precarga de cookies /wp-admin/admin.php?page=click-datos-lopd/admin/class-cdlopd-admin.php/custom43.7134.95
RGPD ClickDatos /wp-admin/admin.php?page=cdlopd13.7136.26
Páginas /wp-admin/admin.php?page=click-datos-lopd/admin/class-cdlopd-admin.php/custom33.7137.24
Formularios /wp-admin/admin.php?page=click-datos-lopd/admin/class-cdlopd-admin.php/custom23.7136.18
Cookies /wp-admin/admin.php?page=click-datos-lopd/admin/class-cdlopd-admin.php/custom13.7135.92

Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
cdlopd_content_settings
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Protección de Datos RGPD
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,056 ▲29913.87 ▼0.727.14 ▲5.0741.92 ▼9.27
Dashboard /wp-admin2,304 ▲1165.23 ▼0.69112.16 ▼2.4546.53 ▼1.23
Posts /wp-admin/edit.php2,186 ▲972.36 ▲0.3442.44 ▲6.1936.98 ▲0.09
Add New Post /wp-admin/post-new.php1,666 ▲13321.88 ▼1.18642.65 ▼34.5038.41 ▼25.16
Media Library /wp-admin/upload.php1,486 ▲1014.47 ▲0.2798.49 ▼24.7843.36 ▼4.88
Precarga de cookies /wp-admin/admin.php?page=click-datos-lopd/admin/class-cdlopd-admin.php/custom41,3162.2429.7528.87
RGPD ClickDatos /wp-admin/admin.php?page=cdlopd11,2012.2427.7135.52
Páginas /wp-admin/admin.php?page=click-datos-lopd/admin/class-cdlopd-admin.php/custom31,7032.1827.7437.89
Formularios /wp-admin/admin.php?page=click-datos-lopd/admin/class-cdlopd-admin.php/custom21,3622.2627.9232.47
Cookies /wp-admin/admin.php?page=click-datos-lopd/admin/class-cdlopd-admin.php/custom12,5692.8274.2336.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • cdlopd_content_settings
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/click-datos-lopd/admin/mail-contacto.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=click-datos-lopd/admin/class-cdlopd-admin.php/custom1
    • > Javascript (severe) in unknown
    http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js?ver=6.3.1 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: politica de cookies, lopd, proteccion datos, clausulas legales, rgpd

click-datos-lopd/click-datos-lopd.php Passed 13 tests

The entry point to "Protección de Datos RGPD" version 3.1.0 is a PHP file that has certain tags in its header comment area
92 characters long description:
Plugin para adecuación a RGPD LOPD. Páginas legales, banner de cookies, cláusulas legales

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
Good job! No executable or dangerous file extensions detected10,386 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS429166,565
PHP72661723,081
XML200358
PO File28085207
JavaScript31729175

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity109.50
▷ Minimum class complexity56.00
▷ Maximum class complexity163.00
Average method complexity4.34
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods52
▷ Static methods00.00%
▷ Public methods52100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/trashtransparentenaranja.png6.05KB4.06KB▼ 32.85%
assets/images/trashtransparenteblanca.png5.93KB4.06KB▼ 31.49%