10% automate-hub-free-by-sperse-io

Code Review | Automate Hub Free by Sperse.IO

WordPress plugin Automate Hub Free by Sperse.IO scored10%from 54 tests.

About plugin

  • Plugin page: automate-hub-free...
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4.0
  • WordPress version: 6.3.1
  • First release: Jul 14, 2022
  • Latest release: Oct 29, 2023
  • Number of updates: 55
  • Update frequency: every 8.6 days
  • Top authors: sperse (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,131 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+253
    include_once(wp-content/plugins/automate-hub-free-by-sperse-io/apps/c/clientjoy/clientjoy.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.02MB] [CPU: ▼41.81ms] Passed 4 tests

This is a short check of server-side resources used by Automate Hub Free by Sperse.IO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5518.97 ▼22.04
Dashboard /wp-admin4.03 ▲0.6922.23 ▼38.63
Posts /wp-admin/edit.php4.03 ▲0.6818.77 ▼29.75
Add New Post /wp-admin/post-new.php4.03 ▼1.8519.47 ▼76.82
Media Library /wp-admin/upload.php4.03 ▲0.8019.09 ▼13.12
New Integrations /wp-admin/admin.php?page=automate_hub-new4.0319.01
Export Log /wp-admin/admin.php?page=export_log4.0321.32
Activity Audit Log /wp-admin/admin.php?page=automate_hub_log4.0319.58
My Accounts /wp-admin/admin.php?page=automate_hub4.0319.71
Introduction /wp-admin/admin.php?page=automate_hub_dashboard4.2720.58
Upgrade To Pro /wp-admin/admin.php?page=automate_license4.2719.90
App Directory /wp-admin/admin.php?page=awp_app_directory4.2720.14
My Integrations /wp-admin/admin.php?page=my_integrations4.2719.59

Server storage [IO: ▲3.85MB] [DB: ▲0.16MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 718 new files
Database: 6 new tables, 11 new options
New tables
wp_awp_integration
wp_automate_log
wp_awp_platform_settings
wp_awp_apps
wp_awp_message_template
wp_userCreatedOrUpdated
New WordPress options
theysaidso_admin_options
awp_apps_instructions
sperse_license_key
awp_form_submission_queue
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
sah_l_exp
awp_webhook_api_key
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Automate Hub Free by Sperse.IO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.43 ▼0.113.87 ▲2.1644.06 ▼4.63
Dashboard /wp-admin2,246 ▲665.56 ▲0.0295.74 ▼3.7371.02 ▲28.63
Posts /wp-admin/edit.php2,148 ▲481.97 ▼0.0633.98 ▼1.3632.98 ▼1.56
Add New Post /wp-admin/post-new.php1,565 ▲3723.27 ▲0.23766.52 ▲107.4455.49 ▼12.46
Media Library /wp-admin/upload.php1,448 ▲484.16 ▲0.0195.81 ▲2.2171.32 ▲27.10
New Integrations /wp-admin/admin.php?page=automate_hub-new1,8264.7491.0369.02
Export Log /wp-admin/admin.php?page=export_log8801.9922.5825.22
Activity Audit Log /wp-admin/admin.php?page=automate_hub_log1,5212.9737.6770.94
My Accounts /wp-admin/admin.php?page=automate_hub4,5042.7139.42413.96
Introduction /wp-admin/admin.php?page=automate_hub_dashboard1,9733.0133.5263.89
Upgrade To Pro /wp-admin/admin.php?page=automate_license1,3192.6233.3789.60
App Directory /wp-admin/admin.php?page=awp_app_directory6,8053.3370.89365.61
My Integrations /wp-admin/admin.php?page=my_integrations2,5046.1776.7653.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.16MB] 25% 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 without warnings or errors
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+253
    include_once(wp-content/plugins/automate-hub-free-by-sperse-io/apps/c/clientjoy/clientjoy.php): failed to open stream: No such file or directory
  • Zombie tables detected upon uninstall: 6 tables
    • wp_userCreatedOrUpdated
    • wp_awp_platform_settings
    • wp_awp_integration
    • wp_awp_message_template
    • wp_automate_log
    • wp_awp_apps
  • Zombie WordPress options were found after uninstall: 11 options
    • awp_form_submission_queue
    • awp_apps_instructions
    • sperse_license_key
    • widget_recent-comments
    • sah_l_exp
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • awp_webhook_api_key
    • theysaidso_admin_options
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+253
    include_once(wp-content/plugins/automate-hub-free-by-sperse-io/apps/c/clientjoy/clientjoy.php): failed to open stream: No such file or directory
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+253
    include_once(): Failed opening 'wp-content/plugins/automate-hub-free-by-sperse-io/apps/c/clientjoy/clientjoy.php' for inclusion (include_path='.:/usr/share/php')
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+277
    include_once(wp-content/plugins/automate-hub-free-by-sperse-io/apps/f/firmao/firmao.php): failed to open stream: No such file or directory
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+277
    include_once(): Failed opening 'wp-content/plugins/automate-hub-free-by-sperse-io/apps/f/firmao/firmao.php' for inclusion (include_path='.:/usr/share/php')
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+281
    include_once(wp-content/plugins/automate-hub-free-by-sperse-io/apps/f/forcemanager/forcemanager.php): failed to open stream: No such file or directory
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+281
    include_once(): Failed opening 'wp-content/plugins/automate-hub-free-by-sperse-io/apps/f/forcemanager/forcemanager.php' for inclusion (include_path='.:/usr/share/php')
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+313
    include_once(wp-content/plugins/automate-hub-free-by-sperse-io/apps/l/lessannoyingcrm/lessannoyingcrm.php): failed to open stream: No such file or directory
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+313
    include_once(): Failed opening 'wp-content/plugins/automate-hub-free-by-sperse-io/apps/l/lessannoyingcrm/lessannoyingcrm.php' for inclusion (include_path='.:/usr/share/php')
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+334
    include_once(wp-content/plugins/automate-hub-free-by-sperse-io/apps/o/onepagecrm/onepagecrm.php): failed to open stream: No such file or directory
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+334
    include_once(): Failed opening 'wp-content/plugins/automate-hub-free-by-sperse-io/apps/o/onepagecrm/onepagecrm.php' for inclusion (include_path='.:/usr/share/php')
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+346
    include_once(wp-content/plugins/automate-hub-free-by-sperse-io/apps/r/revampcrm/revampcrm.php): failed to open stream: No such file or directory
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+346
    include_once(): Failed opening 'wp-content/plugins/automate-hub-free-by-sperse-io/apps/r/revampcrm/revampcrm.php' for inclusion (include_path='.:/usr/share/php')
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+350
    include_once(wp-content/plugins/automate-hub-free-by-sperse-io/apps/s/salescamp/salescamp.php): failed to open stream: No such file or directory
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my_integrations
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+350
    include_once(): Failed opening 'wp-content/plugins/automate-hub-free-by-sperse-io/apps/s/salescamp/salescamp.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=export_log
    • > request to
    • > Notice in wp-content/plugins/automate-hub-free-by-sperse-io/automate_hub.php+581
    Undefined index: HTTP_HOST
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=export_log
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/automate-hub-free-by-sperse-io/views/editable_field.php
    • > /wp-content/plugins/automate-hub-free-by-sperse-io/apps/s/sperse/customrules.php
  • 209× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Appfactory' not found in wp-content/plugins/automate-hub-free-by-sperse-io/apps/p/postmark/postmark.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Appfactory' not found in wp-content/plugins/automate-hub-free-by-sperse-io/apps/w/wufooforms/wufooforms.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/automate-hub-free-by-sperse-io/apps/h/highlevel/highlevel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/automate-hub-free-by-sperse-io/apps/i/insightly/insightly.php:2
    • > PHP Warning
      include(AWP_FREE_INCLUDES/header.php): failed to open stream: No such file or directory in wp-content/plugins/automate-hub-free-by-sperse-io/views/dashboard.php on line 1
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/automate-hub-free-by-sperse-io/includes/class_platform_shell.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/automate-hub-free-by-sperse-io/includes/class_awp_list_table.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/automate-hub-free-by-sperse-io/includes/class_awp_log_table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/automate-hub-free-by-sperse-io/apps/s/sendpulse/sendpulse.php:1718
    • > PHP Fatal error
      Uncaught Error: Class 'appfactory' not found in wp-content/plugins/automate-hub-free-by-sperse-io/apps/k/klipfolio/klipfolio.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=automate_hub_dashboard
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://consent.youtube.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
    • > GET request to /wp-admin/admin.php?page=awp_app_directory
    • > Network (severe)
    wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 45 tag instead of maximum 10
You can take inspiration from this readme.txt

automate-hub-free-by-sperse-io/automate_hub.php 62% from 13 tests

The main PHP script in "Automate Hub Free by Sperse.IO" version 1.6.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("automate-hub-free-by-sperse-io.php" instead of "automate_hub.php")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 205 characters long)
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected51,233 lines of code in 229 files:
LanguageFilesBlank linesComment linesLines of code
PHP1956,2901,37530,888
JavaScript141,9801,91913,140
CSS51,3232447,146
SVG150059

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.77
▷ Minimum class complexity1.00
▷ Maximum class complexity102.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes103
▷ Abstract classes10.97%
▷ Concrete classes10299.03%
▷ Final classes00.00%
Methods1,181
▷ Static methods191.61%
▷ Public methods1,09092.29%
▷ Protected methods816.86%
▷ Private methods100.85%
Functions464
▷ Named functions44295.26%
▷ Anonymous functions224.74%
Constants73
▷ Global constants11.37%
▷ Class constants7298.63%
▷ Public constants72100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
485 compressed PNG files occupy 1.09MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/plansoforms.png0.86KB0.88KB0.00%
assets/images/favicons/constantcontact.png0.80KB0.80KB▼ 1.09%
assets/images/icons/moonmail.png1.88KB1.90KB0.00%
assets/images/logos/todoist.png3.16KB3.23KB0.00%
assets/images/favicons/googledrive.png1.31KB1.20KB▼ 8.30%