83% acf-frontend-form-element

Code Review | Frontend Admin by DynamiApps

WordPress plugin Frontend Admin by DynamiApps scored83%from 54 tests.

About plugin

  • Plugin page: acf-frontend-form...
  • Plugin version: 3.18.2
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2019
  • Latest release: Aug 21, 2023
  • Number of updates: 706
  • Update frequency: every 2.0 days
  • Top authors: shabti (100%)

Code review

54 tests

User reviews

106 reviews

Install metrics

9,000+ active /598,022 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.86ms] Passed 4 tests

A check of server-side resources used by Frontend Admin by DynamiApps
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.14 ▼0.38
Dashboard /wp-admin3.37 ▲0.0747.76 ▼4.59
Posts /wp-admin/edit.php3.42 ▲0.0750.41 ▼0.61
Add New Post /wp-admin/post-new.php5.95 ▲0.0796.66 ▼3.19
Media Library /wp-admin/upload.php3.29 ▲0.0736.42 ▼3.05

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 176 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Frontend Admin by DynamiApps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.73 ▲0.171.71 ▲0.1844.72 ▲4.48
Dashboard /wp-admin2,212 ▲325.57 ▼0.0297.21 ▲1.8545.63 ▲2.42
Posts /wp-admin/edit.php2,117 ▲172.03 ▲0.0542.75 ▼2.6438.96 ▼1.67
Add New Post /wp-admin/post-new.php1,538 ▲1023.39 ▲0.63655.63 ▼27.0050.02 ▲0.89
Media Library /wp-admin/upload.php1,420 ▲234.26 ▲0.08100.97 ▼1.7042.80 ▼1.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 76× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_Admin\\Field_Types\\Field_Base' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/general/class-url.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_Admin\\Field_Types\\Field_Base' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/general/class-password.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_Admin\\Field_Types\\upload_image' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/post/class-featured-image.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_Admin\\Field_Types\\Field_Base' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/general/class-submit-button.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_Admin\\Field_Types\\Field_Base' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/general/class-checkbox.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_Admin\\Elementor\\Widgets\\ACF_Form' not found in wp-content/plugins/acf-frontend-form-element/main/elementor/widgets/products/new_product.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_Admin\\Field_Types\\Field_Base' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/general/class-text-editor.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_Admin\\Field_Types\\Field_Base' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/post/class-post-to-edit.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_Admin\\Field_Types\\Field_Base' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/general/class-upload-files.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Frontend_Admin\\Field_Types\\text' not found in wp-content/plugins/acf-frontend-form-element/main/frontend/fields/term/class-term-slug.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
6 plugin tags: frontend editing, acf form, acf, elementor, acf frontend...

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

The main file in "Frontend Admin by DynamiApps" v. 3.18.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-frontend-form-element.php" instead of "acf-frontend.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected68,217 lines of code in 167 files:
LanguageFilesBlank linesComment linesLines of code
JSON40037,320
PHP1346,2697,10526,046
JavaScript187684943,514
CSS1134661,337

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 107)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity25.02
▷ Minimum class complexity1.00
▷ Maximum class complexity304.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity107.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes122
▷ Abstract classes10.82%
▷ Concrete classes12199.18%
▷ Final classes21.65%
Methods1,006
▷ Static methods212.09%
▷ Public methods98397.71%
▷ Protected methods222.19%
▷ Private methods10.10%
Functions46
▷ Named functions3984.78%
▷ Anonymous functions715.22%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/plugin-logo.png5.32KB2.93KB▼ 44.94%
assets/icon.png1.58KB1.15KB▼ 27.54%