94% invitation-based-registrations

Code Review | Invitation Based Registrations

WordPress plugin Invitation Based Registrations scored 94% from 54 tests.

About plugin

  • Plugin page: invitation-based-...
  • Plugin version: 2.2.83
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 5.9.2
  • First release: Dec 31, 2017
  • Latest release: Aug 31, 2021
  • Number of updates: 24
  • Update frequency: every 56.3 days
  • Top authors: wpshrike (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

800+ active / 8,977 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼293.19ms] Passed 4 tests

Analyzing server-side resources used by Invitation Based Registrations
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0158.92 ▲6.99
Dashboard /wp-admin3.44 ▲0.0333.94 ▲1.45
Posts /wp-admin/edit.php3.66 ▲0.0238.22 ▼0.52
Add New Post /wp-admin/post-new.php6.90 ▼0.0789.83 ▼1,172.37
Media Library /wp-admin/upload.php3.31 ▲0.0224.80 ▼1.33
SMTP Setup /wp-admin/admin.php?page=invite_users_smtp3.2620.72
Role Based Access /wp-admin/admin.php?page=invite_role_based_access3.2823.30
Advanced Settings /wp-admin/admin.php?page=invite_advanced_settings3.2821.80
Registration Template /wp-admin/admin.php?page=invite_register_template_configure3.2824.25
Email Template /wp-admin/admin.php?page=invite_users_template3.2822.53
Invite Users /wp-admin/admin.php?page=invite_users3.2822.75

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Invitation Based Registrations: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,840 ▲8616.16 ▲0.416.74 ▲1.062.64 ▲0.20
Dashboard /wp-admin2,946 ▲926.08 ▼0.08115.57 ▼18.21174.32 ▲11.07
Posts /wp-admin/edit.php2,743 ▲863.12 ▼0.1365.17 ▼0.31145.59 ▲4.46
Add New Post /wp-admin/post-new.php1,786 ▲7520.90 ▲0.17453.50 ▼23.93198.05 ▲40.86
Media Library /wp-admin/upload.php1,755 ▲575.66 ▲0.11125.05 ▼8.48207.60 ▲24.21
SMTP Setup /wp-admin/admin.php?page=invite_users_smtp1,1702.3853.13116.12
Role Based Access /wp-admin/admin.php?page=invite_role_based_access1,0602.4053.42104.33
Advanced Settings /wp-admin/admin.php?page=invite_advanced_settings1,0552.3753.28103.81
Registration Template /wp-admin/admin.php?page=invite_register_template_configure1,1682.3953.16101.20
Email Template /wp-admin/admin.php?page=invite_users_template1,1402.4054.59103.01
Invite Users /wp-admin/admin.php?page=invite_users1,0622.4354.01103.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=invite_users_smtp
    • > Warning in wp-content/plugins/invitation-based-registrations/admin/partials/invitation-based-registrations-smtp.php+5
    Use of undefined constant IVBR_SMTP_ACCESS - assumed 'IVBR_SMTP_ACCESS' (this will throw an Error in a future version of PHP)

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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: invite, sign up, invitation, register, members

invitation-based-registrations/invitation-based-registrations.php Passed 13 tests

"Invitation Based Registrations" version 2.2.83's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Allows registrations for users by sending Invitation Emails.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin542 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP16207118542

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2284.62%
▷ Protected methods00.00%
▷ Private methods415.38%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.57KB0.71KB▼ 54.52%