100% reject-urls-and-emails-in-textarea

Code Review | Reject Urls And Emails In Textarea For (Gravity Forms)

WordPress plugin Reject Urls And Emails In Textarea For (Gravity Forms) scored 100% from 54 tests.

About plugin

  • Plugin page: reject-urls-and-e...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.1
  • WordPress version: 5.8.1
  • First release: Jan 23, 2016
  • Latest release: Jan 27, 2016
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: InternalError503 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 850 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Reject Urls And Emails In Textarea For (Gravity Forms)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1242.03 ▲17.98
Dashboard /wp-admin3.06 ▲0.0146.34 ▼0.31
Posts /wp-admin/edit.php3.12 ▲0.0145.29 ▼0.74
Add New Post /wp-admin/post-new.php5.43 ▼0.0093.95 ▼559.60
Media Library /wp-admin/upload.php3.01 ▼0.0033.98 ▼5.31

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Reject Urls And Emails In Textarea For (Gravity Forms)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.87 ▼0.2211.17 ▲1.1149.39 ▲0.59
Dashboard /wp-admin2,973 ▲425.87 ▼0.12142.34 ▼7.98104.90 ▼5.11
Posts /wp-admin/edit.php2,739 ▼02.73 ▲0.0172.72 ▲4.1488.50 ▲8.16
Add New Post /wp-admin/post-new.php1,683 ▼018.74 ▲0.10375.81 ▲1.72104.61 ▼0.15
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.03151.66 ▼6.74113.79 ▼14.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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 everything seems fine, this is not 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: email detection, gravity forms, validation, url detection, gravity

reject-urls-and-emails-in-textarea/reject-urls-and-emails-in-textarea.php Passed 13 tests

The main PHP script in "Reject Urls And Emails In Textarea For (Gravity Forms)" version 1.1 is automatically included on every request by WordPress
40 characters long description:
Prevent URLS & Emails in textarea field.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192035

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin