84% bcloud-elementor-form-extender

Code Review | BCloud Elementor Form Extender - Add/Edit Post Types From Frontend | Adds Range & Calculated Fields

WordPress plugin BCloud Elementor Form Extender - Add/Edit Post Types From Frontend | Adds Range & Calculated Fields scored84%from 54 tests.

About plugin

  • Plugin page: bcloud-elementor-...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2022
  • Latest release: Nov 28, 2022
  • Number of updates: 7
  • Update frequency: every 20.6 days
  • Top authors: salil18 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,047 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.97ms] Passed 4 tests

A check of server-side resources used by BCloud Elementor Form Extender - Add/Edit Post Types From Frontend | Adds Range & Calculated Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.90 ▲0.12
Dashboard /wp-admin3.31 ▲0.0144.40 ▲0.76
Posts /wp-admin/edit.php3.36 ▲0.0048.43 ▲1.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.36 ▼9.87
Media Library /wp-admin/upload.php3.23 ▲0.0036.61 ▲3.48

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by BCloud Elementor Form Extender - Add/Edit Post Types From Frontend | Adds Range & Calculated Fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.57 ▼1.101.88 ▼0.0943.49 ▼4.35
Dashboard /wp-admin2,224 ▲394.86 ▼0.10109.50 ▲5.5842.28 ▼1.00
Posts /wp-admin/edit.php2,106 ▲352.03 ▲0.0241.45 ▲5.2234.87 ▼2.51
Add New Post /wp-admin/post-new.php1,527 ▼617.92 ▼5.28637.75 ▼19.9952.61 ▼4.52
Media Library /wp-admin/upload.php1,409 ▲214.21 ▼0.0198.58 ▲4.4043.88 ▲2.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/bcloud-elementor-form-extender/classes/class-bcloud-custom-post-form-action.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Fields\\Field_Base' not found in wp-content/plugins/bcloud-elementor-form-extender/classes/class-bcloud-form-calculator-field.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Fields\\Field_Base' not found in wp-content/plugins/bcloud-elementor-form-extender/classes/class-bcloud-form-range-field.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: elementor, edit, calculator, range, form

bcloud-elementor-form-extender/bcloud-elementor-extender.php 85% from 13 tests

The main file in "BCloud Elementor Form Extender - Add/Edit Post Types From Frontend | Adds Range & Calculated Fields" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("bcloud-elementor-form-extender.php" instead of "bcloud-elementor-extender.php")

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
Everything looks great! No dangerous files found in this plugin903 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4131264664
JavaScript4203210
CSS22029

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.28
Average class complexity14.50
▷ Minimum class complexity8.00
▷ Maximum class complexity20.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods28
▷ Static methods13.57%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ 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 were not PNG files found in your plugin