Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37670

Additional checking when developing a plugin/filter/theme/block:

$
0
0
by Renaat Debleu.  

Things one can do before publishing a plugin/filter/theme/block:

  • Enable debugging : Home  > Site administration  > Development  > Debugging
    • Debug Messages : Debugger
    • Display Debug Messages : True
  • Browsers
    • using different browsers (Firefox - Internet Explorer - Chrome - Opera - ...) to see if all is rendering well
  • Servers
    • install your work on a second server to see if all is working well.
  • Roles
    • using different roles (teacher - student - guest) to see if the plugin is functioning as it should
  • Cron : Check the output of the cron command : /admin/cron.php and see no error is generated
  • Language :
    • Settings > Site Administration > Language > Language Customization > Open Language for editing : this checks if language file has duplicate values, invalid (UTF8) strings,...
    • Home > Site administration > Users > Permissions > Capability overview : Check forgotten language strings
  • Permissions : 
    • Home > Site administration > Users > Permissions > Define roles > Edit Manager role : This checks forgotten permissions, forgotten language strings, ...
  • Admin pages : Home > Site administration > Plugins : Check if the if the plugin is rendered as it should
  • Backup:  Create a backup of the course/site where your plugin is used : See if the plugin is not hampering the backup of a course
  • Restore: Restore a backup of the course/site where your plugin is used : See if the plugin is not hampering the restore process
  • Reports : Course Activity completion report and Activity report should not generate any error.
  • Javascript : 
    • Add a comment to a page where your plugin/filter/block is located, and check if your java code is happy with other java.
    • Check different theme's to see if the drag-and-drop functionality is still working
  • Optimization : Home  > Site administration  > Development  > Experimental  > Experimental settings > enable CSS optimizer : check generated css files and see wrong css properties, spelling mistakes, ....
  • CSS : Check if the stylesheet is not changing the appearance of other blocks/tables/text
  • Use Moodle Code checker plugin to see if your code respects the Moodle coding guidelines.
  • ...

Viewing all articles
Browse latest Browse all 37670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>