94% adapta-rgpd

Code Review | Adapta RGPD

WordPress plugin Adapta RGPD scored 94% from 54 tests.

About plugin

  • Plugin page: adapta-rgpd
  • Plugin version: 1.3.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: May 27, 2018
  • Latest release: Jul 21, 2021
  • Number of updates: 108
  • Update frequency: every 10.7 days
  • Top authors: cesarmaeso (100%)

Code review

54 tests

User reviews

90 reviews

Install metrics

40,000+ active / 178,118 total downloads


Plugin footprint Passed 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.65MB] [CPU: ▼142.89ms] Passed 4 tests

An overview of server-side resources used by Adapta RGPD
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.6526.74 ▲3.96
Dashboard /wp-admin3.72 ▲0.6633.25 ▼1.86
Posts /wp-admin/edit.php3.77 ▲0.6632.29 ▲4.51
Add New Post /wp-admin/post-new.php6.08 ▲0.6470.58 ▼578.17
Media Library /wp-admin/upload.php3.66 ▲0.6626.00 ▲5.00

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 137 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Adapta RGPD
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲10715.60 ▼0.098.40 ▲3.3573.27 ▼5.34
Dashboard /wp-admin2,975 ▲766.31 ▲0.18112.82 ▼18.24168.66 ▼7.27
Posts /wp-admin/edit.php2,783 ▲433.28 ▲0.0663.24 ▼3.60137.40 ▼3.07
Add New Post /wp-admin/post-new.php2,529 ▼1,20616.95 ▼1.48389.45 ▼34.38161.79 ▼6.19
Media Library /wp-admin/upload.php1,794 ▲425.73 ▲0.19139.90 ▼14.35180.74 ▼15.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Loader/StringLoader.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Mustache_Cache_AbstractCache' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Cache/NoopCache.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/adapta-rgpd/tests/test-base.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Exception/RuntimeException.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Mustache_Cache_AbstractCache' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Cache/FilesystemCache.php:22
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/adapta-rgpd/tests/bootstrap.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/adapta-rgpd/tests/test-shortcodes.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/adapta-rgpd/tests/test-admin.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/adapta-rgpd/lib/vendor/Mustache/Exception/UnknownFilterException.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adapta-rgpd/adapta-rgpd.php:427

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: lopd, rgpd, privacidad, legal, cookies

adapta-rgpd/adapta-rgpd.php 92% from 13 tests

"Adapta RGPD" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin16,372 lines of code in 128 files:
LanguageFilesBlank linesComment linesLines of code
PO File14965141,613

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.39
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
▷ Abstract classes37.50%
▷ Concrete classes3792.50%
▷ Final classes12.70%
▷ Static methods93.01%
▷ Public methods24481.61%
▷ Protected methods165.35%
▷ Private methods3913.04%
▷ Named functions538.46%
▷ Anonymous functions861.54%
▷ Global constants00.00%
▷ Class constants66100.00%
▷ Public constants66100.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
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/moderno-oscuro-columnas.png19.21KB9.58KB▼ 50.10%
assets/images/moderno-claro.png17.53KB8.80KB▼ 49.80%
assets/images/clasico.png18.85KB9.01KB▼ 52.18%
assets/images/moderno-oscuro.png17.81KB8.63KB▼ 51.51%