73% ccpa-compliance-tool

Code Review | All-in-One Data Privacy & Cookie Policy Solution for GDPR/CCPA

WordPress plugin All-in-One Data Privacy & Cookie Policy Solution for GDPR/CCPA scored73%from 54 tests.

About plugin

  • Plugin page: ccpa-compliance-tool
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.4
  • WordPress version: 6.3.1
  • First release: Mar 27, 2020
  • Latest release: May 6, 2020
  • Number of updates: 22
  • Update frequency: every 2.2 days
  • Top authors: privacypolice4 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /728 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.86MB] [CPU: ▼24.22ms] Passed 4 tests

Server-side resources used by All-in-One Data Privacy & Cookie Policy Solution for GDPR/CCPA
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.30 ▲0.84
Dashboard /wp-admin3.08 ▼0.2228.26 ▼19.53
Posts /wp-admin/edit.php3.08 ▼0.2731.75 ▼14.45
Add New Post /wp-admin/post-new.php3.08 ▼2.8030.82 ▼56.89
Media Library /wp-admin/upload.php3.08 ▼0.1429.16 ▼6.02
CCPA Compliance Tool /wp-admin/tools.php?page=ccpa-compliance-tool3.0828.29

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options
ccpact_privacy_api_key_tmp
can_compress_scripts
db_upgraded
widget_recent-comments
ccpact_privacy_mode
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
ccpact_privacy_mode_tmp
ccpact_privacy_domain_tmp

Browser metrics Passed 4 tests

A check of browser resources used by All-in-One Data Privacy & Cookie Policy Solution for GDPR/CCPA
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.201.69 ▼0.0441.43 ▼2.65
Dashboard /wp-admin2,207 ▲224.89 ▼0.14107.76 ▼7.6543.55 ▲0.49
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0440.43 ▼1.9535.05 ▼3.28
Add New Post /wp-admin/post-new.php1,545 ▲2518.28 ▼5.06592.39 ▼96.3776.00 ▲19.78
Media Library /wp-admin/upload.php1,389 ▼24.21 ▲0.0297.81 ▼5.1241.99 ▼6.71
CCPA Compliance Tool /wp-admin/tools.php?page=ccpa-compliance-tool7912.0324.4530.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/ccpa-compliance-tool/includes/ccpact-functions.php+60
    Undefined index: port
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=ccpa-compliance-tool
    • > Notice in wp-content/plugins/ccpa-compliance-tool/includes/ccpact-functions.php+60
    Undefined index: port

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

ccpa-compliance-tool/ccpa-compliance-tool.php 85% from 13 tests

This is the main PHP file of "All-in-One Data Privacy & Cookie Policy Solution for GDPR/CCPA" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin367 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP270116324
YAML12028
Markdown16015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.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

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