Several suggestions on plugin performance
-
I have been using BetterDocs for quite a while and, in most cases, I am satisfied and have decided to stick with it. However, I have some suggestions that could improve the plugin’s performance.
Firstly, on the documentation page (main page), site admins should be allowed to choose whether to display documents under a category when using nested subcategories. As more categories and subcategories are added, along with new documents (I mean 10k+ documents), the query becomes very slow since more rows need to be selected from the database. In most cases, only showing the taxonomies (categories and subcategories) is enough, as users can always navigate further to subcategories and see the documents inside. I noticed there is already an option to choose how many documents to present under each category on the main page. However, when I set this number to 0, BetterDocs still shows the default 10 documents. It would be better to skip the query if the user sets it to 0.
Another issue is related to the category page (the page we see after clicking a category on the main page) and the category sidebar in a single document. The problem is similar to the previous one. I noticed that BetterDocs currently shows all the documents belonging to the category. This will be problematic if there are many documents (thousands of documents). The query will be time-consuming as the result will be very long, and actually, most of the results are not necessary to be displayed. A better approach would be to only query the first dozen (a number set by the site admin) matched rows in the database. Adding a ‘View More’ button at the bottom to query more if pressed could improve the user experience and also enhance the performance of the plugin, making it more scalable.
- The topic ‘Several suggestions on plugin performance’ is closed to new replies.