89% buddyforms-acf

Code Review | Advanced Custom Fields Frontend Forms - ACF Forms - ACF Post Form - ACF Registration Form - ACF Content Form - ACF Profile Form

WordPress plugin Advanced Custom Fields Frontend Forms - ACF Forms - ACF Post Form - ACF Registration Form - ACF Content Form - ACF Profile Form scored89%from 54 tests.

About plugin

  • Plugin page: buddyforms-acf
  • Plugin version: 1.3.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2016
  • Latest release: Nov 20, 2023
  • Number of updates: 141
  • Update frequency: every 19.9 days
  • Top authors: svenl77 (80.85%)gfirem (19.86%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /15,125 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.39MB] [CPU: ▼3.74ms] Passed 4 tests

A check of server-side resources used by Advanced Custom Fields Frontend Forms - ACF Forms - ACF Post Form - ACF Registration Form - ACF Content Form - ACF Profile Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1434.66 ▼5.29
Dashboard /wp-admin3.83 ▲0.4948.34 ▼11.53
Posts /wp-admin/edit.php3.89 ▲0.5350.61 ▲4.96
Add New Post /wp-admin/post-new.php6.35 ▲0.4785.51 ▼3.11
Media Library /wp-admin/upload.php3.70 ▲0.4738.08 ▲6.14
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.8634.39

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Custom Fields Frontend Forms - ACF Forms - ACF Post Form - ACF Registration Form - ACF Content Form - ACF Profile Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲23213.73 ▼0.519.94 ▲8.1841.22 ▼1.99
Dashboard /wp-admin2,226 ▲455.79 ▲0.0791.67 ▼29.1941.58 ▼4.85
Posts /wp-admin/edit.php2,140 ▲402.02 ▲0.0240.89 ▲2.2743.40 ▲9.82
Add New Post /wp-admin/post-new.php1,553 ▲2222.99 ▼0.10667.19 ▼103.4278.92 ▲27.75
Media Library /wp-admin/upload.php1,436 ▲364.23 ▲0.0297.55 ▲1.2145.34 ▼0.19
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9992.0626.2130.89

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (** ACF Field Group ** - Use ACF Groups in Forms), #2 (** ACF Single Field ** - Use Single fields in Groups)
You can take inspiration from this readme.txt

buddyforms-acf/loader.php 85% from 13 tests

The main PHP file in "Advanced Custom Fields Frontend Forms - ACF Forms - ACF Post Form - ACF Registration Form - ACF Content Form - ACF Profile Form" ver. 1.3.15 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("buddyforms-acf.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,700 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PO File171,4491,9934,842
PHP3138140708
JavaScript490124
JSON10026

PHP code Passed 2 tests

Analyzing 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.55
Average class complexity44.75
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods109
▷ Static methods65.50%
▷ Public methods8678.90%
▷ Protected methods2321.10%
▷ Private methods00.00%
Functions18
▷ Named functions1688.89%
▷ Anonymous functions211.11%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin