84% easy-custom-registration-fields

Code Review | Easy Custom Registration Fields

WordPress plugin Easy Custom Registration Fields scored84%from 54 tests.

About plugin

  • Plugin page: easy-custom-regis...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 20, 2021
  • Latest release: Mar 20, 2021
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: rezamas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /332 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Easy Custom Registration Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.70 ▲0.41
Dashboard /wp-admin3.31 ▲0.0146.93 ▼1.03
Posts /wp-admin/edit.php3.36 ▲0.0147.15 ▲2.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.73 ▼2.30
Media Library /wp-admin/upload.php3.23 ▲0.0137.04 ▲0.29
Easy Custom Registration Fields /wp-admin/users.php?page=ecrfryan-settings-page3.2032.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Easy Custom Registration Fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.30 ▼0.061.83 ▼0.5746.02 ▲0.87
Dashboard /wp-admin2,210 ▲224.86 ▼0.0198.37 ▼18.8339.79 ▼6.49
Posts /wp-admin/edit.php2,096 ▲42.01 ▼0.0435.15 ▼0.5936.08 ▲3.88
Add New Post /wp-admin/post-new.php1,527 ▼623.12 ▼0.18622.73 ▼61.7165.60 ▲1.95
Media Library /wp-admin/upload.php1,392 ▲14.23 ▲0.0693.81 ▼3.8641.45 ▼3.57
Easy Custom Registration Fields /wp-admin/users.php?page=ecrfryan-settings-page8832.0623.7625.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/easy-custom-registration-fields/easy-custom-registration-fields.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
9 plugin tags: signup, custom fields, user, registration form, registration fields...

easy-custom-registration-fields/easy-custom-registration-fields.php 92% from 13 tests

"Easy Custom Registration Fields" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected210 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11713140
PO File1253470

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.18
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin