CalderaWP/caldera-admin

View on GitHub

Showing 25 of 770 total issues

Function RemotePost has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const RemotePost = (props) => {
    const {post} = props;

    const Content = () => {
        if (props.showExcerpt) {
Severity: Minor
Found in src/components/RemotePost/RemotePost.js - About 1 hr to fix

    Function getFormRows has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export default function getFormRows(
        entries,
        onEntryAction,
        entryListOnly = true,
        includeEntryActions = true,
    Severity: Minor
    Found in src/components/EntryViewer/getFormRows.js - About 1 hr to fix

      Function ProFreeTrial has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const ProFreeTrial = (props) => {
          const documentationHref = `https://calderaforms.com/doc/caldera-forms-pro-getting-started/?utm_source=wp-admin&utm_campaign=pro-screen&utm_term=not-connected`;
          const trialHref = `https://calderaforms.com/checkout?edd_action=add_to_cart&download_id=64101&edd_options[price_id]=1?utm_source=wp-admin&utm_campaign=pro-screen&utm_term=not-connected`;
          return(
              <div
      Severity: Minor
      Found in src/components/Settings/ProSettings/ProFreeTrial/ProFreeTrial.js - About 1 hr to fix

        Method attributesToRestApiRoute has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                $attributes,
                $endpointUri,
                $callback,
                $permissionsCallback,
                $method = 'GET'
        Severity: Minor
        Found in php/Contracts/TransformsToWpRestApi.php - About 35 mins to fix

          Method attributesToRestApiRoute has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  $attributes,
                  $endpointUri,
                  $callback,
                  $permissionsCallback,
                  $method = 'GET'
          Severity: Minor
          Found in php/Transformations/AttributeForWordPress.php - About 35 mins to fix
            Severity
            Category
            Status
            Source
            Language