83% gdpr-ccpa-compliance

Code Review | Privacy Offload - GDPR/CCPA Manager

WordPress plugin Privacy Offload - GDPR/CCPA Manager scored83%from 54 tests.

About plugin

  • Plugin page: gdpr-ccpa-compliance
  • Plugin version: 3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.1
  • WordPress version: 6.3.1
  • First release: May 12, 2021
  • Latest release: May 12, 2021
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: ashu3496 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /495 total downloads

Benchmarks

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

This is a short check of server-side resources used by Privacy Offload - GDPR/CCPA Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.06291.61 ▲251.37
Dashboard /wp-admin3.33 ▲0.0343.96 ▼5.60
Posts /wp-admin/edit.php3.38 ▲0.0245.18 ▼2.86
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.66 ▼11.23
Media Library /wp-admin/upload.php3.25 ▲0.0236.73 ▲2.92

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
poplugin_registered_org
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Privacy Offload - GDPR/CCPA Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,466 ▼30513.18 ▼1.130.76 ▼1.250.32 ▼42.42
Dashboard /wp-admin2,218 ▲305.87 ▲1.01103.81 ▼13.6539.41 ▼9.14
Posts /wp-admin/edit.php2,101 ▲91.99 ▼0.0536.20 ▼0.0531.64 ▼2.88
Add New Post /wp-admin/post-new.php1,543 ▲2423.54 ▲0.19657.86 ▼11.0969.01 ▲15.02
Media Library /wp-admin/upload.php1,400 ▲94.18 ▼0.0394.73 ▼4.9843.11 ▼4.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • poplugin_registered_org
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gdpr-ccpa-compliance/includes/foot-links.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdpr-ccpa-compliance/includes/onboarding.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdpr-ccpa-compliance/includes/custom-menu.php:57
    • > PHP Warning
      Use of undefined constant PRIVACY_OFFLOAD_PLUGIN_BASENAME - assumed 'PRIVACY_OFFLOAD_PLUGIN_BASENAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/gdpr-ccpa-compliance/includes/foot-links.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/gdpr-ccpa-compliance/includes/po-menu-page.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Contributors: Contributors not specified
The official readme.txt is a good inspiration

gdpr-ccpa-compliance/gdpr-ccpa-compliance-solution.php 77% from 13 tests

The principal PHP file in "Privacy Offload - GDPR/CCPA Manager" v. 3.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gdpr-ccpa-compliance.php" instead of "gdpr-ccpa-compliance-solution.php")
  • 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
No dangerous file extensions were detected400 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP62421229
CSS1407171

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo_old.png69.30KB20.86KB▼ 69.91%
images/banner.png36.76KB10.82KB▼ 70.55%
images/logo.png5.37KB3.09KB▼ 42.35%