84% acf-feeds-for-gravity-forms

Code Review | ACF Feeds for Gravity Forms

WordPress plugin ACF Feeds for Gravity Forms scored84%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: 6.3.1
  • 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

100+ active /1,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by ACF Feeds for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.21 ▼2.53
Dashboard /wp-admin3.31 ▼0.0344.64 ▼19.20
Posts /wp-admin/edit.php3.37 ▲0.0045.11 ▼3.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0092.10 ▲2.25
Media Library /wp-admin/upload.php3.24 ▲0.0041.11 ▲2.60

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Feeds for Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.18 ▼0.161.79 ▲0.1941.15 ▼1.00
Dashboard /wp-admin2,195 ▲185.62 ▼0.0489.68 ▲4.0837.22 ▼2.49
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0435.78 ▲0.9635.34 ▼0.80
Add New Post /wp-admin/post-new.php1,526 ▼023.76 ▲0.63683.41 ▼16.1952.44 ▲0.49
Media Library /wp-admin/upload.php1,400 ▲34.09 ▼0.02112.23 ▼8.8847.33 ▼0.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 | A shallow check that no browser errors were triggered
No browser issues were found

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: acf, advanced custom fields, integration, gravity forms, form...

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

Analyzing the main PHP file in "ACF Feeds for Gravity Forms" version 1.0.1
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 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected184 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23433184

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin