100% abn-lookup-for-gravity-forms

Code Review | ABN Lookup for Gravity Forms

WordPress plugin ABN Lookup for Gravity Forms scored 100% from 54 tests.

About plugin

  • Plugin page: abn-lookup-for-gr...
  • Plugin version: 1.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.9.2
  • First release: Feb 10, 2016
  • Latest release: Aug 30, 2021
  • Number of updates: 59
  • Update frequency: every 34.4 days
  • Top authors: ovann86 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 2,633 total downloads


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
This plugin's installer ran successfully

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

An overview of server-side resources used by ABN Lookup for Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0454.86 ▲4.40
Dashboard /wp-admin3.44 ▲0.0332.27 ▼0.83
Posts /wp-admin/edit.php3.67 ▲0.0335.21 ▼3.26
Add New Post /wp-admin/post-new.php6.92 ▼0.0599.51 ▼1,173.98
Media Library /wp-admin/upload.php3.32 ▲0.0225.55 ▼0.52

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for ABN Lookup for Gravity Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,817 ▲6315.88 ▼0.085.78 ▼0.632.72 ▼0.08
Dashboard /wp-admin2,907 ▲466.12 ▼0.02122.31 ▼10.14183.52 ▲25.78
Posts /wp-admin/edit.php2,711 ▲173.25 ▲0.0163.47 ▲1.13139.79 ▼1.18
Add New Post /wp-admin/post-new.php1,774 ▲11323.04 ▲7.35435.93 ▼11.77160.22 ▲4.71
Media Library /wp-admin/upload.php1,714 ▲135.57 ▲0.04149.42 ▲13.43202.52 ▲10.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 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 everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

abn-lookup-for-gravity-forms/abn-lookup-for-gravity-forms.php Passed 13 tests

The main PHP file in "ABN Lookup for Gravity Forms" ver. 1.8.0 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
Connect the Australian Government ABN Lookup tool to Gravity Forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,480 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity72.67
▷ Minimum class complexity17.00
▷ Maximum class complexity168.00
Average method complexity6.66
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods1231.58%
▷ Public methods3797.37%
▷ Protected methods00.00%
▷ Private methods12.63%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/error.png0.61KB0.49KB▼ 18.81%