88% frontend-registration-contact-form-7

Code Review | Frontend Registration - Contact Form 7

WordPress plugin Frontend Registration - Contact Form 7 scored88%from 54 tests.

About plugin

  • Plugin page: frontend-registra...
  • Plugin version: 5.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 18, 2015
  • Latest release: Oct 7, 2023
  • Number of updates: 89
  • Update frequency: every 32.4 days
  • Top authors: pokornydavid (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active /57,709 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.12ms] Passed 4 tests

Analyzing server-side resources used by Frontend Registration - Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.32 ▲2.15
Dashboard /wp-admin3.31 ▼0.0448.28 ▼21.36
Posts /wp-admin/edit.php3.36 ▲0.0049.82 ▼3.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.94 ▼6.07
Media Library /wp-admin/upload.php3.23 ▲0.0040.95 ▲2.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Frontend Registration - Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.001.97 ▼0.0243.11 ▼0.83
Dashboard /wp-admin2,206 ▲184.85 ▼0.04107.74 ▼8.0640.67 ▼4.63
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.1839.81 ▼1.9234.64 ▲1.43
Add New Post /wp-admin/post-new.php1,520 ▼023.07 ▲0.11623.10 ▼50.0554.42 ▼2.10
Media Library /wp-admin/upload.php1,391 ▲34.30 ▲0.0998.36 ▼8.7943.84 ▼4.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: There are too many tags (18 tag instead of maximum 10)
  • Requires at least: Version not formatted correctly
  • Screenshots: These screenshots do not have images: #1 (Screenshot 'screenshot-1.png' Shows 'registration settings' tab in contact form edit section.), #2 (Screenshot 'screenshot-2.png' Shows User Role change option in settings.)
The official readme.txt is a good inspiration

frontend-registration-contact-form-7/frontend-registration-cf7.php 69% from 13 tests

"Frontend Registration - Contact Form 7" version 5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("frontend-registration-contact-form-7.php" instead of "frontend-registration-cf7.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin273 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24837272
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants7
▷ Global constants7100.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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.04KB10.59KB▼ 41.31%
screenshot-2.png18.32KB10.67KB▼ 41.78%