73% funnelcockpit

Code Review | FunnelCockpit

WordPress plugin FunnelCockpit scored73%from 54 tests.

About plugin

  • Plugin page: funnelcockpit
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.3
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Aug 13, 2022
  • Number of updates: 17
  • Update frequency: every 120.8 days
  • Top authors: funnelcockpit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,661 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
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▲2.06ms] Passed 4 tests

An overview of server-side resources used by FunnelCockpit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1645.40 ▲1.61
Dashboard /wp-admin3.45 ▲0.1453.72 ▲2.82
Posts /wp-admin/edit.php3.56 ▲0.2054.74 ▲4.39
Add New Post /wp-admin/post-new.php6.05 ▲0.16104.85 ▲12.59
Media Library /wp-admin/upload.php3.37 ▲0.1436.05 ▼0.60
Add New /wp-admin/post-new.php?post_type=funnelpage3.4152.33
Pages /wp-admin/edit.php?post_type=funnelpage3.4141.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for FunnelCockpit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.75 ▲0.191.74 ▲0.1044.77 ▲1.76
Dashboard /wp-admin2,236 ▲565.71 ▲0.0894.84 ▼2.2240.36 ▲0.77
Posts /wp-admin/edit.php2,148 ▲482.13 ▲0.1042.30 ▲3.3444.17 ▲5.10
Add New Post /wp-admin/post-new.php1,566 ▲4023.62 ▲0.73631.84 ▼29.0967.01 ▲15.13
Media Library /wp-admin/upload.php1,447 ▲534.25 ▲0.0897.55 ▼9.8744.88 ▼0.73
Add New /wp-admin/post-new.php?post_type=funnelpage1,5002.5750.7550.87
Pages /wp-admin/edit.php?post_type=funnelpage1,1092.0233.7633.43
Settings /wp-admin/class-funnelcockpit-admin.php260.420.0815.05

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_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/funnelcockpit/admin/partials/funnelcockpit-admin-display.php
    • > /wp-content/plugins/funnelcockpit/public/partials/funnelcockpit-public-display.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/funnelcockpit/public/funnelpage-template.php:5
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/funnelcockpit/public/funnelpage-template.php on line 4
    • > PHP Notice
      Trying to get property 'post' of non-object in wp-content/plugins/funnelcockpit/public/funnelpage-template.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/class-funnelcockpit-admin.php
    • > Network (severe)
    wp-admin/class-funnelcockpit-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: funnel, cockpit, funnelcockpit

funnelcockpit/funnelcockpit.php Passed 13 tests

This is the main PHP file of "FunnelCockpit" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
124 characters long description:
Die All-In-One Lösung für den Aufbau von Funnels, Seiten und Conversion-Optimierung via Splittests, Maustracking und mehr.

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
Success! There were no dangerous files found in this plugin698 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13185513565
PO File1262978
JavaScript2142746
CSS2289

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.43
Average class complexity11.57
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png9.79KB6.33KB▼ 35.36%
admin/images/logoSquare.png3.38KB2.56KB▼ 24.32%
icon-256.png11.04KB5.24KB▼ 52.56%
icon-128.png4.65KB2.36KB▼ 49.15%