78% ultimate-gdpr-consent

Code Review | Ultimate GDPR Consent

WordPress plugin Ultimate GDPR Consent scored78%from 54 tests.

About plugin

  • Plugin page: ultimate-gdpr-con...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 14, 2018
  • Latest release: Jul 26, 2018
  • Number of updates: 7
  • Update frequency: every 1.7 days
  • Top authors: wpexecdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,184 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.14MB] [CPU: ▼9.23ms] Passed 4 tests

A check of server-side resources used by Ultimate GDPR Consent
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.85 ▼0.72
Dashboard /wp-admin3.46 ▲0.1144.29 ▼15.87
Posts /wp-admin/edit.php3.57 ▲0.2143.43 ▼6.54
Add New Post /wp-admin/post-new.php6.04 ▲0.1581.20 ▼11.35
Media Library /wp-admin/upload.php3.38 ▲0.1532.36 ▼3.17

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options
ultimate-gdpr-consent
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Ultimate GDPR Consent: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,026 ▲26513.48 ▼1.1312.18 ▲10.3745.81 ▲0.68
Dashboard /wp-admin2,209 ▲325.54 ▼0.1284.10 ▼14.8937.37 ▼5.00
Posts /wp-admin/edit.php2,123 ▲232.00 ▼0.0234.10 ▼1.2431.66 ▼2.01
Add New Post /wp-admin/post-new.php1,543 ▲1523.55 ▲0.36675.16 ▼8.0157.27 ▼0.77
Media Library /wp-admin/upload.php1,420 ▲204.18 ▲0.02101.90 ▲2.2045.59 ▼2.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • ultimate-gdpr-consent
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ultimate-gdpr-consent/public/partials/ultimate-gdpr-consent-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-gdpr-consent/admin/partials/ultimate-gdpr-consent-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ultimate-gdpr-consent === )
Please take inspiration from this readme.txt

ultimate-gdpr-consent/ultimate-gdpr-consent.php Passed 13 tests

The main file in "Ultimate GDPR Consent" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
111 characters long description:
Ultimate GDPR Consent is simple and fully customizable cookies notification for EU GDPR/Cookie Law regulations.

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
Good job! No executable or dangerous file extensions detected2,312 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript8274121,067
PHP132266451,003
Sass234238
CSS3083
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity9.50
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin