65% wpfunnels

Code Review | Drag & Drop Sales Funnel Builder for WordPress – WPFunnels

WordPress plugin Drag & Drop Sales Funnel Builder for WordPress – WPFunnels scored65%from 54 tests.

About plugin

  • Plugin page: wpfunnels
  • Plugin version: 2.8.13
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 26, 2021
  • Latest release: Nov 1, 2023
  • Number of updates: 239
  • Update frequency: every 4.1 days
  • Top authors: getwpfunnels (100%)

Code review

54 tests

User reviews

55 reviews

Install metrics

6,000+ active /161,301 total downloads

Benchmarks

Plugin footprint 82% 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: ▲3.80MB] [CPU: ▲27.93ms] 75% from 4 tests

A check of server-side resources used by Drag & Drop Sales Funnel Builder for WordPress – WPFunnels
It is recommended to improve the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 692.11ms on /wp-admin/admin.php?page=wpfnl_settings)
PageMemory (MB)CPU Time (ms)
Home /7.18 ▲3.7271.79 ▲27.72
Dashboard /wp-admin7.38 ▲4.0781.76 ▲31.58
Posts /wp-admin/edit.php7.06 ▲3.7070.02 ▲22.73
Add New Post /wp-admin/post-new.php10.49 ▲4.60133.03 ▲46.03
Media Library /wp-admin/upload.php6.93 ▲3.7065.68 ▲29.70
Funnels /wp-admin/admin.php?page=wp_funnels7.1570.34
Edit Funnel /wp-admin/admin.php?page=edit_funnel6.9556.15
Email Builder /wp-admin/admin.php?page=email-builder7.0066.43
Settings /wp-admin/admin.php?page=wpfnl_settings7.39692.11
Request a Feature /wp-admin/admin.php?page=manage_options6.8153.77

Server storage [IO: ▲37.38MB] [DB: ▲0.13MB] 67% from 3 tests

Filesystem and database footprint
These are issues you should consider
  • Total filesystem usage must be limited to 25MB (currently using 37.38MB)
Filesystem: 1,129 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
_is_wpfnl_anniversary_promotion
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
_wpfnl_added_type_meta
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Drag & Drop Sales Funnel Builder for WordPress – WPFunnels
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,307 ▲56113.87 ▼0.6910.62 ▲8.8220.03 ▼24.61
Dashboard /wp-admin2,724 ▲5475.75 ▲0.2297.80 ▼4.32111.50 ▲68.77
Posts /wp-admin/edit.php2,187 ▲902.23 ▲0.2133.66 ▼4.1334.36 ▼2.03
Add New Post /wp-admin/post-new.php1,620 ▲8518.09 ▼0.24636.24 ▲8.0035.96 ▼30.57
Media Library /wp-admin/upload.php1,480 ▲774.24 ▲0.04101.51 ▲0.4964.30 ▲17.69
Funnels /wp-admin/admin.php?page=wp_funnels3,4878.76278.96139.89
Edit Funnel /wp-admin/admin.php?page=edit_funnel7411.6810.5421.75
Email Builder /wp-admin/admin.php?page=email-builder3,56117.74807.98200.01
Settings /wp-admin/admin.php?page=wpfnl_settings3,3838.36103.20135.96
Request a Feature /wp-admin/admin.php?page=manage_options7291.517.1720.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • _wpfnl_added_type_meta
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • _is_wpfnl_anniversary_promotion
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=email-builder
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manage_options
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 71× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/wpfunnels/admin/partials/icons/heart-icon.php
    • > /wp-content/plugins/wpfunnels/admin/partials/icons/doc-icon2.php
    • > /wp-content/plugins/wpfunnels/admin/partials/icons/doc-icon.php
    • > /wp-content/plugins/wpfunnels/admin/partials/icons/advanced-settings.php
    • > /wp-content/plugins/wpfunnels/admin/partials/icons/duplicate-icon.php
    • > /wp-content/plugins/wpfunnels/admin/partials/icons/no-funnels-icon.php
    • > /wp-content/plugins/wpfunnels/admin/partials/icons/utm-icon.php
    • > /wp-content/plugins/wpfunnels/admin/partials/icons/import-icon.php
    • > /wp-content/plugins/wpfunnels/admin/partials/icons/webhook-icon.php
    • > /wp-content/plugins/wpfunnels/admin/partials/icons/design-icon.php
  • 385× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/wpfunnels/packages/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/wpfunnels/vendor/symfony/css-selector/Parser/Handler/StringHandler.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'WPFunnels\\Admin\\Module\\Wpfnl_Admin_Module' not found in wp-content/plugins/wpfunnels/admin/modules/funnel/class-wpfnl-funnel.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Mime\\Header\\AbstractHeader' not found in wp-content/plugins/wpfunnels/vendor/symfony/mime/Header/DateHeader.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/wpfunnels/packages/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php:6
    • > PHP Notice
      Undefined variable: props in wp-content/plugins/wpfunnels/includes/core/widgets/divi-modules/includes/modules/OptIn/template/template-optin.php on line 171
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Mime\\Part\\AbstractMultipartPart' not found in wp-content/plugins/wpfunnels/vendor/symfony/mime/Part/Multipart/RelatedPart.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/wpfunnels/packages/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Mime\\Encoder\\ContentEncoderInterface' not found in wp-content/plugins/wpfunnels/vendor/symfony/mime/Encoder/EightBitContentEncoder.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/wpfunnels/public/modules/checkout/templates-style/order-bump-template-style6.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=email-builder
    • > Network (severe)
    wp-admin/nullwpfunnels/v1/mint/automation/get_mail_template_data/null - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=email-builder
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=email-builder 0:0 Uncaught SyntaxError: Unexpected token '

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #11 in wpfunnels/assets to your readme.txt
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

wpfunnels/wpfnl.php 85% from 13 tests

"Drag & Drop Sales Funnel Builder for WordPress – WPFunnels" version 2.8.13's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpfunnels.php" instead of "wpfnl.php")

Code Analysis 97% from 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 detected147,786 lines of code in 891 files:
LanguageFilesBlank linesComment linesLines of code
PHP69313,98225,12289,090
CSS171,2964136,577
JavaScript421,6102,0767,651
Sass389971256,924
Vuejs Component22282982,949
PO File18772,8641,919
JSON2400982
SVG3965875
Markdown71540453
Bourne Shell12311147
XML3711126
reStructuredText1403443
JSX2121436
make14014

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity16.81
▷ Minimum class complexity1.00
▷ Maximum class complexity434.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces123
Interfaces42
Traits11
Classes445
▷ Abstract classes439.66%
▷ Concrete classes40290.34%
▷ Final classes8821.89%
Methods3,507
▷ Static methods50814.49%
▷ Public methods2,79979.81%
▷ Protected methods38611.01%
▷ Private methods3229.18%
Functions306
▷ Named functions15851.63%
▷ Anonymous functions14848.37%
Constants281
▷ Global constants11540.93%
▷ Class constants16659.07%
▷ Public constants15392.17%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/core/widgets/elementor/assets/images/elementor-widget-icon/next-step-hover.png1.50KB0.91KB▼ 39.50%
admin/assets/images/icon.png7.05KB6.95KB▼ 1.40%
includes/core/widgets/elementor/assets/images/styles/style-1.png7.38KB3.07KB▼ 58.45%
includes/core/widgets/elementor/assets/images/elementor-widget-icon/sale-accept.png1.64KB1.15KB▼ 29.89%
includes/core/widgets/elementor/assets/images/elementor-widget-icon/sale-accept-hover.png1.60KB1.15KB▼ 28.14%