84% gf-engaging-networks-add-on

Code Review | Integration for Engaging Networks and Gravity Forms

WordPress plugin Integration for Engaging Networks and Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-engaging-netwo...
  • Plugin version: 2.2.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 25, 2017
  • Latest release: Aug 16, 2023
  • Number of updates: 34
  • Update frequency: every 63.3 days
  • Top authors: drywallbmb (61.76%)kenjigarland (35.29%)rxnlabs (8.82%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /5,393 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
This plugin's installer ran successfully

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

Server-side resources used by Integration for Engaging Networks and Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.44 ▲3.33
Dashboard /wp-admin3.31 ▼0.0446.81 ▼9.88
Posts /wp-admin/edit.php3.36 ▲0.0043.59 ▼1.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.96 ▼8.68
Media Library /wp-admin/upload.php3.23 ▲0.0034.86 ▲0.31

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

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

Browser metrics Passed 4 tests

Integration for Engaging Networks and Gravity Forms: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.45 ▲0.091.71 ▲0.0745.42 ▲7.17
Dashboard /wp-admin2,192 ▲175.60 ▼0.1184.58 ▼12.9241.11 ▼5.57
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0236.94 ▲1.7533.86 ▼2.69
Add New Post /wp-admin/post-new.php1,537 ▲918.35 ▼4.65645.00 ▲4.6381.57 ▲27.17
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0593.07 ▼13.3340.40 ▼8.48

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-engaging-networks-add-on/class-gfen.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gf-engaging-networks-add-on/gravityforms-en.php on line 13
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/gf-engaging-networks-add-on/gravityforms-en.php on line 13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/gf-engaging-networks-add-on/gravityforms-en.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: forms, crm, integration

gf-engaging-networks-add-on/gravityforms-en.php 85% from 13 tests

Analyzing the main PHP file in "Integration for Engaging Networks and Gravity Forms" version 2.2.6
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gf-engaging-networks-add-on.php" instead of "gravityforms-en.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected1,328 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32904091,255
JavaScript1202047
CSS14326

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.43
Average class complexity47.00
▷ Minimum class complexity7.00
▷ Maximum class complexity87.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods50
▷ Static methods612.00%
▷ Public methods4488.00%
▷ Protected methods12.00%
▷ Private methods510.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/cshp-logo.png17.61KB8.19KB▼ 53.47%