90% cf7-repeatable-fields

Code Review | Contact Form 7 - Repeatable Fields

WordPress plugin Contact Form 7 - Repeatable Fields scored90%from 54 tests.

About plugin

  • Plugin page: cf7-repeatable-fi...
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 19, 2018
  • Latest release: Sep 12, 2023
  • Number of updates: 30
  • Update frequency: every 66.8 days
  • Top authors: felipeelia (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

6,000+ active /33,990 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Contact Form 7 - Repeatable Fields
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0152.82 ▲6.69
Dashboard /wp-admin3.57 ▼0.0651.44 ▼17.85
Posts /wp-admin/edit.php3.69 ▲0.0150.65 ▼3.07
Add New Post /wp-admin/post-new.php6.16 ▲0.0188.74 ▼21.81
Media Library /wp-admin/upload.php3.50 ▲0.0136.15 ▼5.22

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contact Form 7 - Repeatable Fields
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7614.38 ▲0.012.19 ▲0.3046.15 ▲2.19
Dashboard /wp-admin2,218 ▲385.58 ▼0.1387.95 ▼4.4340.35 ▼2.31
Posts /wp-admin/edit.php2,124 ▲212.06 ▲0.0534.98 ▲0.0635.90 ▼0.39
Add New Post /wp-admin/post-new.php1,563 ▲1823.21 ▲0.11679.57 ▼42.5974.96 ▲20.97
Media Library /wp-admin/upload.php1,417 ▲174.19 ▲0.04102.53 ▼18.2745.96 ▼2.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: repeater, repeatable, cf7, contact form 7

cf7-repeatable-fields/cf7-repeatable-fields.php Passed 13 tests

The main file in "Contact Form 7 - Repeatable Fields" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
An add-on plugin for Contact Form 7 that adds a repeatable group of fields functionality.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin380 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP335140230
JavaScript292088
Markdown135062

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin