78% arrayforms

Code Review | BuildForms

WordPress plugin BuildForms scored78%from 54 tests.

About plugin

  • Plugin page: arrayforms
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 1, 2022
  • Latest release: Apr 12, 2023
  • Number of updates: 14
  • Update frequency: every 27.4 days
  • Top authors: buildarray (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /932 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▲0.50ms] Passed 4 tests

Analyzing server-side resources used by BuildForms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1642.64 ▼3.66
Dashboard /wp-admin3.52 ▲0.2249.96 ▼3.45
Posts /wp-admin/edit.php3.58 ▲0.2275.06 ▲32.01
Add New Post /wp-admin/post-new.php6.04 ▲0.1687.76 ▲0.25
Media Library /wp-admin/upload.php3.38 ▲0.1542.40 ▲8.85

Server storage [IO: ▲1.12MB] [DB: ▲0.31MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BuildForms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲7314.38 ▼0.012.02 ▼0.0352.47 ▲11.46
Dashboard /wp-admin2,219 ▲385.65 ▼0.0885.24 ▼12.3938.60 ▼2.89
Posts /wp-admin/edit.php2,209 ▲1125.93 ▲3.91242.31 ▲202.9641.03 ▲0.96
Add New Post /wp-admin/post-new.php6,503 ▲4,97532.54 ▲9.511,121.13 ▲478.3258.91 ▲7.66
Media Library /wp-admin/upload.php1,431 ▲314.21 ▲0.03118.74 ▲17.7176.35 ▲33.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/arrayforms/arrayforms-plugin.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'ArrayForms\\Base\\BaseController' not found in wp-content/plugins/arrayforms/inc/Pages/Admin.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'ArrayForms\\Base\\BaseController' not found in wp-content/plugins/arrayforms/inc/Base/SettingsLinks.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ArrayForms\\Base\\BaseController' not found in wp-content/plugins/arrayforms/inc/Base/Enqueue.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/arrayforms/templates/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ArrayForms\\Base\\BaseController' not found in wp-content/plugins/arrayforms/inc/Api/Callbacks/AdminCallbacks.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: nocode, feedback form, forms, application form, drag and drop...

arrayforms/arrayforms-plugin.php 92% from 13 tests

The primary PHP file in "BuildForms" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("arrayforms.php" instead of "arrayforms-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected21,656 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
JSON50017,044
JavaScript221962113,472
PHP24266489987
CSS214099
SVG60035
Sass22019

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity9.92
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods78
▷ Static methods2329.49%
▷ Public methods7596.15%
▷ Protected methods00.00%
▷ Private methods33.85%
Functions10
▷ Named functions770.00%
▷ Anonymous functions330.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/array-icon.png1.84KB1.46KB▼ 20.56%
assets/screenshot-2.png14.14KB7.18KB▼ 49.20%
assets/screenshot-3.png29.39KB14.31KB▼ 51.31%
assets/screenshot-1.png39.50KB17.72KB▼ 55.15%