84% profiler-donations-gravityforms

Code Review | Profiler Integration for Gravity Forms

WordPress plugin Profiler Integration for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: profiler-donation...
  • Plugin version: 2.4.2
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.0
  • WordPress version: 6.3.1
  • First release: May 25, 2018
  • Latest release: Oct 27, 2023
  • Number of updates: 20
  • Update frequency: every 99.2 days
  • Top authors: anthonyeden (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,421 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Profiler Integration for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.93 ▲0.98
Dashboard /wp-admin3.32 ▲0.0249.69 ▲2.63
Posts /wp-admin/edit.php3.37 ▲0.0147.76 ▲2.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.75 ▲7.82
Media Library /wp-admin/upload.php3.24 ▲0.0134.22 ▼0.70

Server storage [IO: ▲0.46MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Profiler Integration for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.371.80 ▲0.3540.17 ▲4.55
Dashboard /wp-admin2,195 ▲285.58 ▲0.0191.25 ▼2.7038.62 ▲3.22
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0338.93 ▲3.4435.88 ▲1.04
Add New Post /wp-admin/post-new.php1,528 ▲223.33 ▲2.41634.26 ▼464.4763.18 ▼20.96
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0596.73 ▼18.1240.43 ▼9.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profiler-donations-gravityforms/index.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/profiler-donations-gravityforms/cardprocess.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GFFeedAddOn' not found in wp-content/plugins/profiler-donations-gravityforms/class-profilercommon.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profiler-donations-gravityforms/sync_users.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profiler-donations-gravityforms/sync_orgtype.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'GFProfilerCommon' not found in wp-content/plugins/profiler-donations-gravityforms/class-profilerdonate-gfaddon.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GFProfilerDonate' not found in wp-content/plugins/profiler-donations-gravityforms/class-profilermembership-gfaddon.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GFProfilerCommon' not found in wp-content/plugins/profiler-donations-gravityforms/class-profilerevents-gfaddon.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GFProfilerDonate' not found in wp-content/plugins/profiler-donations-gravityforms/class-profilerupdate-gfaddon.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GFProfilerCommon' not found in wp-content/plugins/profiler-donations-gravityforms/class-profilerlistsbasic-gfaddon.php:3

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: crm, gravity-forms, fundraising, donation, profiler

profiler-donations-gravityforms/index.php 92% from 13 tests

"Profiler Integration for Gravity Forms" version 2.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("profiler-donations-gravityforms.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,280 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP179843594,002
Markdown2770266
JavaScript14012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity39.46
▷ Minimum class complexity3.00
▷ Maximum class complexity148.00
Average method complexity5.54
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods111
▷ Static methods98.11%
▷ Public methods8576.58%
▷ Protected methods1816.22%
▷ Private methods87.21%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants0
▷ 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
No PNG images were found in this plugin