10% beagl

Code Review | Beagl - Drag & Drop Form Builder for WordPress inspired by Gutenberg

WordPress plugin Beagl - Drag & Drop Form Builder for WordPress inspired by Gutenberg scored 10% from 54 tests.

About plugin

  • Plugin page: beagl
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 5.8.1
  • First release: Jan 27, 2020
  • Latest release: Feb 25, 2020
  • Number of updates: 12
  • Update frequency: every 3.5 days
  • Top authors: beagl (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 519 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-includes/plugin.php+947
    Undefined offset: 0

Server metrics [RAM: ▼1.69MB] [CPU: ▼195.04ms] Passed 4 tests

A check of server-side resources used by Beagl - Drag & Drop Form Builder for WordPress inspired by Gutenberg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.94 ▼0.785.81 ▼21.85
Dashboard /wp-admin1.96 ▼1.107.10 ▼38.14
Posts /wp-admin/edit.php1.96 ▼1.156.61 ▼37.21
Add New Post /wp-admin/post-new.php1.96 ▼3.476.61 ▼676.74
Media Library /wp-admin/upload.php1.96 ▼1.046.60 ▼28.06

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Beagl - Drag & Drop Form Builder for WordPress inspired by Gutenberg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,776 ▲18016.05 ▲0.488.63 ▼3.8151.19 ▲0.47
Dashboard /wp-admin3,027 ▲905.92 ▼0.08162.55 ▲10.93136.53 ▲30.48
Posts /wp-admin/edit.php2,827 ▲882.72 ▼0.1266.28 ▼5.5186.28 ▼6.21
Add New Post /wp-admin/post-new.php3,999 ▲2,31620.77 ▲2.25481.38 ▲6.86119.55 ▲5.50
Media Library /wp-admin/upload.php1,895 ▲855.03 ▲0.01136.14 ▼31.23141.27 ▲25.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-includes/plugin.php+947
    Undefined offset: 0

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/beagl/app/src/views/builder-page.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/beagl/lolita/helpers/loc.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function beagl\\misc\\chore\\add_shortcode() in wp-content/plugins/beagl/app/src/misc/chore.php:136
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/beagl/lolita/helpers/loc.php on line 15
    • > PHP Notice
      Undefined variable: logo in wp-content/plugins/beagl/app/src/views/dashboard_widget.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/class-wp-filesystem-direct.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/beagl/lolita/helpers/loc.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Filesystem_Direct' not found in wp-content/plugins/beagl/lolita/helpers/loc.php:17
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/class-wp-filesystem-base.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/beagl/lolita/helpers/loc.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/beagl/app/src/views/dashboard_widget.php:5
    • > PHP Warning
      include_once(ABSPATH/wp-admin/includes/class-wp-filesystem-direct.php): failed to open stream: No such file or directory in wp-content/plugins/beagl/lolita/helpers/loc.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/beagl/app/src/templates/single-form.php:11

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 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (39 tag instead of maximum 10)
You can look at the official readme.txt

beagl/beagl.php 85% from 13 tests

The principal PHP file in "Beagl - Drag & Drop Form Builder for WordPress inspired by Gutenberg" v. 1.0.4 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,621 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
PHP363201,1511,892
JavaScript62185399
JSON600188
CSS716188
SVG20053
HTML1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces30
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions191
▷ Named functions14877.49%
▷ Anonymous functions4322.51%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin