78% gdpr-compliance-by-supsystic

Code Review | GDPR Cookie Consent by Supsystic

WordPress plugin GDPR Cookie Consent by Supsystic scored 78% from 54 tests.

About plugin

  • Plugin page: gdpr-compliance-b...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 16, 2018
  • Latest release: Mar 26, 2021
  • Number of updates: 29
  • Update frequency: every 35.0 days
  • Top authors: supsystic.com (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active / 16,583 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲1.43MB] [CPU: ▼135.42ms] Passed 4 tests

This is a short check of server-side resources used by GDPR Cookie Consent by Supsystic
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲1.6149.20 ▲26.03
Dashboard /wp-admin4.51 ▲1.4651.20 ▲1.86
Posts /wp-admin/edit.php4.56 ▲1.4559.17 ▲5.08
Add New Post /wp-admin/post-new.php6.81 ▲1.37103.16 ▼562.08
Media Library /wp-admin/upload.php4.45 ▲1.4551.12 ▲13.46
Featured Plugins /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=featured-plugins4.6650.26
GDPR Compliance by Supsystic /wp-admin/admin.php?page=gdpr-compliance-by-supsystic4.7359.21
Settings /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=gdpr-settings4.7345.90

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 130 new files
Database: no new tables, 4 new options
New WordPress options

Browser metrics Passed 4 tests

GDPR Cookie Consent by Supsystic: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,979 ▲40716.70 ▲1.1930.95 ▲20.1350.92 ▲3.42
Dashboard /wp-admin3,010 ▲795.86 ▼0.20158.79 ▼4.47121.53 ▲8.73
Posts /wp-admin/edit.php2,779 ▲402.71 ▼0.0065.06 ▼26.3597.24 ▼17.50
Add New Post /wp-admin/post-new.php1,633 ▼5018.87 ▲0.02413.56 ▼10.68108.47 ▼0.56
Media Library /wp-admin/upload.php1,847 ▲375.03 ▲0.01156.03 ▼42.39121.02 ▲1.59
Featured Plugins /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=featured-plugins2,4504.6686.85183.34
GDPR Compliance by Supsystic /wp-admin/admin.php?page=gdpr-compliance-by-supsystic6,28110.68419.08156.61
Settings /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=gdpr-settings6,28711.01397.98148.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 2 options
    • gdprsup_plugin_activation_errors
    • gdprsup_opts_data

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gdpr-compliance-by-supsystic&tab=gdpr-settings
    • > Notice in wp-content/plugins/gdpr-compliance-by-supsystic/modules/options/views/tpl/optionsAdminPage.php+40
    Undefined property: optionsViewGdprsup::$mainLink

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 take a closer look at the following
  • 53× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gdpr-compliance-by-supsystic/modules/supsystic_promo/views/tpl/overviewTabContent.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gdpr-compliance-by-supsystic/modules/supsystic_promo/views/tpl/featuredPlugins.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'controllerGdprsup' not found in wp-content/plugins/gdpr-compliance-by-supsystic/modules/mail/controller.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'modelGdprsup' not found in wp-content/plugins/gdpr-compliance-by-supsystic/modules/gdpr/models/gdpr.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'controllerGdprsup' not found in wp-content/plugins/gdpr-compliance-by-supsystic/modules/options/controller.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gdpr-compliance-by-supsystic/modules/options/views/tpl/optionsSettingsTabContent.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'modelGdprsup' not found in wp-content/plugins/gdpr-compliance-by-supsystic/modules/options/models/options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gdpr-compliance-by-supsystic/config.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gdpr-compliance-by-supsystic/modules/mail/views/tpl/mailAdmin.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/gdpr-compliance-by-supsystic/modules/gdpr/views/tpl/gdprHtml.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 96% 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
8 plugin tags: gdpr cookie consent, gdpr compliance, gdpr, cookie consent, cookie notification...

gdpr-compliance-by-supsystic/gdprsup.php 92% from 13 tests

This is the main PHP file of "GDPR Cookie Consent by Supsystic" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gdpr-compliance-by-supsystic.php" instead of "gdprsup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin11,620 lines of code in 105 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity24.20
▷ Minimum class complexity1.00
▷ Maximum class complexity194.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
▷ Abstract classes712.73%
▷ Concrete classes4887.27%
▷ Final classes00.00%
▷ Static methods25137.41%
▷ Public methods61491.51%
▷ Protected methods405.96%
▷ Private methods172.53%
▷ Named functions27100.00%
▷ Anonymous functions00.00%
▷ Global constants6492.75%
▷ Class constants57.25%
▷ Public constants5100.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
22 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/minimal@2x.png3.38KB2.56KB▼ 24.15%
css/images/ui-icons_aaaaaa_256x240.png6.82KB4.17KB▼ 38.81%
css/images/ui-bg_highlight-hard_55_555555_1x100.png0.24KB0.15KB▼ 38.00%
css/images/ui-bg_gloss-wave_16_121212_500x100.png3.76KB0.98KB▼ 74.04%