89% rgpd-fields-registration-form

Code Review | RGPD Fields Registration Form

WordPress plugin RGPD Fields Registration Form scored89%from 54 tests.

About plugin

  • Plugin page: rgpd-fields-regis...
  • Plugin version: 0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.4
  • WordPress version: 6.3.1
  • First release: Apr 17, 2020
  • Latest release: Sep 17, 2020
  • Number of updates: 7
  • Update frequency: every 21.7 days
  • Top authors: rubenalonsoes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,046 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.16ms] Passed 4 tests

Analyzing server-side resources used by RGPD Fields Registration Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.83 ▼4.43
Dashboard /wp-admin3.31 ▲0.0146.16 ▼0.56
Posts /wp-admin/edit.php3.36 ▲0.0147.04 ▲0.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.79 ▼3.74
Media Library /wp-admin/upload.php3.23 ▲0.0139.72 ▲5.09

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

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

Browser metrics Passed 4 tests

A check of browser resources used by RGPD Fields Registration Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.24 ▼1.141.81 ▼0.1838.70 ▼11.04
Dashboard /wp-admin2,219 ▲315.85 ▲0.7599.18 ▼7.8938.02 ▼4.99
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0040.04 ▼1.0038.02 ▲2.93
Add New Post /wp-admin/post-new.php1,546 ▲1223.28 ▲0.25630.42 ▼46.4655.80 ▼0.54
Media Library /wp-admin/upload.php1,404 ▲134.25 ▲0.06100.60 ▼0.4146.05 ▲2.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
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

rgpd-fields-registration-form/rgpd-frf.php 92% from 13 tests

The entry point to "RGPD Fields Registration Form" version 0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rgpd-fields-registration-form.php" instead of "rgpd-frf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13021164
CSS12011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin