{"id":7794795,"date":"2013-09-29T14:22:55","date_gmt":"2013-09-29T14:22:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/poor-documentation-poor-execution\/"},"modified":"2017-02-07T21:19:47","modified_gmt":"2017-02-07T21:19:47","slug":"poor-documentation-poor-execution","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/poor-documentation-poor-execution\/","title":{"rendered":"Poor documentation. Poor execution."},"content":{"rendered":"<p>It seems the Kaltura team is back at it again, and i don&#8217;t mean that as a positive statement.<\/p>\n<p>The horror show that is the update to All-In-One version 2.5 wordpress plugin. There are so many things wring with this update, it&#8217;s hard to know where to start. SO i&#8217;ll give a typical scenerio.<\/p>\n<p>Installing:<br \/>\nThere is absolutely NO documentation for configuring the &#8221; settings.ini&#8221; file. The default values are horribly wrong in most cases. If you have CE5, you&#8217;ll need to change ALL the ID numbers. Every last one. PERIOD!<br \/>\nAlas, the intellectual giants that developed this monstrosity fail to even HINT at where these magic Conf ID&#8217;s come from. With kaltura&#8217;s default install, you&#8217;ll have more than 100 UI Conf ID&#8217;s listed. Good luck guessing the correct one.<\/p>\n<p>If you are using CE5, get ready to feel the pain. Once you&#8217;ve managed to get the conf id&#8217;s correct, you&#8217;re still out of luck. The editor-side selection of videos will actually work. However, once added to your post, the player itself will not be visible on the live page. Just a big fat blank NOTHING where the video player SHOULD be.<\/p>\n<p>CE6, you&#8217;ll have it a little better, once it&#8217;s properly set up, you MIGHT be able to see the videos in your page. <\/p>\n<p>Updating from Previos version (2.4.4 i believe) Will present a nightmare.<\/p>\n<p>Unlike EVERY DECENT PLUGIN for wordpress. This one adds a table  to the database (for the widget), as well as adds about 6 &#8211; 8 entries into the wordpress options table. Seems legit, however, if you uninstall the plugin. It doesn&#8217;t remove these settings. Which means when you reinstall, yer borked, if you update, you&#8217;re borked. <\/p>\n<p>you will need to MANUALLY remove these from the database. YAY Sql fans! Boo anyone without proper knowledge. You may inadvertently #! the entire site.<\/p>\n<p>Now we move onto a more geek oriented subject. <\/p>\n<p>IT&#8217;S SLOW!! It&#8217;s like trying to race a turtle if your a snail. A single video on your main page will bog the entire page down waiting for the player to load all the data. YAY DERPS!<\/p>\n<p>It&#8217;s SHODDY CODE!<br \/>\nTurn on debugging, and enjoy the spectacle. several errors with the php code itself. The code isn&#8217;t nececerily bad, just many outdated strings. Using functions improperly, and not sanity checking code to prevent blank-page-of-doom is bad. Trap your errors silly.<\/p>\n<p>So&#8230; as a recap, and possible solutions:<br \/>\na) Installation:<br \/>\nAdd a readme file that ISN&#8217;T 4 &#8211; 6 years old and default from version 1.0 of the script \/ kaltura.<\/p>\n<p>b) Upgrade:<br \/>\nCreate an uninstall script to remove the entries made by plugin in the wp_options table. also, remove the table created by the widget portion of the plugin.<\/p>\n<p>c) Performance:<br \/>\nInstead of calling on Kaltura for every bit of information, preemptively upload thumbnail, and any other static yet small data points to a temp directory within the plugin, or an addition directory within the wp-content structure. Slimline some of the scripts, or data actually accessed to speed up page loading. i.e. You don&#8217;t need to gather ALL data in an array, then later strip 99% of it out. clean it up.<\/p>\n<p>D) Performance 2:<br \/>\nUpdate your syntax and coding practices. If you&#8217;re coding for php v1.4.2 you&#8217;ll have problems with depreciated functions, and syntax if the plugin is run on php v5.x. Should probably repackage the plugin with several flavors for diferent PHP versions. I&#8217;m not saying make 300 versions. but just the one&#8217;s needed. i.e. php 4.x 5.x etc&#8230;<\/p>\n","protected":false},"template":"","class_list":["post-7794795","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7794795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7794795\/revisions"}],"predecessor-version":[{"id":8755805,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7794795\/revisions\/8755805"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7794795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}