84% truendo

Code Review | TRUENDO | GDPR Compliant Cookie Manager

WordPress plugin TRUENDO | GDPR Compliant Cookie Manager scored84%from 54 tests.

About plugin

  • Plugin page: truendo
  • Plugin version: 2.3.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Oct 31, 2018
  • Latest release: May 22, 2023
  • Number of updates: 67
  • Update frequency: every 24.9 days
  • Top authors: truendo (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active /4,635 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.57ms] Passed 4 tests

Server-side resources used by TRUENDO | GDPR Compliant Cookie Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.31 ▲1.66
Dashboard /wp-admin3.39 ▲0.0445.46 ▼14.15
Posts /wp-admin/edit.php3.50 ▲0.1543.45 ▼4.18
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.08 ▼5.60
Media Library /wp-admin/upload.php3.31 ▲0.0838.62 ▲4.78
TRUENDO settings /wp-admin/options-general.php?page=truendo_wordpress3.3031.93

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for TRUENDO | GDPR Compliant Cookie Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲14213.49 ▼0.918.16 ▲6.4240.55 ▼1.66
Dashboard /wp-admin2,228 ▲485.70 ▲0.0683.75 ▼1.1878.04 ▲32.56
Posts /wp-admin/edit.php2,139 ▲392.03 ▼0.0535.35 ▲0.7632.01 ▼3.96
Add New Post /wp-admin/post-new.php1,710 ▲18419.97 ▼2.83783.49 ▲125.3348.36 ▼7.20
Media Library /wp-admin/upload.php1,430 ▲304.19 ▲0.04112.60 ▲13.8473.56 ▲29.31
TRUENDO settings /wp-admin/options-general.php?page=truendo_wordpress9902.0525.8842.61

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/truendo/admin/partials/truendo-admin-display.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/truendo/includes/truendo_contactform.php:8

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 97% 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
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

truendo/truendo.php Passed 13 tests

This is the main PHP file of "TRUENDO | GDPR Compliant Cookie Manager" version 2.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
For quick and easy GDPR & Cookie compliance add Truendo to your website

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
Success! There were no dangerous files found in this plugin1,500 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP12175513610
CSS27913356
PO File16171167
JavaScript21857147
JSON100118
HTML30096
SVG1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.14
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/icon-128x128.png4.37KB0.75KB▼ 82.82%