Title: PHP optimizations for the shortcode in the plugin
Last modified: January 12, 2019

---

# PHP optimizations for the shortcode in the plugin

 *  [modmose](https://wordpress.org/support/users/modmose/)
 * (@modmose)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-optimizations-for-the-shortcode-in-the-plugin/)
 * Hi and thanks for a very nice working plugin 🙂
    I have some optimizations for
   the plugin:
 * – I got a deprecation notice about Simple_Google_Photos_Grid_Shortcode::shortcode
   being called statically, it should be a public static function instead
 * – I also got a notice with a undefined index of non required attributes for the
   shortcode eg. “cache-interval”. We need to check if we have the key in the attributes
   before we’re falling back to the standard value for the attribute.
 * Else everything is working very fine 🙂

Viewing 1 replies (of 1 total)

 *  Plugin Author [josheli](https://wordpress.org/support/users/uwonder/)
 * (@uwonder)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-optimizations-for-the-shortcode-in-the-plugin/#post-11114416)
 * Thanks for the feedback. I’ll take a look when I get a chance.

Viewing 1 replies (of 1 total)

The topic ‘PHP optimizations for the shortcode in the plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-google-photos-grid.svg)
 * [Simple Google Photos Grid](https://wordpress.org/plugins/simple-google-photos-grid/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-google-photos-grid/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-google-photos-grid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-google-photos-grid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-google-photos-grid/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [josheli](https://wordpress.org/support/users/uwonder/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/php-optimizations-for-the-shortcode-in-the-plugin/#post-11114416)
 * Status: not resolved