89% privado-gdpr-ccpa-cookie-consent

Code Review | Privado’s GDPR Cookie Consent Solution(India’s PDP Act & CCPA Ready)

WordPress plugin Privado’s GDPR Cookie Consent Solution(India’s PDP Act & CCPA Ready) scored89%from 54 tests.

About plugin

  • Plugin page: privado-gdpr-ccpa...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 26, 2021
  • Latest release: Jan 26, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: vaibhavantil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /365 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.42ms] Passed 4 tests

A check of server-side resources used by Privado’s GDPR Cookie Consent Solution(India’s PDP Act & CCPA Ready)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.54 ▼4.92
Dashboard /wp-admin3.31 ▼0.0348.43 ▼20.01
Posts /wp-admin/edit.php3.36 ▲0.0150.57 ▲1.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.67 ▼15.19
Media Library /wp-admin/upload.php3.23 ▲0.0135.93 ▼1.55
Privado's Cookie Consent Solution /wp-admin/options-general.php?page=cookie_consent_solution3.2033.13

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Privado’s GDPR Cookie Consent Solution(India’s PDP Act & CCPA Ready)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲5813.60 ▼0.601.99 ▲0.0342.57 ▼0.32
Dashboard /wp-admin2,222 ▲225.84 ▼0.0497.58 ▼2.3236.32 ▼11.27
Posts /wp-admin/edit.php2,107 ▲72.04 ▲0.0439.07 ▼1.5736.41 ▲2.49
Add New Post /wp-admin/post-new.php1,529 ▼1617.60 ▼5.79681.03 ▲49.9559.85 ▲5.70
Media Library /wp-admin/upload.php1,404 ▲134.14 ▼0.13108.29 ▲9.0645.79 ▲1.16
Privado's Cookie Consent Solution /wp-admin/options-general.php?page=cookie_consent_solution8361.9828.0431.41

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Requires at least: Invalid version format
You can look at the official readme.txt

privado-gdpr-ccpa-cookie-consent/cookie-consent-solution.php 77% from 13 tests

The primary PHP file in "Privado’s GDPR Cookie Consent Solution(India’s PDP Act & CCPA Ready)" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("privado-gdpr-ccpa-cookie-consent.php" instead of "cookie-consent-solution.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin145 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14026145

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin