99% user-registration-approval-for-formidable-forms

Code Review | User Registration Approval for Formidable Forms

WordPress plugin User Registration Approval for Formidable Forms scored 99% from 54 tests.

About plugin

  • Plugin page: user-registration...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.1.1
  • WordPress version: 5.9.2
  • First release: Feb 23, 2019
  • Latest release: Apr 23, 2019
  • Number of updates: 19
  • Update frequency: every 7.2 days
  • Top authors: tentenbiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 696 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼300.25ms] Passed 4 tests

Server-side resources used by User Registration Approval for Formidable Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.38 ▼8.52
Dashboard /wp-admin3.41 ▲0.0031.56 ▼9.80
Posts /wp-admin/edit.php3.64 ▲0.0034.65 ▼3.16
Add New Post /wp-admin/post-new.php6.89 ▼0.08104.46 ▼1,179.53
Media Library /wp-admin/upload.php3.29 ▼0.0125.56 ▼1.88

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for User Registration Approval for Formidable Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.00 ▲0.305.83 ▼0.542.20 ▼0.45
Dashboard /wp-admin2,892 ▲346.13 ▼0.02116.04 ▼16.69154.90 ▼4.29
Posts /wp-admin/edit.php2,657 ▼373.24 ▲0.0064.38 ▲1.37139.34 ▲5.29
Add New Post /wp-admin/post-new.php1,772 ▲10421.01 ▲2.65442.30 ▲50.47156.04 ▲3.53
Media Library /wp-admin/upload.php1,692 ▼95.51 ▲0.00138.47 ▼0.59187.82 ▼3.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Pending users will be listed under Users>Pending Approvals.), #2 (Admin clicks a button to approve or reject user. Admin can also see which form was used by user to submit the registration (in the case that a site might have more than one registration application forms).), #3 (This is the setting where admin enables user registration approval for a form.), #4 (A clear view of the General setting menu and the new option that the plugin adds.), #5 (This screenshot demonstrates pending user not being able to login before their account is approved by admin.), #6 (Example of notification email sent to user after their account has been approved.)
The official readme.txt is a good inspiration

user-registration-approval-for-formidable-forms/index.php 85% from 13 tests

The principal PHP file in "User Registration Approval for Formidable Forms" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("user-registration-approval-for-formidable-forms.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 252 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin283 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19126283

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions15
▷ Named functions15100.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
No PNG files were detected