78% registration-form-eu

Code Review | Registration form eu

WordPress plugin Registration form eu scored78%from 54 tests.

About plugin

  • Plugin page: registration-form-eu
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9
  • WordPress version: 6.3.1
  • First release: Sep 29, 2017
  • Latest release: Nov 28, 2017
  • Number of updates: 21
  • Update frequency: every 3.0 days
  • Top authors: ilariotr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /669 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.03ms] Passed 4 tests

An overview of server-side resources used by Registration form eu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.52 ▼2.34
Dashboard /wp-admin3.32 ▼0.0346.97 ▼16.28
Posts /wp-admin/edit.php3.37 ▲0.0146.94 ▲1.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.65 ▼14.27
Media Library /wp-admin/upload.php3.24 ▲0.0134.21 ▼3.24
Setup /wp-admin/admin.php?page=rfe_registration_form_eu_setup_opt3.1830.28
Registration form eu /wp-admin/admin.php?page=registration-form-eu3.1828.01

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Registration form eu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.28 ▲0.011.71 ▲0.1746.56 ▲7.94
Dashboard /wp-admin2,221 ▲505.56 ▼0.1080.58 ▼21.0966.28 ▲19.61
Posts /wp-admin/edit.php2,129 ▲291.97 ▼0.0537.22 ▲1.7433.44 ▼1.31
Add New Post /wp-admin/post-new.php1,548 ▲2223.63 ▲0.21725.34 ▲55.2751.40 ▼8.42
Media Library /wp-admin/upload.php1,420 ▲204.20 ▲0.0197.85 ▼2.7184.62 ▲35.79
Setup /wp-admin/admin.php?page=rfe_registration_form_eu_setup_opt8701.9922.3225.17
Registration form eu /wp-admin/admin.php?page=registration-form-eu8352.1525.0926.88

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=registration-form-eu
    • > Notice in wp-content/plugins/registration-form-eu/registration-form-eu.php+94
    Trying to access array offset on value of type bool

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/registration-form-eu/classes/class.rfe.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/registration-form-eu/registration-form-eu.php:57

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Registration form eu settings page) image not found
You can take inspiration from this readme.txt

registration-form-eu/registration-form-eu.php Passed 13 tests

The entry point to "Registration form eu" version 1.0.3 is a PHP file that has certain tags in its header comment area
46 characters long description:
Plugin user signup and customize welcome email

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 plugin304 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22555164
PO File3450140

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png12.90KB6.37KB▼ 50.64%
images/signup.png0.68KB0.81KB0.00%
screenshot-2.png28.13KB13.52KB▼ 51.95%