• I ran my site in debug mode and notices the following warnings:
    Notice: Undefined property: stdClass::$show_description in /shr/wordpress-plugins/gecka-submenu-0.6/gecka-submenu.class.php on line 130 Notice: Undefined property: stdClass::$show_description in /shr/wordpress-plugins/gecka-submenu-0.6/gecka-submenu.class.php on line 130 Notice: Undefined property: stdClass::$show_description in /shr/wordpress-plugins/gecka-submenu-0.6/gecka-submenu.class.php on line 130 Notice: Undefined property: stdClass::$show_description in /shr/wordpress-plugins/gecka-submenu-0.6/gecka-submenu.class.php on line 130 Notice: Undefined property: stdClass::$show_description in /shr/wordpress-plugins/gecka-submenu-0.6/gecka-submenu.class.php on line 130 Notice: Undefined property: stdClass::$show_description in /shr/wordpress-plugins/gecka-submenu-0.6/gecka-submenu.class.php on line 130

    Perhaps you would like to improve your code to avoid these warnings..?

    Also I did some SQL profiling and noticed that you run two SQL queries for every single page load in the WP admin area:

    SELECT option_value FROM wp_options WHERE option_name = 'gecka-submenu_settings' LIMIT 1
    require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/shr/wordpress-plugins/gecka-submenu-0.6/gecka-submenu.php'), Gecka_Submenu->__construct, get_option #3 (0.2ms)
    SELECT option_value FROM wp_options WHERE option_name = 'gecka-submenu-pro-notice' LIMIT 1
    require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/shr/wordpress-plugins/gecka-submenu-0.6/gecka-submenu.php'), Gecka_Submenu->__construct, get_option

    Maybe these could be avoided? Or if they are regular, moved to cron? Or since they query the same table (wp_options), they could be compined to one? Or just run when the user loads the Gecka options page or WP menu settings area?

    http://wordpress.org/extend/plugins/gecka-submenu/

  • The topic ‘[Plugin: Gecka Submenu] Undefined property warnings and excess sql queries’ is closed to new replies.