94% acf-feeds-for-gravity-forms

Code Review | ACF Feeds for Gravity Forms

WordPress plugin ACF Feeds for Gravity Forms scored 94% from 54 tests.

About plugin

  • Plugin page: acf-feeds-for-gra...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-5.8.0
  • WordPress version: 5.9.2
  • First release: Aug 4, 2021
  • Latest release: Aug 11, 2021
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: alexusblack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 341 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼294.76ms] Passed 4 tests

This is a short check of server-side resources used by ACF Feeds for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.17 ▲6.26
Dashboard /wp-admin3.41 ▲0.0031.19 ▼2.96
Posts /wp-admin/edit.php3.64 ▲0.0039.90 ▲5.14
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.48 ▼1,175.82
Media Library /wp-admin/upload.php3.30 ▼0.0024.10 ▼5.39

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Feeds for Gravity Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.75 ▼0.265.55 ▼0.102.15 ▼0.65
Dashboard /wp-admin2,888 ▲306.08 ▼0.09113.21 ▼18.02154.61 ▼6.85
Posts /wp-admin/edit.php2,685 ▲283.24 ▼0.0059.46 ▼4.14136.10 ▼2.95
Add New Post /wp-admin/post-new.php1,752 ▲4121.19 ▼0.58417.35 ▼20.73154.91 ▼4.98
Media Library /wp-admin/upload.php1,698 ▲35.43 ▼0.06141.84 ▲2.32189.48 ▲2.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-feeds-for-gravity-forms/acf-feeds-for-gravity-forms.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/acf-feeds-for-gravity-forms/class-gfacffaddon.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: form, integration, advanced custom fields, feed, acf...

acf-feeds-for-gravity-forms/acf-feeds-for-gravity-forms.php Passed 13 tests

This is the main PHP file of "ACF Feeds for Gravity Forms" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
Write Gravity Forms submission fields into ACF fields. Accumulate values over time.

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
Success! There were no dangerous files found in this plugin184 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23433184

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity20.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin