94% ac-cf7-form-field-repeater

Code Review | AC CF7 Form Field Repeater

WordPress plugin AC CF7 Form Field Repeater scored 94% from 54 tests.

About plugin

  • Plugin page: ac-cf7-form-field...
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 5.9.2
  • First release: Mar 11, 2019
  • Latest release: Mar 12, 2019
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: ambercouch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,845 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼302.14ms] Passed 4 tests

An overview of server-side resources used by AC CF7 Form Field Repeater
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.17 ▲4.03
Dashboard /wp-admin3.41 ▲0.0032.05 ▼6.06
Posts /wp-admin/edit.php3.64 ▲0.0035.98 ▼0.79
Add New Post /wp-admin/post-new.php6.88 ▼0.0997.89 ▼1,200.57
Media Library /wp-admin/upload.php3.30 ▲0.0025.97 ▼1.12

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

AC CF7 Form Field Repeater: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5015.89 ▼0.116.43 ▲0.472.70 ▲0.55
Dashboard /wp-admin2,888 ▲306.13 ▼0.04117.89 ▼19.53157.36 ▼7.77
Posts /wp-admin/edit.php2,691 ▲343.23 ▲0.0064.32 ▼1.03138.96 ▼6.77
Add New Post /wp-admin/post-new.php1,752 ▼2821.60 ▲4.04443.43 ▼2.90157.00 ▲1.77
Media Library /wp-admin/upload.php1,695 ▼35.51 ▼0.02146.02 ▼2.91186.89 ▼1.23

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 Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ac-cf7-form-field-repeater/ac-cf7-form-field-repeater.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Example of the form template code.), #2 (Example of the email template code.), #3 (Example of the contact form)
The official readme.txt is a good inspiration

ac-cf7-form-field-repeater/ac-cf7-form-field-repeater.php 92% from 13 tests

The main PHP file in "AC CF7 Form Field Repeater" ver. 0.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/lang/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected361 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP112878257
JavaScript24538102
Markdown1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods538.46%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants2
▷ Global constants2100.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
No PNG files were detected