68% arengu-forms

Code Review | Arengu Forms | Sign-up Forms, Login Forms, Passwordless Forms, Payment Forms

WordPress plugin Arengu Forms | Sign-up Forms, Login Forms, Passwordless Forms, Payment Forms scored68%from 54 tests.

About plugin

  • Plugin page: arengu-forms
  • Plugin version: 3.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Oct 10, 2018
  • Latest release: Nov 16, 2021
  • Number of updates: 28
  • Update frequency: every 40.5 days
  • Top authors: arengu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,729 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: ▲0.00MB] [CPU: ▼9.36ms] Passed 4 tests

This is a short check of server-side resources used by Arengu Forms | Sign-up Forms, Login Forms, Passwordless Forms, Payment Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.02 ▲6.26
Dashboard /wp-admin3.32 ▼0.0349.59 ▼11.82
Posts /wp-admin/edit.php3.37 ▲0.0148.37 ▼4.67
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.55 ▼26.12
Media Library /wp-admin/upload.php3.24 ▲0.0138.72 ▲5.17

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
arengu_auth_private_key
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
arengu_auth_jwt_secret
can_compress_scripts

Browser metrics Passed 4 tests

Arengu Forms | Sign-up Forms, Login Forms, Passwordless Forms, Payment Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.24 ▼0.311.86 ▲0.2543.67 ▲3.12
Dashboard /wp-admin2,214 ▲335.59 ▼0.1285.51 ▼16.2478.24 ▲38.84
Posts /wp-admin/edit.php2,134 ▲342.01 ▲0.0537.44 ▲1.2334.88 ▲0.63
Add New Post /wp-admin/post-new.php1,558 ▲2122.99 ▲5.02711.66 ▲60.2664.19 ▲2.29
Media Library /wp-admin/upload.php1,434 ▲374.23 ▲0.11102.01 ▼2.8280.41 ▲36.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/arengu-forms/src/Config.php+71
    Undefined index: private_key
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/arengu-forms/arengu-auth.php
    • > /wp-content/plugins/arengu-forms/assets/friendly-error.tpl.php
    • > /wp-content/plugins/arengu-forms/arengu-forms.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'ArenguAuth\\Route\\AbstractRoute' not found in wp-content/plugins/arengu-forms/src/Route/Jwt.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ArenguAuth\\Route\\AbstractRoute' not found in wp-content/plugins/arengu-forms/src/Route/Signup.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ArenguAuth\\Route\\AbstractRoute' not found in wp-content/plugins/arengu-forms/src/Route/Login.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ArenguAuth\\Config' not found in wp-content/plugins/arengu-forms/assets/admin-page.tpl.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'ArenguAuth\\Route\\AbstractRoute' not found in wp-content/plugins/arengu-forms/src/Route/CheckEmail.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ArenguAuth\\Route\\Login' not found in wp-content/plugins/arengu-forms/src/Route/Passwordless.php:5

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

arengu-forms/arengu-auth.php 85% from 13 tests

The main PHP script in "Arengu Forms | Sign-up Forms, Login Forms, Passwordless Forms, Payment Forms" version 3.0.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("arengu-forms.php" instead of "arengu-auth.php")

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin2,230 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP303916511,742
Markdown2920357
JSON300122
XML1108
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity12.47
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes19
▷ Abstract classes15.26%
▷ Concrete classes1894.74%
▷ Final classes00.00%
Methods107
▷ Static methods5147.66%
▷ Public methods8074.77%
▷ Protected methods1211.21%
▷ Private methods1514.02%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin