Title: Performance issue with call_user_func() AtumListTable.php:820
Last modified: November 29, 2021

---

# Performance issue with call_user_func() AtumListTable.php:820

 *  Resolved [Chad Reitsma](https://wordpress.org/support/users/chadreitsma/)
 * (@chadreitsma)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/performance-issue-with-call_user_func-atumlisttable-php820/)
 * Hey guys,
 * One of our clients is experiencing gateway timeouts on the Stock Central page,
   because of call_user_func() inside of /classes/components/AtumListTables/AtumListTable.
   php Line: 820
    `echo call_user_func( array( apply_filters( "atum/list_table/column_source_object/
   column_$column_name", $this, $item ), "column_$column_name" ), $item ); // phpcs:
   ignore WordPress.Security.EscapeOutput.OutputNotEscaped`
 * It looks like this is performing some intensive logic in combination with the
   Stock Central module, and it’s just taking too long, and timing out.
 * As a workaround we changed the “Per page” to 10 (originally 20), which kind of
   works, but it’s still quite slow.
 * I can improve performance by skipping over the columns that are hidden (continuing
   the for-loop before call_user_func() ) but these code-changes will obviously 
   get overwritten if we ever update the plugin. I can’t pinpoint the exact function,
   it seems to be a combination of the functions that are run for the calculation
   column s, probably the Sales per day / Sales last 14 days, etc…
 * Hoping you guys can look into this and work on the performance issues in a future
   release.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * (@salvamb)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/performance-issue-with-call_user_func-atumlisttable-php820/#post-15116441)
 * Hi [@chadreitsma](https://wordpress.org/support/users/chadreitsma/)
 * It seems this issue is related to this other one:
 * [https://wordpress.org/support/topic/atum-stock-central-slow-load-and-slow-update-qty/](https://wordpress.org/support/topic/atum-stock-central-slow-load-and-slow-update-qty/)
 * We are currently investigating this issue as our first priority and we’ll release
   a new version when fixed.
 * Best Regards,
    Salva.
 *  Thread Starter [Chad Reitsma](https://wordpress.org/support/users/chadreitsma/)
 * (@chadreitsma)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/performance-issue-with-call_user_func-atumlisttable-php820/#post-15119547)
 * Hey Salva,
 * Sounds good. Here is a PHP-FPM slowlog in-case it helps, this is how I traced
   it to call_user_func() in AtumListTable.php
 *     ```
       [29-Nov-2021 15:35:58]  [pool domain.ca] pid 8542
       script_filename = /var/www/vhosts/domain.ca/httpdocs/wp-admin/admin.php
       [0x00007fa368014060] mysqli_query() /var/www/vhosts/domain.ca/httpdocs/wp-includes/wp-db.php:2056
       [0x00007fa368013ff0] _do_query() /var/www/vhosts/domain.ca/httpdocs/wp-includes/wp-db.php:1945
       [0x00007fa368013f10] query() /var/www/vhosts/domain.ca/httpdocs/wp-includes/wp-db.php:2581
       [0x00007fa368013e30] get_var() /var/www/vhosts/domain.ca/httpdocs/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Inc/Helpers.php:666
       [0x00007fa368013c30] get_sold_last_days() /var/www/vhosts/domain.ca/httpdocs/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/StockCentral/Lists/ListTable.php:472
       [0x00007fa368013bb0] column__sold_today() /var/www/vhosts/domain.ca/httpdocs/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php:820
       [0x00007fa368013b40] call_user_func() /var/www/vhosts/domain.ca/httpdocs/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php:820
       [0x00007fa3680139e0] single_row_columns() /var/www/vhosts/domain.ca/httpdocs/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php:709
       [0x00007fa368013930] single_expandable_row() /var/www/vhosts/domain.ca/httpdocs/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php:675
       [0x00007fa3680137e0] single_row() /var/www/vhosts/domain.ca/httpdocs/wp-admin/includes/class-wp-list-table.php:1379
       [0x00007fa368013760] display_rows() /var/www/vhosts/domain.ca/httpdocs/wp-admin/includes/class-wp-list-table.php:1364
       [0x00007fa3680136f0] display_rows_or_placeholder() /var/www/vhosts/domain.ca/httpdocs/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php:3298
       [0x00007fa368013640] display() /var/www/vhosts/domain.ca/httpdocs/wp-content/plugins/atum-stock-manager-for-woocommerce/views/list-tables/stock-central.php:88
       ```
   
 *  Plugin Author [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * (@salvamb)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/performance-issue-with-call_user_func-atumlisttable-php820/#post-15120284)
 * Thanks for the info, [@chadreitsma](https://wordpress.org/support/users/chadreitsma/)
   😉
 *  [SSVapes](https://wordpress.org/support/users/username12/)
 * (@username12)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/performance-issue-with-call_user_func-atumlisttable-php820/#post-15123333)
 * I’m getting heavy resource use on PHP-FPM
 * Resource: Virtual Memory Size
    Exceeded: 530 > 512 (MB) Executable: /opt/cpanel/
   ea-php7x/root/usr/sbin/php-fpm Command Line: php-fpm: pool domainname.com
 * IDK if it is related
 *  Plugin Author [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * (@salvamb)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/performance-issue-with-call_user_func-atumlisttable-php820/#post-15124963)
 * Hi [@chadreitsma](https://wordpress.org/support/users/chadreitsma/)
 * We’ve just released a new version. When you can, let us know if it fixed your
   issue, please.
 * Best Regards,
    Salva.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Performance issue with call_user_func() AtumListTable.php:820’ is closed
to new replies.

 * ![](https://ps.w.org/atum-stock-manager-for-woocommerce/assets/icon.svg?rev=1634692)
 * [ATUM WooCommerce Inventory Management and Stock Tracking](https://wordpress.org/plugins/atum-stock-manager-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/atum-stock-manager-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/performance-issue-with-call_user_func-atumlisttable-php820/#post-15124963)
 * Status: resolved