84% tave-integration-using-gravity-forms

Code Review | Táve Gravity Forms Integration

WordPress plugin Táve Gravity Forms Integration scored84%from 54 tests.

About plugin

  • Plugin page: tave-integration-...
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Jun 1, 2023
  • Number of updates: 29
  • Update frequency: every 74.8 days
  • Top authors: tavestudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Táve Gravity Forms Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.49 ▲3.31
Dashboard /wp-admin3.31 ▲0.0145.86 ▼1.19
Posts /wp-admin/edit.php3.36 ▲0.0148.07 ▼0.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.60 ▼3.03
Media Library /wp-admin/upload.php3.23 ▲0.0034.53 ▼0.41

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Táve Gravity Forms Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.104.90 ▲3.1840.92 ▼3.37
Dashboard /wp-admin2,206 ▲155.87 ▲0.76108.92 ▲4.7642.75 ▼0.14
Posts /wp-admin/edit.php2,089 ▲31.99 ▼0.0340.17 ▲3.9035.17 ▼1.62
Add New Post /wp-admin/post-new.php1,533 ▼523.28 ▼0.12673.97 ▲15.6160.40 ▲12.17
Media Library /wp-admin/upload.php1,391 ▼04.20 ▲0.0499.45 ▲5.3241.89 ▲1.68

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/tave-integration-using-gravity-forms/tave_gf_addon.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: tve, gravity forms, tave, tave studio manager, forms

tave-integration-using-gravity-forms/tave_gf.php 85% from 13 tests

"Táve Gravity Forms Integration" version 1.0.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("tave-integration-using-gravity-forms.php" instead of "tave_gf.php")

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 detected263 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25878263

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity21.00
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 files were detected