88% iats-online-forms

Code Review | iATS Online Forms

WordPress plugin iATS Online Forms scored 88% from 54 tests.

About plugin

  • Plugin page: iats-online-forms
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.1
  • WordPress version: 5.8.1
  • First release: Jun 24, 2021
  • Latest release: Jun 24, 2021
  • Number of updates: 6
  • Update frequency: every 6.8 days
  • Top authors: iatspaymentsdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 101 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by iATS Online Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.0838.77 ▲3.78
Dashboard /wp-admin3.15 ▲0.0945.91 ▼2.64
Posts /wp-admin/edit.php3.27 ▲0.1544.97 ▲3.66
Add New Post /wp-admin/post-new.php5.46 ▲0.0297.66 ▼562.27
Media Library /wp-admin/upload.php3.10 ▲0.0934.80 ▼0.47

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 53 new files
Database: 1 new table, no new options
New tables
wp_aura_forms

Browser metrics Passed 4 tests

An overview of browser requirements for iATS Online Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,851 ▲25516.55 ▲0.6715.30 ▲6.3247.68 ▼4.03
Dashboard /wp-admin2,989 ▲596.05 ▲0.08141.12 ▼18.10125.01 ▲10.40
Posts /wp-admin/edit.php2,761 ▲222.70 ▲0.0174.85 ▲0.0290.05 ▼7.93
Add New Post /wp-admin/post-new.php1,710 ▲2718.36 ▼0.36381.15 ▼6.16125.98 ▲11.49
Media Library /wp-admin/upload.php1,832 ▲255.03 ▲0.02158.28 ▲7.91130.03 ▲0.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Good news, no errors were detected

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/iats-online-forms/aura.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/iats-online-forms/php/wp-forms-table.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: form manager, iats online forms, donation form, nonprofit fundraising, iats payments...

iats-online-forms/aura.php 85% from 13 tests

"iATS Online Forms" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("iats-online-forms.php" instead of "aura.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 217 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,622 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG2002,672
PHP222755418
CSS77219377
LESS113098
JavaScript211557

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.30
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity6.33
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
27 PNG files occupy 0.82MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%
img/selected.png2.86KB0.18KB▼ 93.61%
img/arrow.png3.84KB0.49KB▼ 87.26%
img/check.png10.12KB3.28KB▼ 67.60%
assets/screenshot-1.png32.08KB7.93KB▼ 75.27%