84% form-abandonment-tracking

Code Review | Form Abandonment Tracking

WordPress plugin Form Abandonment Tracking scored84%from 54 tests.

About plugin

  • Plugin page: form-abandonment-...
  • Plugin version: 1.4
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: Dec 1, 2022
  • Number of updates: 26
  • Update frequency: every 121.7 days
  • Top authors: downtownrob (57.69%)5starplugins (26.92%)presswizards (23.08%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

A check of server-side resources used by Form Abandonment Tracking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.98 ▼0.92
Dashboard /wp-admin3.32 ▲0.0143.85 ▼7.11
Posts /wp-admin/edit.php3.37 ▲0.0149.60 ▲1.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.51 ▼10.36
Media Library /wp-admin/upload.php3.24 ▲0.0132.63 ▼2.85

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Form Abandonment Tracking
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.19 ▼1.372.28 ▲0.4443.54 ▼6.23
Dashboard /wp-admin2,206 ▲184.89 ▲0.0297.98 ▼21.9839.30 ▼8.26
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0539.47 ▲4.2035.84 ▲1.12
Add New Post /wp-admin/post-new.php1,533 ▲1123.26 ▼0.06653.13 ▲16.3859.22 ▲0.14
Media Library /wp-admin/upload.php1,382 ▼64.26 ▲0.05101.96 ▲3.1042.94 ▼2.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • 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 everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-abandonment-tracking/form-abandonment-tracking.php:69

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)
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: field level tracking, universal analytics, form tracking, form abandonment tracking, google analytics

form-abandonment-tracking/form-abandonment-tracking.php Passed 13 tests

The main PHP file in "Form Abandonment Tracking" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
110 characters long description:
Tracks form abandonment and completions to the form field level as Google Analytics events, including Submits.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP122444

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin