89% registration-agreement-checkboxes

Code Review | Registration Agreement Checkboxes and/or RODO Agreements

WordPress plugin Registration Agreement Checkboxes and/or RODO Agreements scored 89% from 54 tests.

About plugin

  • Plugin page: registration-agre...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2019
  • Latest release: May 17, 2023
  • Number of updates: 17
  • Update frequency: every 72.7 days
  • Top authors: gregbialowas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 942 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
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.18ms] Passed 4 tests

An overview of server-side resources used by Registration Agreement Checkboxes and/or RODO Agreements
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1343.41 ▲1.47
Dashboard /wp-admin3.43 ▲0.1252.94 ▼0.63
Posts /wp-admin/edit.php3.55 ▲0.1853.07 ▼2.24
Add New Post /wp-admin/post-new.php6.01 ▲0.12101.37 ▲3.93
Media Library /wp-admin/upload.php3.36 ▲0.1235.79 ▲0.66

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Registration Agreement Checkboxes and/or RODO Agreements
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲5613.36 ▼0.271.95 ▼2.8744.28 ▼0.40
Dashboard /wp-admin2,224 ▲185.82 ▲0.96108.11 ▼4.3142.60 ▲0.35
Posts /wp-admin/edit.php2,110 ▲212.06 ▲0.0644.78 ▲5.3835.56 ▲1.41
Add New Post /wp-admin/post-new.php1,541 ▲2723.31 ▲5.81601.29 ▼10.8363.29 ▲3.82
Media Library /wp-admin/upload.php1,409 ▲184.22 ▲0.0599.39 ▼3.2149.59 ▲5.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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
There were no browser issues found

Optimizations

Plugin configuration 93% from 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
5 plugin tags: agreement, rodo, woocommerce, policy, registration

registration-agreement-checkboxes/registration-checkboxes.php 85% from 13 tests

The main PHP script in "Registration Agreement Checkboxes and/or RODO Agreements" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("registration-agreement-checkboxes.php" instead of "registration-checkboxes.php")

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
There were no executable files found in this plugin666 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4114184433
CSS242121
PO File134153112

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods18100.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin