73% acf-frontend-form-element

Code Review | ACF Frontend - Add and edit posts, pages, users and more all from the frontend

WordPress plugin ACF Frontend - Add and edit posts, pages, users and more all from the frontend scored 73% from 54 tests.

About plugin

  • Plugin page: acf-frontend-form...
  • Plugin version: 3.3.41
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.1
  • WordPress version: 5.9.2
  • First release: Sep 19, 2019
  • Latest release: Mar 24, 2022
  • Number of updates: 495
  • Update frequency: every 1.9 days
  • Top authors: shabti (100%)

Code review

54 tests

User reviews

59 reviews

Install metrics

8,000+ active / 325,147 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲4.43MB] [CPU: ▼272.99ms] Passed 4 tests

Analyzing server-side resources used by ACF Frontend - Add and edit posts, pages, users and more all from the frontend
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /8.41 ▲4.8973.24 ▲24.07
Dashboard /wp-admin8.43 ▲5.0259.13 ▲24.96
Posts /wp-admin/edit.php8.43 ▲4.7956.10 ▲19.52
Add New Post /wp-admin/post-new.php9.98 ▲3.01108.78 ▼1,151.10
Media Library /wp-admin/upload.php8.43 ▲5.1342.74 ▲15.54
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.4341.70

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 311 new files
Database: no new tables, 4 new options
New WordPress options
fs_gdpr
fs_accounts
fs_active_plugins
fs_debug_mode

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Frontend - Add and edit posts, pages, users and more all from the frontend
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,858 ▲13516.24 ▲0.556.95 ▲1.342.50 ▲0.25
Dashboard /wp-admin2,965 ▲1106.18 ▲0.03120.39 ▼21.16170.31 ▲6.17
Posts /wp-admin/edit.php2,746 ▲523.25 ▲0.0165.36 ▲1.01154.49 ▲11.10
Add New Post /wp-admin/post-new.php1,700 ▲3920.40 ▲3.27430.14 ▲31.14155.36 ▲2.82
Media Library /wp-admin/upload.php1,771 ▲735.51 ▼0.01147.67 ▲4.15199.35 ▲16.30
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,4732.5453.62113.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/acf-frontend-form-element/includes/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 4 options in the database
    • fs_debug_mode
    • fs_active_plugins
    • fs_accounts
    • fs_gdpr

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

SRP 50% from 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
Please fix the following
  • 56× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_idify() in wp-content/plugins/acf-frontend-form-element/main/admin/admin-pages/forms/views/form-field-object.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_WP\\Widgets\\ACF_Frontend_Form_Widget' not found in wp-content/plugins/acf-frontend-form-element/main/elementor/widgets/users/new_user.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/acf-frontend-form-element/main/elementor/widgets/posts/status_button.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/general/form-step.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field_textarea' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/post/post-excerpt.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field_select' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/user/display-name.php:6
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/acf-frontend-form-element/main/admin/admin-pages/forms/views/form-field-object.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field_upload_image' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/post/featured-image.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field_text' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/term/term-slug.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'OxyEl' not found in wp-content/plugins/acf-frontend-form-element/main/oxygen/elements/general/frontend-form.php:3

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: acf, elementor, frontend editing, acf form

acf-frontend-form-element/acf-frontend.php 77% from 13 tests

The principal PHP file in "ACF Frontend - Add and edit posts, pages, users and more all from the frontend" v. 3.3.41 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Main file name: The principal plugin file should be the same as the plugin slug ("acf-frontend-form-element.php" instead of "acf-frontend.php")
  • Description: The description should be shorter than 140 characters (currently 186 characters long)

Code Analysis 97% from 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 plugin93,192 lines of code in 261 files:
LanguageFilesBlank linesComment linesLines of code
PHP22011,78020,89253,690
JSON20036,305
JavaScript186553562,542
CSS191997643
SVG20012

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity44.88
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes144
▷ Abstract classes42.78%
▷ Concrete classes14097.22%
▷ Final classes10.71%
Methods1,933
▷ Static methods1859.57%
▷ Public methods1,56480.91%
▷ Protected methods422.17%
▷ Private methods32716.92%
Functions125
▷ Named functions12499.20%
▷ Anonymous functions10.80%
Constants135
▷ Global constants10880.00%
▷ Class constants2720.00%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/plugin-logo.png5.32KB2.93KB▼ 44.94%
includes/freemius/assets/img/frontend-payments.png3.15KB2.85KB▼ 9.48%
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%