90% gravity-forms-iban

Code Review | Gravity Forms IBAN

WordPress plugin Gravity Forms IBAN scored90%from 54 tests.

About plugin

  • Plugin page: gravity-forms-iban
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2015
  • Latest release: Jun 3, 2015
  • Number of updates: 9
  • Update frequency: every 7.7 days
  • Top authors: slimndap (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /3,930 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.65ms] Passed 4 tests

Server-side resources used by Gravity Forms IBAN
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.55 ▲6.77
Dashboard /wp-admin3.31 ▲0.0143.18 ▼8.04
Posts /wp-admin/edit.php3.36 ▲0.0143.69 ▼5.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.54 ▼11.36
Media Library /wp-admin/upload.php3.23 ▲0.0131.97 ▼1.96

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms IBAN
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.171.78 ▼0.1342.82 ▼0.71
Dashboard /wp-admin2,206 ▲155.86 ▲0.96105.03 ▼14.1141.49 ▼4.96
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0339.04 ▲3.8536.35 ▲2.11
Add New Post /wp-admin/post-new.php1,519 ▼023.10 ▼0.18608.30 ▼126.1158.67 ▼0.49
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0394.94 ▼22.8441.05 ▼8.48

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
2 plugin tags: sepa, iban

gravity-forms-iban/gform-iban.php 92% from 13 tests

The main PHP script in "Gravity Forms IBAN" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gravity-forms-iban.php" instead of "gform-iban.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected343 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP265153343

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected