90% abn-lookup-for-gravity-forms

Code Review | ABN Lookup for Gravity Forms

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

About plugin

  • Plugin page: abn-lookup-for-gr...
  • Plugin version: 1.9.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2016
  • Latest release: Jul 22, 2023
  • Number of updates: 68
  • Update frequency: every 40.0 days
  • Top authors: ovann86 (88.24%)bakkbone (7.35%)leggroup (7.35%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /3,768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.14MB] [CPU: ▼16.91ms] Passed 4 tests

This is a short check of server-side resources used by ABN Lookup for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.44 ▼3.63
Dashboard /wp-admin3.23 ▼0.0735.94 ▼18.06
Posts /wp-admin/edit.php3.30 ▼0.0641.07 ▼14.24
Add New Post /wp-admin/post-new.php5.47 ▼0.4273.78 ▼24.90
Media Library /wp-admin/upload.php3.24 ▲0.0131.10 ▼10.43

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

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

Browser metrics Passed 4 tests

ABN Lookup for Gravity Forms: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,457 ▼1,30412.48 ▼1.871.76 ▼0.0240.37 ▲1.18
Dashboard /wp-admin850 ▼1,3271.36 ▼4.3213.35 ▼75.6821.11 ▼22.01
Posts /wp-admin/edit.php861 ▼1,2421.51 ▼0.506.64 ▼35.6019.55 ▼21.03
Add New Post /wp-admin/post-new.php587 ▼9411.71 ▼21.3618.52 ▼663.807.53 ▼47.07
Media Library /wp-admin/upload.php746 ▼6571.71 ▼2.4621.32 ▼85.6021.39 ▼22.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: The official readme.txt is a good inspiration

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

This is the main PHP file of "ABN Lookup for Gravity Forms" version 1.9.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,498 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP497126911
JavaScript48159562
CSS25025

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity72.00
▷ Minimum class complexity17.00
▷ Maximum class complexity168.00
Average method complexity6.76
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods1129.73%
▷ Public methods3697.30%
▷ Protected methods00.00%
▷ Private methods12.70%
Functions0
▷ Named functions00.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/cancelled.png0.47KB0.70KB0.00%
img/active.png1.08KB1.29KB0.00%
img/error.png0.61KB0.49KB▼ 18.81%