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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 58.92 ▲6.99 |
Dashboard /wp-admin | 3.44 ▲0.03 | 33.94 ▲1.45 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 38.22 ▼0.52 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 89.83 ▼1,172.37 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 24.80 ▼1.33 |
SMTP Setup /wp-admin/admin.php?page=invite_users_smtp | 3.26 | 20.72 |
Role Based Access /wp-admin/admin.php?page=invite_role_based_access | 3.28 | 23.30 |
Advanced Settings /wp-admin/admin.php?page=invite_advanced_settings | 3.28 | 21.80 |
Registration Template /wp-admin/admin.php?page=invite_register_template_configure | 3.28 | 24.25 |
Email Template /wp-admin/admin.php?page=invite_users_template | 3.28 | 22.53 |
Invite Users /wp-admin/admin.php?page=invite_users | 3.28 | 22.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,840 ▲86 | 16.16 ▲0.41 | 6.74 ▲1.06 | 2.64 ▲0.20 |
Dashboard /wp-admin | 2,946 ▲92 | 6.08 ▼0.08 | 115.57 ▼18.21 | 174.32 ▲11.07 |
Posts /wp-admin/edit.php | 2,743 ▲86 | 3.12 ▼0.13 | 65.17 ▼0.31 | 145.59 ▲4.46 |
Add New Post /wp-admin/post-new.php | 1,786 ▲75 | 20.90 ▲0.17 | 453.50 ▼23.93 | 198.05 ▲40.86 |
Media Library /wp-admin/upload.php | 1,755 ▲57 | 5.66 ▲0.11 | 125.05 ▼8.48 | 207.60 ▲24.21 |
SMTP Setup /wp-admin/admin.php?page=invite_users_smtp | 1,170 | 2.38 | 53.13 | 116.12 |
Role Based Access /wp-admin/admin.php?page=invite_role_based_access | 1,060 | 2.40 | 53.42 | 104.33 |
Advanced Settings /wp-admin/admin.php?page=invite_advanced_settings | 1,055 | 2.37 | 53.28 | 103.81 |
Registration Template /wp-admin/admin.php?page=invite_register_template_configure | 1,168 | 2.39 | 53.16 | 101.20 |
Email Template /wp-admin/admin.php?page=invite_users_template | 1,140 | 2.40 | 54.59 | 103.01 |
Invite Users /wp-admin/admin.php?page=invite_users | 1,062 | 2.43 | 54.01 | 103.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 207 | 118 | 542 |
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 code | 0.30 |
Average class complexity | 2.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 15.38% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.57KB | 0.71KB | ▼ 54.52% |