83% proteccion-datos-rgpd

Code Review | Protección de datos - RGPD

WordPress plugin Protección de datos - RGPD scored83%from 54 tests.

About plugin

  • Plugin page: proteccion-datos-...
  • Plugin version: 0.65
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.2
  • WordPress version: 6.3.1
  • First release: Jul 23, 2018
  • Latest release: Jun 14, 2023
  • Number of updates: 126
  • Update frequency: every 14.5 days
  • Top authors: ABCdatos (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

8,000+ active /83,200 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.42MB] [CPU: ▲5.24ms] Passed 4 tests

A check of server-side resources used by Protección de datos - RGPD
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3145.52 ▲5.84
Dashboard /wp-admin3.81 ▲0.5050.72 ▲2.16
Posts /wp-admin/edit.php3.86 ▲0.5051.60 ▲2.90
Add New Post /wp-admin/post-new.php6.33 ▲0.4496.52 ▲10.05
Media Library /wp-admin/upload.php3.67 ▲0.4442.66 ▲10.31

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Protección de datos - RGPD: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲5113.13 ▼1.454.50 ▲2.6543.00 ▲3.20
Dashboard /wp-admin2,228 ▲404.87 ▼0.02108.72 ▼5.7741.89 ▼2.87
Posts /wp-admin/edit.php2,115 ▲232.06 ▲0.0041.43 ▲0.4034.96 ▼2.39
Add New Post /wp-admin/post-new.php1,527 ▼617.79 ▼5.40668.50 ▲79.0756.89 ▼1.21
Media Library /wp-admin/upload.php1,414 ▲234.23 ▼0.0597.08 ▼5.4340.39 ▼2.55

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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 take a closer look at the following
  • 11× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/proteccion-datos-rgpd/admin/options.php
    • > /wp-content/plugins/proteccion-datos-rgpd/uninstall.php
    • > /wp-content/plugins/proteccion-datos-rgpd/formularios.php
    • > /wp-content/plugins/proteccion-datos-rgpd/lista_opciones.php
    • > /wp-content/plugins/proteccion-datos-rgpd/politica-privacidad.php
    • > /wp-content/plugins/proteccion-datos-rgpd/pie.php
    • > /wp-content/plugins/proteccion-datos-rgpd/insercion-cookies.php
    • > /wp-content/plugins/proteccion-datos-rgpd/proteccion-datos-rgpd.php
    • > /wp-content/plugins/proteccion-datos-rgpd/jetpack-suscripcion.php
    • > /wp-content/plugins/proteccion-datos-rgpd/politica-cookies.php

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

proteccion-datos-rgpd/proteccion-datos-rgpd.php 85% from 13 tests

The primary PHP file in "Protección de datos - RGPD" version 0.65 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Success! There were no dangerous files found in this plugin2,343 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP113152822,343

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions190
▷ Named functions190100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/proteccion-datos-rgpd-32x32.png0.82KB0.68KB▼ 16.61%