68% wp-gdpr-ultimate

Code Review | WP GDPR Ultimate

WordPress plugin WP GDPR Ultimate scored 68% from 54 tests.

About plugin

  • Plugin page: wp-gdpr-ultimate
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.5
  • WordPress version: 6.3.1
  • First release: Mar 29, 2018
  • Latest release: Apr 16, 2018
  • Number of updates: 52
  • Update frequency: every 0.4 days
  • Top authors: ayubi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,611 total downloads

Benchmarks

Plugin footprint 83% from 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.63MB] [CPU: ▼0.12ms] Passed 4 tests

A check of server-side resources used by WP GDPR Ultimate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5630.77 ▼10.99
Dashboard /wp-admin3.95 ▲0.6453.19 ▲3.91
Posts /wp-admin/edit.php4.00 ▲0.6548.14 ▲2.92
Add New Post /wp-admin/post-new.php6.55 ▲0.6696.63 ▲3.68
Media Library /wp-admin/upload.php3.88 ▲0.6543.35 ▲11.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP GDPR Ultimate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.77 ▼0.638.51 ▲6.7957.01 ▲14.21
Dashboard /wp-admin2,227 ▲414.85 ▼0.10105.01 ▼11.1039.56 ▲0.41
Posts /wp-admin/edit.php2,110 ▲212.03 ▲0.0240.48 ▲3.4432.51 ▼2.08
Add New Post /wp-admin/post-new.php1,542 ▲2818.39 ▲0.95643.30 ▼19.2360.11 ▲10.48
Media Library /wp-admin/upload.php1,406 ▲184.22 ▲0.08103.17 ▼12.2341.93 ▼7.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-gdpr-ultimate/public/partials/gdpr_ultimate-public-display.php
    • > /wp-content/plugins/wp-gdpr-ultimate/admin/partials/gdpr_ultimate-admin-display.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_import_field() on null in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/example/advanced-import.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Xbox\\Includes\\XboxCore' not found in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/includes/class-admin-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/loader.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/example/admin-page.php:5
    • > PHP Notice
      Undefined variable: xbox in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/example/advanced-import.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/example/metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Xbox\\Includes\\XboxCore' not found in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/includes/class-metabox.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: gdpr plugin, gdpr woocommerce, gdpr, compliance, wordpress gdpr

wp-gdpr-ultimate/gdpr_ultimate.php 85% from 13 tests

The main file in "WP GDPR Ultimate" v. 1.2.1 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:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-gdpr-ultimate.php" instead of "gdpr_ultimate.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please fix the following items
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .url - Internet Shortcut in Firefox, IE, Chrome, Safari
      • wp-content/plugins/wp-gdpr-ultimate/admin/xbox/documentation/Xbox Documentation.url
43,871 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
JSON10017,069
PHP421,1082,2409,818
CSS252,2142999,032
JavaScript185593683,818
SVG6133,594
PO File3120120396
Sass1172144

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity33.55
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods323
▷ Static methods5316.41%
▷ Public methods29591.33%
▷ Protected methods10.31%
▷ Private methods278.36%
Functions17
▷ Named functions1588.24%
▷ Anonymous functions211.76%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
60 PNG files occupy 0.49MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/xbox/libs/icheck/skins/polaris/polaris@2x.png16.37KB6.77KB▼ 58.66%
admin/xbox/libs/icheck/skins/flat/red.png1.48KB1.65KB0.00%
admin/xbox/example/img/logo-position-left.png0.91KB0.24KB▼ 74.09%
admin/xbox/libs/icheck/skins/flat/blue@2x.png3.14KB2.79KB▼ 11.25%
admin/xbox/example/img/img3.png18.24KB7.09KB▼ 61.12%