10% inbound-brew

Code Review | Inbound Brew

WordPress plugin Inbound Brew scored 10% from 54 tests.

About plugin

  • Plugin page: inbound-brew
  • Plugin version: 1.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 5.9.2
  • First release: Dec 10, 2015
  • Latest release: Sep 7, 2018
  • Number of updates: 101
  • Update frequency: every 9.9 days
  • Top authors: chris.fontes (43.56%)sean.carrico (32.67%)rico.celis (25.74%)

Code review

54 tests

User reviews

6 reviews

Install metrics

40+ active / 6,535 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Core/Brew.php+280
    Undefined index: is_module

Server metrics [RAM: ▼2.28MB] [CPU: ▼371.06ms] Passed 4 tests

Analyzing server-side resources used by Inbound Brew
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.436.29 ▼51.62
Dashboard /wp-admin2.11 ▼1.304.75 ▼34.16
Posts /wp-admin/edit.php2.11 ▼1.534.24 ▼37.06
Add New Post /wp-admin/post-new.php2.11 ▼4.865.35 ▼1,361.40
Media Library /wp-admin/upload.php2.11 ▼1.188.90 ▼18.48
Getting Started /wp-admin/admin.php?page=ib-admin-getting-started2.248.92
Lead Management /wp-admin/admin.php?page=ib-leads-admin2.256.55
Email /wp-admin/admin.php?page=ib-email-admin2.255.61
Settings /wp-admin/admin.php?page=ib-admin-settings2.255.22
Dashboard /wp-admin/admin.php?page=inboundbrew2.247.21
Redirects /wp-admin/admin.php?page=ib-redirects2.254.28
Landing Pages /wp-admin/admin.php?page=landing-page-admin2.256.78
CTAs /wp-admin/admin.php?page=ib-call-to-action2.2513.91
Contact Forms /wp-admin/admin.php?page=ib-contact-forms2.255.83
Inbound Brew /wp-admin/admin.php?page=inbound-brew2.245.70

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 986 new files
Database: 34 new tables, 23 new options
New tables
wp_ib_social_network_accounts
wp_ib_leads
wp_ib_states
wp_ib_lead_campaign_events_log
wp_ib_social_network_post_settings
wp_ib_contact_field
wp_ib_tracking_events
wp_ib_countries
wp_ib_post_keyword
wp_ib_twitter_reports
...
New WordPress options
ib_sitemap_default_settings
fs_debug_mode
ib_state_import
ib_show_getting_started_menu
ib_redirect_settings
ib_social_share_widget_options
ib_db_version
ib_first_installed
fs_accounts
ib_data_version
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Inbound Brew
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,629 ▲87520.87 ▲5.0818.68 ▲12.9312.25 ▲9.76
Dashboard /wp-admin3,399 ▲5389.38 ▲3.19160.04 ▲30.76169.92 ▲8.63
Posts /wp-admin/edit.php3,281 ▲5876.96 ▲3.7294.36 ▲29.83159.61 ▲17.89
Add New Post /wp-admin/post-new.php2,376 ▲71525.71 ▲9.13391.10 ▼6.93286.06 ▲84.88
Media Library /wp-admin/upload.php2,020 ▲3197.83 ▲2.30119.37 ▼7.31233.55 ▲47.01
Getting Started /wp-admin/admin.php?page=ib-admin-getting-started1,8276.3283.55166.45
Lead Management /wp-admin/admin.php?page=ib-leads-admin6,83811.60296.98305.08
Email /wp-admin/admin.php?page=ib-email-admin2,0547.65107.89195.41
Settings /wp-admin/admin.php?page=ib-admin-settings2,2527.2794.84168.88
Dashboard /wp-admin/admin.php?page=inboundbrew2,3258.62169.73211.18
Redirects /wp-admin/admin.php?page=ib-redirects2,2427.58102.67207.64
Landing Pages /wp-admin/admin.php?page=landing-page-admin2,1477.48110.32226.84
CTAs /wp-admin/admin.php?page=ib-call-to-action2,0627.69101.12247.98
Contact Forms /wp-admin/admin.php?page=ib-contact-forms2,0167.43126.92187.15
Inbound Brew /wp-admin/admin.php?page=inbound-brew1,8006.4197.18164.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Core/AppController.php+24
    Undefined index: page
  • Zombie WordPress options were found after uninstall: 2 options
    • fs_debug_mode
    • fs_api_cache

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 21 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inbound-brew
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Contact/Controllers/Email.php+65
    Undefined index: action
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inbound-brew
    • > Notice in wp-content/plugins/inbound-brew/inboundbrew.php+321
    Undefined index: HTTPS
  • 48 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inbound-brew
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/CTA/Controllers/CallToAction.php+100
    Undefined index: section
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inbound-brew
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Contact/Controllers/LandingPage.php+62
    Trying to get property 'post_type' of non-object
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inbound-brew
    • > Notice in wp-content/plugins/inbound-brew/inboundbrew.php+652
    Undefined index: post
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inbound-brew
    • > Notice in wp-content/plugins/inbound-brew/inboundbrew.php+661
    Undefined index: post_type
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+886
    Undefined variable: lead
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+806
    Trying to get property 'lead_first_name' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+811
    Trying to get property 'lead_last_name' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+816
    Trying to get property 'type_id' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+820
    Trying to get property 'lead_email' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+824
    Trying to get property 'lead_email2' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+828
    Trying to get property 'lead_ip' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+832
    Trying to get property 'lead_city' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+836
    Trying to get property 'lead_state' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+841
    Trying to get property 'country_id' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+845
    Trying to get property 'lead_postal' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+849
    Trying to get property 'lead_phone' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+853
    Trying to get property 'lead_phone2' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+857
    Trying to get property 'lead_dob' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+861
    Trying to get property 'lead_social_facebook' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+865
    Trying to get property 'lead_social_twitter' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+869
    Trying to get property 'lead_social_linkedin' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+873
    Trying to get property 'created_at' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+877
    Trying to get property 'updated_at' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+882
    Trying to get property 'assigned_to' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+886
    Trying to get property 'opt_in' of non-object
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+207
    Undefined index: inboundbrew_active_lead_view
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/Controllers/Lead.php+677
    Undefined variable: lead_ids
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-redirects
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php+39
    Undefined index: type
  • 36 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Leads/views/partials/leads_filters.php+40
    Undefined index: no_filter
  • 38 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: LeadFilter
  • 143 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-redirects
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Trying to access array offset on value of type null
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-redirects
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php+619
    Undefined index: selected
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-redirects
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php+648
    Undefined variable: display
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_id
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_email2
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_ip
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_city
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_state
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: country_id
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_postal
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_phone2
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_dob
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_social_facebook
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_social_twitter
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: lead_social_linkedin
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: opt_in
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: LeadActivity
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-leads-admin
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: LeadEmail
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-admin-settings
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php+817
    Undefined index: in_divs
  • 54 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-contact-forms
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Core/assets/layouts/top_nav.php+50
    Undefined index: is_module
  • 104 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-contact-forms
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Core/assets/layouts/top_nav.php+48
    Undefined index: ignore
    • > GET request to /wp-admin/admin.php?page=ib-admin-settings
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Settings/Controllers/Settings.php+588
    Undefined index: ib_settings_nonce
    • > GET request to /wp-admin/admin.php?page=ib-admin-settings
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: default_layout
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-admin-settings
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Settings/views/admin_settings.php+96
    Undefined index: can_turn_off
    • > GET request to /wp-admin/admin.php?page=inboundbrew
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: ib_start_date
    • > GET request to /wp-admin/admin.php?page=inboundbrew
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: ib_end_date
    • > GET request to /wp-admin/admin.php?page=inboundbrew
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/Core/views/admin.php+247
    Undefined variable: class
    • > GET request to /wp-admin/admin.php?page=ib-redirects
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: nonce
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-redirects
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php(1030) : eval()'d code+1
    Undefined index: Redirect
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ib-redirects
    • > Notice in wp-content/plugins/inbound-brew/src/Libraries/FormHelper.php+100
    Undefined index: class
    • > GET request to /wp-admin/admin.php?page=ib-call-to-action
    • > Notice in wp-content/plugins/inbound-brew/src/Modules/CTA/Controllers/CallToAction.php+205
    Undefined index: view

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
The following issues need your attention
  • 38× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/inbound-brew/src/Modules/SEO/views/partials/on-page-seo.php
    • > /wp-content/plugins/inbound-brew/src/Modules/Leads/views/ajax_recent_history.php
    • > /wp-content/plugins/inbound-brew/src/Modules/Contact/views/contact-form_wizzard_instructions.php
    • > /wp-content/plugins/inbound-brew/src/Modules/Settings/views/social_share_widget.php
    • > /wp-content/plugins/inbound-brew/src/Modules/SEO/views/partials/post-keywords.php
    • > /wp-content/plugins/inbound-brew/src/Modules/Contact/views/email_wizzard_instructions.php
    • > /wp-content/plugins/inbound-brew/src/Modules/Contact/views/admin_choose_template.php
    • > /wp-content/plugins/inbound-brew/src/Modules/Leads/views/settings.php
    • > /wp-content/plugins/inbound-brew/src/Modules/Contact/views/landing-page_wizzard_instructions.php
    • > /wp-content/plugins/inbound-brew/src/Modules/Contact/views/landing-page-list.php
  • 528× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/inbound-brew/vendor/illuminate/support/Illuminate/Support/Facades/Log.php:6
    • > PHP Notice
      Undefined variable: lead in wp-content/plugins/inbound-brew/src/Modules/Leads/views/note.php on line 29
    • > PHP Notice
      Undefined variable: lead in wp-content/plugins/inbound-brew/src/Modules/Leads/views/note.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Database\\Query\\Grammars\\Grammar' not found in wp-content/plugins/inbound-brew/vendor/illuminate/database/Illuminate/Database/Query/Grammars/SqlServerGrammar.php:5
    • > PHP Notice
      Trying to get property 'posted_image' of non-object in wp-content/plugins/inbound-brew/src/Modules/Settings/views/admin_social_posting_record_details.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/inbound-brew/src/Modules/SEO/views/keyword_manage.php:16
    • > PHP Notice
      Undefined variable: dataPoints in wp-content/plugins/inbound-brew/src/Modules/Core/views/ajax_dashboard.php on line 44
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Database\\Eloquent\\Model' not found in wp-content/plugins/inbound-brew/src/Modules/Redirects/Models/Redirect.php:15
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/inbound-brew/src/Modules/Core/assets/layouts/top_nav.php on line 43
    • > PHP Notice
      Undefined variable: lead in wp-content/plugins/inbound-brew/src/Modules/Leads/views/share.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: drip campaigns, inbound marketing, cta, contact forms, crm

inbound-brew/inboundbrew.php 85% from 13 tests

The entry point to "Inbound Brew" version 1.9.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 280 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("inbound-brew.php" instead of "inboundbrew.php")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin77,734 lines of code in 772 files:
LanguageFilesBlank linesComment linesLines of code
PHP56810,88429,56861,643
XSD499764,991
PO File131,8931,9134,908
SVG3212,357
Sass17282851,731
JSON1400802
Markdown82240703
XML1430275
XSLT100111
JavaScript830094
HTML10061
CSS400840
Qt Linguist10010
YAML4007
INI1001

PHP code 0% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,051)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 155)
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.56
▷ Minimum class complexity1.00
▷ Maximum class complexity1,051.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
Namespaces63
Interfaces18
Traits0
Classes322
▷ Abstract classes195.90%
▷ Concrete classes30394.10%
▷ Final classes10.33%
Methods3,390
▷ Static methods38511.36%
▷ Public methods2,54575.07%
▷ Protected methods53115.66%
▷ Private methods3149.26%
Functions267
▷ Named functions18770.04%
▷ Anonymous functions8029.96%
Constants211
▷ Global constants13463.51%
▷ Class constants7736.49%
▷ Public constants77100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
101 PNG files occupy 1.48MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/Modules/Contact/views/templates/4/thumb-4.png1.03KB0.79KB▼ 22.57%
src/Modules/CTA/assets/images/tab_icons.png7.31KB3.42KB▼ 53.19%
src/Modules/Core/assets/images/colorpicker/colorpicker_hsb_h.png0.99KB0.77KB▼ 21.94%
assets/screenshot-12.png89.44KB34.62KB▼ 61.29%
src/Modules/Core/assets/images/colorpicker/colorpicker_rgb_b.png0.95KB0.76KB▼ 19.48%