68% integrate-automate

Code Review | integrate automate

WordPress plugin integrate automate scored68%from 54 tests.

About plugin

  • Plugin page: integrate-automate
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.9.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2021
  • Latest release: Mar 3, 2022
  • Number of updates: 10
  • Update frequency: every 36.6 days
  • Top authors: javmah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /828 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.50MB] [CPU: ▼3.04ms] Passed 4 tests

Server-side resources used by integrate automate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5237.92 ▲2.03
Dashboard /wp-admin3.82 ▲0.5248.61 ▲1.51
Posts /wp-admin/edit.php3.87 ▲0.5151.88 ▲10.18
Add New Post /wp-admin/post-new.php6.36 ▲0.4785.57 ▼17.08
Media Library /wp-admin/upload.php3.74 ▲0.5138.36 ▲1.40
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius3.9533.60

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 193 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-posts
fs_gdpr
theysaidso_admin_options
fs_active_plugins
db_upgraded
widget_recent-comments
INTEGRATE_AUTOMATE_INSTALL
fs_accounts
can_compress_scripts
INTEGRATE_AUTOMATE_VERSION
...

Browser metrics Passed 4 tests

integrate automate: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14713.41 ▼0.997.58 ▲5.9628.62 ▼11.82
Dashboard /wp-admin2,225 ▲455.54 ▼0.1286.18 ▼5.5740.47 ▲0.86
Posts /wp-admin/edit.php2,137 ▲371.98 ▲0.0334.94 ▼1.4533.77 ▼3.11
Add New Post /wp-admin/post-new.php1,557 ▲3118.27 ▼4.80644.56 ▼32.3670.78 ▲15.14
Media Library /wp-admin/upload.php1,430 ▲304.17 ▼0.0596.78 ▼13.2746.82 ▲0.72
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0891.6627.0729.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/integrate-automate/includes/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 12 options
    • fs_accounts
    • fs_active_plugins
    • can_compress_scripts
    • widget_recent-comments
    • INTEGRATE_AUTOMATE_VERSION
    • fs_debug_mode
    • INTEGRATE_AUTOMATE_INSTALL
    • db_upgraded
    • theysaidso_admin_options
    • fs_gdpr
    • ...

Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/integrate-automate/public/partials/integrate-automate-public-display.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/integrate-automate/admin/partials/integrate-automate-edit-integration-display.php:14
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/integrate-automate/includes/class-integrate-automate-list-table.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/integrate-automate/includes/class-integrate-automate-list-table.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/integrate-automate/admin/partials/integrate-automate-new-integration-display.php:17
    • > 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/integrate-automate/includes/class-integrate-automate-list-table.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: automate, webhook, integration, zapier, automation...

integrate-automate/integrate-automate.php 92% from 13 tests

The primary PHP file in "integrate automate" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin32,641 lines of code in 140 files:
LanguageFilesBlank linesComment linesLines of code
PHP1217,55017,08932,421
JavaScript538113200
CSS130814
INI1006

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity81.24
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.65
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes54
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes00.00%
Methods1,219
▷ Static methods17514.36%
▷ Public methods87471.70%
▷ Protected methods151.23%
▷ Private methods33027.07%
Functions97
▷ Named functions97100.00%
▷ Anonymous functions00.00%
Constants124
▷ Global constants9979.84%
▷ Class constants2520.16%
▷ Public constants25100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 1.33MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
integrate_automate_asset/banner-1544x500.png68.91KB14.59KB▼ 78.82%
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
integrate_automate_asset/screenshot-3.png624.90KB202.80KB▼ 67.55%
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
integrate_automate_asset/screenshot-2.png155.92KB51.84KB▼ 66.75%