84% consent-to-the-processing-of-personal-data

Code Review | Consent to the processing of personal data

WordPress plugin Consent to the processing of personal data scored84%from 54 tests.

About plugin

  • Plugin page: consent-to-the-pr...
  • Plugin version: 0.8.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Jun 3, 2018
  • Latest release: Jul 9, 2018
  • Number of updates: 27
  • Update frequency: every 1.3 days
  • Top authors: lincaseidhe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /723 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
Installer ran successfully

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

A check of server-side resources used by Consent to the processing of personal data
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0142.00 ▼1.71
Dashboard /wp-admin3.36 ▼0.0350.64 ▼19.61
Posts /wp-admin/edit.php3.41 ▲0.0152.91 ▼0.59
Add New Post /wp-admin/post-new.php5.94 ▲0.0186.41 ▼16.96
Media Library /wp-admin/upload.php3.28 ▲0.0135.95 ▼1.38

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Consent to the processing of personal data: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.111.67 ▼0.2544.07 ▲3.09
Dashboard /wp-admin2,195 ▲155.63 ▼0.0484.40 ▼5.7341.27 ▼1.34
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0536.60 ▲1.0837.32 ▲2.64
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▲0.21683.93 ▼16.0453.69 ▲2.72
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.1096.07 ▼29.5743.87 ▼6.02

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/consent-to-the-processing-of-personal-data/consent-to-the-processing-of-personal-data.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: comments

consent-to-the-processing-of-personal-data/consent-to-the-processing-of-personal-data.php Passed 13 tests

The main PHP file in "Consent to the processing of personal data" ver. 0.8.2 adds more information about the plugin and also serves as the entry point for this plugin
104 characters long description:
Adds consent to the processing of personal data in the comment form for Wordpress for unauthorized users

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected52 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File12232
PHP171520

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin