66% clickfunnels

Code Review | ClickFunnels

WordPress plugin ClickFunnels scored 66% from 54 tests.

About plugin

  • Plugin page: clickfunnels
  • Plugin version: 3.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5.2
  • WordPress version: 5.9.2
  • First release: Mar 10, 2015
  • Latest release: Jul 22, 2016
  • Number of updates: 168
  • Update frequency: every 3.0 days
  • Top authors: clickfunnels.com (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

20,000+ active / 160,454 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.77MB] [CPU: ▼314.63ms] 75% from 4 tests

A check of server-side resources used by ClickFunnels
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,032.97ms on /wp-admin/admin.php?page=reset_data)
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2252.81 ▲1.45
Dashboard /wp-admin3.58 ▲0.1733.47 ▼1.85
Posts /wp-admin/edit.php3.80 ▲0.1637.68 ▼0.42
Add New Post /wp-admin/post-new.php3.39 ▼3.5827.49 ▼1,257.71
Media Library /wp-admin/upload.php3.45 ▲0.1626.69 ▲1.79
Reset Data /wp-admin/admin.php?page=reset_data3.441,032.97
Pages /wp-admin/edit.php?post_type=clickfunnels3.5624.70
Add New /wp-admin/post-new.php?post_type=clickfunnels3.3826.78
Shortcodes /wp-admin/edit.php?post_type=clickfunnels&page=clickfunnels_shortcodes3.4723.38
Settings /wp-admin/edit.php?post_type=clickfunnels&page=cf_api3.4523.00

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 2 new options
New WordPress options
clickfunnels_posts_schema_version
widget_clickfunnels_widget

Browser metrics Passed 4 tests

An overview of browser requirements for ClickFunnels
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,841 ▲8715.82 ▼0.186.46 ▲0.222.22 ▼0.61
Dashboard /wp-admin2,932 ▲786.13 ▼0.10120.79 ▼13.23172.39 ▲11.42
Posts /wp-admin/edit.php2,730 ▲393.07 ▼0.1764.64 ▼1.63138.88 ▼4.81
Add New Post /wp-admin/post-new.php1,739 ▲4921.35 ▲0.73415.60 ▼17.05187.53 ▲27.24
Media Library /wp-admin/upload.php1,722 ▲245.56 ▲0.08128.30 ▼9.89209.78 ▲20.05
Reset Data /wp-admin/admin.php?page=reset_data1,0442.4953.19109.50
Pages /wp-admin/edit.php?post_type=clickfunnels1,4733.0962.89127.42
Add New /wp-admin/post-new.php?post_type=clickfunnels1,4633.9777.11156.75
Shortcodes /wp-admin/edit.php?post_type=clickfunnels&page=clickfunnels_shortcodes1,7162.4155.90221.64
Settings /wp-admin/edit.php?post_type=clickfunnels&page=cf_api1,4302.4156.85229.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 2 options
    • clickfunnels_posts_schema_version
    • widget_clickfunnels_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=clickfunnels
    • > Notice in wp-content/plugins/clickfunnels/clickfunnels.php+195
    Undefined index: post_type
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=clickfunnels
    • > Notice in wp-content/plugins/clickfunnels/pages/edit.php+10
    Undefined index: post
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=clickfunnels&page=cf_api
    • > Notice in wp-content/plugins/clickfunnels/pages/settings.php+63
    Undefined index: error

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/clickfunnels/pages/_footer.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/clickfunnels/pages/settings.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/clickfunnels/clickfunnels.php:483
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/clickfunnels/pages/reset_data.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/clickfunnels/pages/_header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/clickfunnels/pages/edit.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clickfunnels/pages/shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/clickfunnels/uninstall.php:17

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/edit.php?post_type=clickfunnels
    • > Network (severe)
    https://appassets3.clickfunnels.com/assets/favicon-8c74cad77e4e123f7dbb46b33e6de10c.png - Failed to load resource: the server responded with a status of 403 ()
    • > GET request to /wp-admin/post-new.php?post_type=clickfunnels
    • > Javascript (severe) in unknown
    /wp-admin/post-new.php?post_type=clickfunnels - Access to XMLHttpRequest at 'https://api.clickfunnels.com/funnels/list.json?email=&auth_token=' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=clickfunnels&page=clickfunnels_shortcodes
    • > Network (severe)
    https://api.clickfunnels.com/funnels/list.json?email=&auth_token= - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/edit.php?post_type=clickfunnels&page=clickfunnels_shortcodes
    • > Javascript (severe) in unknown
    /wp-admin/edit.php?post_type=clickfunnels&page=clickfunnels_shortcodes - Access to XMLHttpRequest at 'https://api.clickfunnels.com/funnels/list.json?email=&auth_token=' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/edit.php?post_type=clickfunnels&page=cf_api
    • > Javascript (severe) in unknown
    /wp-admin/edit.php?post_type=clickfunnels&page=cf_api - Access to XMLHttpRequest at 'https://api.clickfunnels.com/funnels/list?email=&auth_token=' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/edit.php?post_type=clickfunnels&page=cf_api
    • > Network (severe)
    https://api.clickfunnels.com/funnels/list?email=&auth_token= - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: clickfunnels, funnels, sales funnel, optin, landing pages...

clickfunnels/clickfunnels.php 92% from 13 tests

The main PHP file in "ClickFunnels" ver. 3.1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 350 characters long)

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 detected2,905 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP8129721,616
CSS23027702
SVG100565
JavaScript22122

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity26.00
▷ Minimum class complexity7.00
▷ Maximum class complexity45.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.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
2 PNG files occupy 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png23.44KB3.10KB▼ 86.76%
images/icon.png17.98KB0.78KB▼ 95.67%