Just connecting a wire in the plug is worthless unless you can also verify continuity, insulation resistance and polarity (where applicable) to the whole fitting.
Personally I would not trust that around any of my loved ones as it looks like could be a bit of a death trap!
If it was sold as a fully functioning light, I would guess there could be grounds for legal action against the seller, for selling a potentially dangerous product!?
However if it was sold as 'non-functional', 'decorative', 'spares' or 'repairs'.. only, then possibly its an ok item.?
As Fleeting indicated... A "portable appliance test" (PAT), is an industry standard method of verifying that all sorts of plug-in appliances are electrically safe for use..
If the fitting did not come with any form of documentation or a label on it saying it has passed a PAT inspection, by a person with a traceable, calibrated PAT meter.. Then treat it with caution and do NOT assume it is electrically safe!
I would suggest getting a PAT done on the lamp.. which will then give you a list of any bits that need rectifying to make it all safe and good for anyone to use..
The bottom line is that electricity can kill a healthy adult in less than a second... the elderly or children are even more vulnerable...
So you need to evaluate who you think may be touching this lamp, switching it on/off..
and how much you value their life -vs- the cost of some formal electrical tests on the appliance..?
I don't know where you are in the country, therefore what the acceptable hourly rates are within your area?
Personally I don't do much PAT and reporting, just for a very few infrequent select number of previous customers who don't expect me to do essential safety testing and checking for peanuts..
(There are large PAT companies who use semi-skilled workers with a single button tester, to auto generate Pass or Fails, without understanding half of what they are doing, and charge stupidly cheap rates that are not economical for a skilled person!)
As a rough guide..
If you asked me to come and check this out for you, depending upon how far away you were...
I would be thinking, can I sort this in half an hour? or 1hour max including a bit of travel?
So I would be expecting £30 minimum for my time & effort..
possibly up to £50 or £60 max if I need to travel a bit further!
If I cannot do it economically for £60.. then there MUST be numerous other electricians more local who can fully test & check your lamp a lot cheaper, (maybe £40 to £50max?)
Hope that helps?