Power Platform Governance: Power Apps Code Review Tool

Power Platform Governance: Power Apps Code Review Tool

The Power Apps Code Review Tool is a solution built by Microsoft's Power CAT team to efficiently conduct Power App reviews. The solution uses the Power Apps Language Library to process canvas apps and extract insightful information that can be leveraged during an app review.

When a user opens the Power Apps Code Review app, they can view existing app review or create a new review.

No alt text provided for this image

When creating a new review, the user titles the review, specifies the team, and selects the app from the gallery. If the user doesn't have access to the app via the gallery, they can also upload the .msapp file for the application. Optionally, the user can also upload a file from a Power Apps monitor session to get more data about app performance.

No alt text provided for this image

The review takes a few minutes to complete. Once finished, the user can view the results.

The Checklist screen shows how the app scored against the pre-defined review patterns. These review patterns assess how the app holds up to best practices for performance, maintainability, security, data, accessibility, coding standards, UX, supportability, usage, and design.

No alt text provided for this image

In the top-left corner, you can edit the existing review patterns or add a new one.

For example, I can edit the "Delegation" review pattern by doing things like changing the weight, severity, associated reference resources, etc. When I change the weight, it impacts how much that pattern matters in the overall review score. The lower the weight, the less it matters overall.

No alt text provided for this image

On the App Checker screen, we can see the results for any "checks" that we missed. This data is also displayed in the Power Apps studio when you are building your app.

For example, my app has four media resources (uploaded photos) that aren't actually being used in the app. To increase the performance of my app and reduce it's overall size, I should go delete those unused resources.

No alt text provided for this image

The App Analysis screen shows us the app settings, screen information, media files, and network trace (if applicable) for our app. The Screens Info section shows the number of controls per screen: this helps us ensure that the control count is under the recommended maximum of 300 controls per screen.

No alt text provided for this image

The Code Viewer screen lists screens, controls, and properties within your app. You can filter by screen/data source or use the search to find a specific item.

No alt text provided for this image

If you find code defects, you can select the plus sign next to the code and link it to a corresponding review pattern.

No alt text provided for this image

The final screen is the Statistics screen, where you can capture a summary of the app review.

No alt text provided for this image

From the app review, you can select the email icon in the top-right to have the report emailed to yourself. You can then take that email and forward it onto other appropriate individuals.

No alt text provided for this image

Within the "Power Apps Review Solution" under the Solutions tab, there are two workflows that can be turned on to manage automatic app reviews: "Automatic Review On App Publish" and "Review Completion Email".

The first workflow can be configured to automatically create app reviews for certain apps whenever they are published. The review is created and once finished, the second workflow picks it up, calls the child flow "Generate Report" to format the review into HTML for the email, and then automatically emails the results of the app review: no need to even open the Power Apps Code Review app.

No alt text provided for this image


Download this app from GitHub here and import as a solution in one of your Power Platform environments.

To see this tool in action, check out the Power CAT Live video where they discuss the Power Apps Code Review Tool.

How can I customize this checklist and How can I create new item? Any suggestions

Like
Reply
Juan Antonio Peña González

Principal Architect at Google leading AI solutions for global companies

3y

Look at this article Yadira Plata Alanis

Like
Reply
Paul O'Flaherty

Senior Consultant at Datacom

3y

Really like the idea but with all the Apps I attempted to analyze it seemed to get stuck on 'processing'. Might try a few more in case there is a limit on the size of the App.

Simon Owen

Microsoft MVP | Strategist, Governance & Change Enabler at Avanade | Driving Business Transformation International Speaker | Blogger | Community Member | Microsoft Copilot Studio MVP

3y

This looks fantastic!!

Andreas Schlüter

Already bought a license? F*cking use it & make your work flow! ⚙ | Passionate Microsoft 365 Pro [MVP] ☁ | Edutainer [MCT] 🏅 | #MrPowerMagic 🔮 | Firefighter 🚒 | #gernperDu

3y

That looks cool! I will try that 🙌🏼

To view or add a comment, sign in

Insights from the community

Others also viewed

Explore topics