Check the status of your library in Photos for macOS
The Photos app includes a status overview of your photo library, showing how many items it contains, when it was last updated with iCloud Photos and more.
Find library status information in Photos
Select Library in the Photos sidebar.
Click All Photos in the toolbar at the top of the window.
Scroll to the bottom of the window to see status information:
The number of photos and videos that are in your library.
When your library was last updated with iCloud Photos, and the option to click Pause or Resume if updates are in progress.
The number of items that couldn't be synced to iCloud. Click View for more details.
The number of items – if any – that are on this Mac only and not available to your other devices.
If items couldn't be synced to iCloud
To see which items couldn't be synced to iCloud, click the View button next to the message at the bottom of the Library window or click Unable to Upload in the sidebar. You can try to reimport the items from the Unable to Upload album into your Photos library to sync the items with iCloud Photos.
Press Command-A to select all of the items in the Unable to Upload album, choose File > Export, then choose Export Unmodified Original For [number] Photos.
In the dialogues that follow, click Export, choose a save location, then click Export Originals.
After the items export, make sure they are all still selected in the album, then choose Image > Delete [number] Photos or Videos.
Click Delete, then click OK.
Choose the Recently Deleted album in the sidebar, then choose Delete All. Or only delete the items you've just deleted.
Choose File > Import, then choose the images you exported previously. For any items synced to iCloud Photos successfully, edits or keywords you've added to the affected items may be lost.
If you see "Items on This Mac Only"
If you set up Photos to allow referenced files, which are photos and videos stored outside of your library, Photos counts those as "Items on This Mac Only". If you want to consolidate those items into your library so they can be uploaded to iCloud Photos and are available to your other devices, follow these steps:
From the menu bar in Photos, choose File > New Smart Album.
Name the Smart Album "Referenced" and set the conditions to "Photo is referenced". Click OK.
Select the Referenced album in the sidebar.
Press Command-A to select all items in the album, then choose File > Consolidate.