89% member-profile-fields-for-wlm-and-gf-user-registration

Code Review | Member Profile Fields for WishList Member and Gravity Forms User Registration Add-On

WordPress plugin Member Profile Fields for WishList Member and Gravity Forms User Registration Add-On scored89%from 54 tests.

About plugin

  • Plugin page: member-profile-fi...
  • Plugin version: 1.02
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 3, 2020
  • Latest release: May 31, 2023
  • Number of updates: 7
  • Update frequency: every 134.1 days
  • Top authors: jhorowitz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /449 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.79ms] Passed 4 tests

Server-side resources used by Member Profile Fields for WishList Member and Gravity Forms User Registration Add-On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.87 ▼1.42
Dashboard /wp-admin3.34 ▲0.0342.32 ▼1.74
Posts /wp-admin/edit.php3.39 ▲0.0346.07 ▼10.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.26 ▼9.22
Media Library /wp-admin/upload.php3.26 ▲0.0334.93 ▲2.95

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Member Profile Fields for WishList Member and Gravity Forms User Registration Add-On
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.66 ▲0.251.86 ▲0.0345.16 ▲1.70
Dashboard /wp-admin2,206 ▲185.79 ▲0.78118.97 ▲8.9641.39 ▼7.48
Posts /wp-admin/edit.php2,089 ▼31.99 ▲0.0139.18 ▼0.6235.56 ▼1.07
Add New Post /wp-admin/post-new.php1,528 ▼1423.36 ▲5.18679.72 ▲51.9163.58 ▲14.12
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.0994.56 ▼0.7141.70 ▼0.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 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
6 plugin tags: custom fields, user fields, wishlist member, gravityforms, user profile...

member-profile-fields-for-wlm-and-gf-user-registration/member-profile-fields-for-wlm-and-gf-user-registration.php 85% from 13 tests

The main PHP script in "Member Profile Fields for WishList Member and Gravity Forms User Registration Add-On" version 1.02 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Plugin Name: Please shorten the plugin name (currently 84 characters long instead of max. 70)

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
Everything looks great! No dangerous files found in this plugin134 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12828134

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
Functions0
▷ Named functions00.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